From d5134d8bf043785a32d7a33e6844cf653c265f86 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 27 Dec 2024 11:54:12 +1000 Subject: Some tweaking of TODO.md layout. --- TODO.md | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/TODO.md b/TODO.md index a452e2e..8157c68 100644 --- a/TODO.md +++ b/TODO.md @@ -18,8 +18,8 @@ See the conversion therapy section below. Add an Edit button that opens up the page in what ever wiki system it came from, for editing. 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. - One quirk to watch for is if a URL path cahnges, the docs that have that URL need to be redone. - pandoc is a lot slower though, so do this for sure when dealing with that. +- One quirk to watch for is if a URL path changes, the docs that have that URL need to be redone. +- pandoc is a lot slower though, so do this for sure when dealing with that. Add atom feed for single page. Alas cgit only seems to have ATOM feed on the whole repo, not individual files. @@ -29,31 +29,31 @@ For importing from other systems, have a script that runs on that system and creates a nYAWsite.lua structure, same as sites[], which nYAW then downloads so it knows what web pages to convert. - Both ends need to know what they are converting. - Other system end needs to know how to construct a nYAWsite.lua table from whatever format it's content is in. - Both system ends may need to cooperate to get nYAWsite.lua into a place nYAW can download. Or if running on the same system, drop it into the other system root. - nYAW system end needs to know how to convert and clean up the pages. - nYAWsite.lua should include the name of the convert and clean up script that will be part of notYetAnotherWiki. +Both ends need to know what they are converting - +- Other system end needs to know how to construct a nYAWsite.lua table from whatever format it's content is in. +- Both system ends may need to cooperate to get nYAWsite.lua into a place nYAW can download. Or if running on the same system, drop it into the other system root. +- nYAW system end needs to know how to convert and clean up the pages. +- nYAWsite.lua should include the name of the convert and clean up script that will be part of notYetAnotherWiki. - NOTE - security risks here - - Automatically running Lua scripts from some other system. - Letting the other system tell us what script to run. +NOTE - security risks here - +- Automatically running Lua scripts from some other system. +- Letting the other system tell us what script to run. - Alternative is to figure out what the nYAWsite.lua is by poking at the other system. Any given other system might not give that info easy. +Alternative is to figure out what the nYAWsite.lua is by poking at the other system. Any given other system might not give that info easy. - ROADMAP - - put my table dumping stuff in it's own Lua library - use it to write the Foswiki and PmWiki install -> nYAWsite.lua scanners, which gets created in their respective directories +#### conversion ROADMAP +put my table dumping stuff in it's own Lua library - while notYetAnotherWiki is scanning for .md files to convert to - HTML, if it comes across a nYAWsite.lua file in a directory, - stop scanning for that directory and use that instead. - this is where it needs to know where to get the web pages to convert, and how to convert - which is stored in the nYAWsite.lua file - so we can start with a bare minimum one that just tells us the format, to be replaced by the newly generated one, which needs the format in it as well for next time - pandoc URL | cleanupscript > page.md - page.md -> page.HTML as usual - figure out the nYAWsite.lua file downloading step later +use it to write the Foswiki and PmWiki install -> nYAWsite.lua scanners, which gets created in their respective directories + +while notYetAnotherWiki is scanning for .md files to convert to HTML, if it comes across a nYAWsite.lua file in a directory, stop scanning for that directory and use that instead. +- this is where it needs to know where to get the web pages to convert, and how to convert +- - which is stored in the nYAWsite.lua file +- - so we can start with a bare minimum one that just tells us the format, to be replaced by the newly generated one, which needs the format in it as well for next time +- pandoc URL | cleanupscript > page.md +- page.md -> page.HTML as usual + +figure out the nYAWsite.lua file downloading step later @@ -62,7 +62,7 @@ downloads so it knows what web pages to convert. htmx pandoc replacements - cmark-gfm +- cmark-gfm cgit has Lua -- cgit v1.1