From 6b894acf42f0e2daec277a05766d02014dc7bb09 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Mon, 16 Dec 2024 14:05:49 +1000 Subject: Move TODOs to TODO.md, and tweak them. --- TODO.md | 17 +++++++++++++++++ notYetAnotherWiki.lua | 15 --------------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/TODO.md b/TODO.md index 8921862..3f1d915 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,19 @@ +Do these - + +Add atom feed and history for single page. Alas cgit only seems to have ATOM feed on the whole repo, not individual files. + +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. + +For such fragments, rename their results to menu.FRAGMENT. metadata.isFragment + +BUG - sub directories get their links screwed with extra path. + +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. + +Contstruct metadata.webtrail in createHTML from links to index.HTML in the various bits of the path of the input file. + + + Try out - htmx @@ -8,6 +24,7 @@ pandoc replacements cgit has Lua + User system - levels - banned diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 1f077b5..9fa3178 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -1,20 +1,5 @@ #!/usr/bin/env luajit ---[[ TODOs -Contstruct metadata.webtrail in createHTML from links to index.HTML in the various bits of the path of the input file. - -Construct a default set of menus if menu.md / header.md doesn't exist in each directory. -Same for footer.md I guess. - -For such fragments, rename their results to footer.FRAGMENT. metadata.isFragment - -BUG - sub directories get their links screwed with extra path. - -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. - -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. -]] - local lcmark = require("lcmark") local createHTML = function(cm, file, menu) -- cgit v1.1