Changeset 72 in code
- Timestamp:
- Oct 3, 2023, 2:39:08 AM (20 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmd/aya/main.go
r71 r72 1 // $TheSupernovaDuo: cmd/aya/main.go,v 0.6.3 2023/09/27 22:46:30yakumo_izuru Exp $1 // $TheSupernovaDuo: marisa.chaotic.ninja/aya/cmd/aya, v 1.0 2023-10-03 02:34:17, yakumo_izuru Exp $ 2 2 package main 3 3 … … 22 22 ) 23 23 24 // Define global constants here 24 25 const ( 25 26 AYADIR = ".aya" … … 179 180 func buildMarkdown(path string, w io.Writer, vars Vars) error { 180 181 v, body, err := getVars(path, vars) 182 extensions := blackfriday.CommonExtensions|blackfriday.AutoHeadingIDs|blackfriday.Strikethrough|blackfriday.Footnotes 181 183 if err != nil { 182 184 return err … … 187 189 } 188 190 v["content"] = string(blackfriday.Run([]byte(content), 189 blackfriday.WithExtensions( blackfriday.CommonExtensions|blackfriday.AutoHeadingIDs|blackfriday.Strikethrough|blackfriday.Footnotes),191 blackfriday.WithExtensions(extensions), 190 192 )) 191 193 if w == nil { … … 303 305 304 306 // This function passes the files to build to their corresponding functions 307 // As far as I'm aware, Markdown has three possible filename extensions, 308 // but .md is the most common one known. 305 309 func build(path string, w io.Writer, vars Vars) error { 306 310 ext := filepath.Ext(path) … … 318 322 } 319 323 324 // Build everything and store it on PUBDIR 325 // If boolean watch is true, it keeps on going 326 // every time you modify something. 320 327 func buildAll(watch bool) { 321 328 lastModified := time.Unix(0, 0) … … 392 399 } 393 400 401 // Main loop 394 402 func main() { 395 403 if len(os.Args) == 1 { -
trunk/doc.go
r70 r72 1 package aya2 1 // Package aya is [...] 3 2 … … 18 17 // This one (re)incorporates the features removed in the former from the latter 19 18 19 // Copyright (c) 2014 Serge Zaitsev 20 // Copyright (c) 2023 Izuru Yakumo 21 20 22 // Ayaya~ 23 package aya -
trunk/version.go
r56 r72 1 // This is used for setting build-time variables 1 2 package aya 2 3
Note:
See TracChangeset
for help on using the changeset viewer.