- Timestamp:
- Dec 4, 2023, 12:54:29 AM (18 months ago)
- Location:
- trunk
- Files:
-
- 17 added
- 18 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r68 r75 1 CGO = 02 1 DESTDIR ?= 3 GOFLAGS ?= -v - ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT)"-mod=vendor -buildmode=exe2 GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe 4 3 PREFIX ?= /usr/local 5 VERSION ?= `git describe --abbrev=0 --tags || echo "$VERSION"` 6 COMMIT ?= `git rev-parse --short HEAD || echo "$COMMIT"` 7 4 VERSION ?= `git describe --tags` 8 5 9 6 build: 10 env CGO_ENABLED=${CGO}go build ${GOFLAGS} ./cmd/aya7 go build ${GOFLAGS} ./cmd/aya 11 8 clean: 12 9 rm -f aya 10 dist: 11 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD 13 12 install: 14 13 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya -
trunk/README.md
r68 r75 11 11 * Highly extensible 12 12 * Works well for blogs and generic static websites (landing pages etc) 13 * Easy to learn 14 * Fast ( duh!)13 * Easy to learn (you literally don't need to) 14 * Fast (goes without saying) 15 15 16 16 ## Installation … … 53 53 54 54 * `$AYA` - a path to the `aya` executable 55 * `$AYA _OUTDIR` - a path to the directory with generated files56 * `$AYA _FILE` - a path to the currently processed markdown file57 * `$AYA _URL` - a URL for the currently generated page55 * `$AYA\_OUTDIR` - a path to the directory with generated files 56 * `$AYA\_FILE` - a path to the currently processed markdown file 57 * `$AYA\_URL` - a URL for the currently generated page 58 58 59 59 ## Example of RSS generation -
trunk/cmd/aya/main.go
r74 r75 1 // $TheSupernovaDuo: marisa.chaotic.ninja/aya/cmd/aya, v0.6. 4 2023-10-23 22:26:23, yakumo_izuru Exp $1 // $TheSupernovaDuo: marisa.chaotic.ninja/aya/cmd/aya, v0.6.6 2023-12-03 23:48:17+0000, yakumo_izuru Exp $ 2 2 package main 3 3 … … 16 16 "github.com/russross/blackfriday/v2" 17 17 "github.com/yosssi/gcss" 18 "gopkg.in/yaml.v 2"18 "gopkg.in/yaml.v3" 19 19 "marisa.chaotic.ninja/aya" 20 20 ) -
trunk/go.mod
r71 r75 7 7 github.com/russross/blackfriday/v2 v2.1.0 8 8 github.com/yosssi/gcss v0.1.0 9 gopkg.in/yaml.v 2 v2.4.09 gopkg.in/yaml.v3 v3.0.1 10 10 ) -
trunk/go.sum
r71 r75 7 7 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 8 8 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 9 gopkg.in/yaml.v 2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=10 gopkg.in/yaml.v 2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=9 gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 10 gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -
trunk/vendor/modules.txt
r71 r75 9 9 ## explicit 10 10 github.com/yosssi/gcss 11 # gopkg.in/yaml.v 2 v2.4.012 ## explicit ; go 1.1513 gopkg.in/yaml.v 211 # gopkg.in/yaml.v3 v3.0.1 12 ## explicit 13 gopkg.in/yaml.v3 -
trunk/version.go
r72 r75 4 4 import ( 5 5 "fmt" 6 "time" 6 7 ) 7 8 8 9 var ( 9 // Version release version 10 Version = "0.0.1" 11 12 // Commit will be overwritten automatically by the build system 13 Commit = "HEAD" 10 // Set to current tag 11 Version = "v0.6.6" 12 Time = time.Now() 14 13 ) 15 14 16 15 // FullVersion display the full version and build 17 16 func FullVersion() string { 18 return fmt.Sprintf("%s@%s", Version, Commit) 17 d := Time.Day() 18 m := Time.Month() 19 y := Time.Year() 20 return fmt.Sprintf("%v || %d.%d.%d", Version, y, m, d) 19 21 }
Note:
See TracChangeset
for help on using the changeset viewer.