diff options
| author | dvs1 | 2024-12-16 14:05:49 +1000 |
|---|---|---|
| committer | dvs1 | 2024-12-16 14:05:49 +1000 |
| commit | 6b894acf42f0e2daec277a05766d02014dc7bb09 (patch) | |
| tree | 270c1cac17c4c728866b556da5a75d7dd86cb930 | |
| parent | Try this for individual page history. (diff) | |
| download | notYetAnotherWiki-6b894acf42f0e2daec277a05766d02014dc7bb09.zip notYetAnotherWiki-6b894acf42f0e2daec277a05766d02014dc7bb09.tar.gz notYetAnotherWiki-6b894acf42f0e2daec277a05766d02014dc7bb09.tar.bz2 notYetAnotherWiki-6b894acf42f0e2daec277a05766d02014dc7bb09.tar.xz | |
Move TODOs to TODO.md, and tweak them.
| -rw-r--r-- | TODO.md | 17 | ||||
| -rwxr-xr-x | notYetAnotherWiki.lua | 15 |
2 files changed, 17 insertions, 15 deletions
| @@ -1,3 +1,19 @@ | |||
| 1 | Do these - | ||
| 2 | |||
| 3 | Add atom feed and history for single page. Alas cgit only seems to have ATOM feed on the whole repo, not individual files. | ||
| 4 | |||
| 5 | Construct a default set of menus if the menu.md / header.md fragments don't exist in each directory. Same for footer.md I guess. | ||
| 6 | |||
| 7 | For such fragments, rename their results to menu.FRAGMENT. metadata.isFragment | ||
| 8 | |||
| 9 | BUG - sub directories get their links screwed with extra path. | ||
| 10 | |||
| 11 | Check the timestamps on the files, only update if source is newer than destination. Meh, it's already 600 times faster than the pandoc version. | ||
| 12 | |||
| 13 | Contstruct metadata.webtrail in createHTML from links to index.HTML in the various bits of the path of the input file. | ||
| 14 | |||
| 15 | |||
| 16 | |||
| 1 | Try out - | 17 | Try out - |
| 2 | 18 | ||
| 3 | htmx | 19 | htmx |
| @@ -8,6 +24,7 @@ pandoc replacements | |||
| 8 | cgit has Lua | 24 | cgit has Lua |
| 9 | 25 | ||
| 10 | 26 | ||
| 27 | |||
| 11 | User system - | 28 | User system - |
| 12 | levels - | 29 | levels - |
| 13 | banned | 30 | banned |
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 1f077b5..9fa3178 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua | |||
| @@ -1,20 +1,5 @@ | |||
| 1 | #!/usr/bin/env luajit | 1 | #!/usr/bin/env luajit |
| 2 | 2 | ||
| 3 | --[[ TODOs | ||
| 4 | Contstruct metadata.webtrail in createHTML from links to index.HTML in the various bits of the path of the input file. | ||
| 5 | |||
| 6 | Construct a default set of menus if menu.md / header.md doesn't exist in each directory. | ||
| 7 | Same for footer.md I guess. | ||
| 8 | |||
| 9 | For such fragments, rename their results to footer.FRAGMENT. metadata.isFragment | ||
| 10 | |||
| 11 | BUG - sub directories get their links screwed with extra path. | ||
| 12 | |||
| 13 | Check the timestamps on the files, only update if source is newer than destination. Meh, it's already 600 times faster than the pandoc version. | ||
| 14 | |||
| 15 | Add atom feed and history for single page. Alas cgit only seems to have ATOM feed and commit log on the whole repo, not individual files. | ||
| 16 | ]] | ||
| 17 | |||
| 18 | local lcmark = require("lcmark") | 3 | local lcmark = require("lcmark") |
| 19 | 4 | ||
| 20 | local createHTML = function(cm, file, menu) | 5 | local createHTML = function(cm, file, menu) |
