diff options
| author | dvs1 | 2024-12-27 11:54:12 +1000 |
|---|---|---|
| committer | dvs1 | 2024-12-27 11:54:12 +1000 |
| commit | d5134d8bf043785a32d7a33e6844cf653c265f86 (patch) | |
| tree | 01d7807863e150885f0f5a2f4c081d2f6d0e7c2d | |
| parent | TYPO-- (diff) | |
| download | notYetAnotherWiki-d5134d8bf043785a32d7a33e6844cf653c265f86.zip notYetAnotherWiki-d5134d8bf043785a32d7a33e6844cf653c265f86.tar.gz notYetAnotherWiki-d5134d8bf043785a32d7a33e6844cf653c265f86.tar.bz2 notYetAnotherWiki-d5134d8bf043785a32d7a33e6844cf653c265f86.tar.xz | |
Some tweaking of TODO.md layout.
| -rw-r--r-- | TODO.md | 48 |
1 files changed, 24 insertions, 24 deletions
| @@ -18,8 +18,8 @@ See the conversion therapy section below. | |||
| 18 | Add an Edit button that opens up the page in what ever wiki system it came from, for editing. | 18 | Add an Edit button that opens up the page in what ever wiki system it came from, for editing. |
| 19 | 19 | ||
| 20 | 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. | 20 | 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. |
| 21 | One quirk to watch for is if a URL path cahnges, the docs that have that URL need to be redone. | 21 | - One quirk to watch for is if a URL path changes, the docs that have that URL need to be redone. |
| 22 | pandoc is a lot slower though, so do this for sure when dealing with that. | 22 | - pandoc is a lot slower though, so do this for sure when dealing with that. |
| 23 | 23 | ||
| 24 | Add atom feed for single page. Alas cgit only seems to have ATOM feed on the whole repo, not individual files. | 24 | Add atom feed for single page. Alas cgit only seems to have ATOM feed on the whole repo, not individual files. |
| 25 | 25 | ||
| @@ -29,31 +29,31 @@ For importing from other systems, have a script that runs on that system | |||
| 29 | and creates a nYAWsite.lua structure, same as sites[], which nYAW then | 29 | and creates a nYAWsite.lua structure, same as sites[], which nYAW then |
| 30 | downloads so it knows what web pages to convert. | 30 | downloads so it knows what web pages to convert. |
| 31 | 31 | ||
| 32 | Both ends need to know what they are converting. | 32 | Both ends need to know what they are converting - |
| 33 | Other system end needs to know how to construct a nYAWsite.lua table from whatever format it's content is in. | 33 | - Other system end needs to know how to construct a nYAWsite.lua table from whatever format it's content is in. |
| 34 | 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. | 34 | - 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. |
| 35 | nYAW system end needs to know how to convert and clean up the pages. | 35 | - nYAW system end needs to know how to convert and clean up the pages. |
| 36 | nYAWsite.lua should include the name of the convert and clean up script that will be part of notYetAnotherWiki. | 36 | - nYAWsite.lua should include the name of the convert and clean up script that will be part of notYetAnotherWiki. |
| 37 | 37 | ||
| 38 | NOTE - security risks here - | 38 | NOTE - security risks here - |
| 39 | Automatically running Lua scripts from some other system. | 39 | - Automatically running Lua scripts from some other system. |
| 40 | Letting the other system tell us what script to run. | 40 | - Letting the other system tell us what script to run. |
| 41 | 41 | ||
| 42 | 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. | 42 | 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. |
| 43 | 43 | ||
| 44 | ROADMAP - | 44 | #### conversion ROADMAP |
| 45 | put my table dumping stuff in it's own Lua library | 45 | put my table dumping stuff in it's own Lua library |
| 46 | use it to write the Foswiki and PmWiki install -> nYAWsite.lua scanners, which gets created in their respective directories | ||
| 47 | 46 | ||
| 48 | while notYetAnotherWiki is scanning for .md files to convert to | 47 | use it to write the Foswiki and PmWiki install -> nYAWsite.lua scanners, which gets created in their respective directories |
| 49 | HTML, if it comes across a nYAWsite.lua file in a directory, | 48 | |
| 50 | stop scanning for that directory and use that instead. | 49 | 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. |
| 51 | this is where it needs to know where to get the web pages to convert, and how to convert | 50 | - this is where it needs to know where to get the web pages to convert, and how to convert |
| 52 | which is stored in the nYAWsite.lua file | 51 | - - which is stored in the nYAWsite.lua file |
| 53 | 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 | 52 | - - 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 |
| 54 | pandoc URL | cleanupscript > page.md | 53 | - pandoc URL | cleanupscript > page.md |
| 55 | page.md -> page.HTML as usual | 54 | - page.md -> page.HTML as usual |
| 56 | figure out the nYAWsite.lua file downloading step later | 55 | |
| 56 | figure out the nYAWsite.lua file downloading step later | ||
| 57 | 57 | ||
| 58 | 58 | ||
| 59 | 59 | ||
| @@ -62,7 +62,7 @@ downloads so it knows what web pages to convert. | |||
| 62 | htmx | 62 | htmx |
| 63 | 63 | ||
| 64 | pandoc replacements | 64 | pandoc replacements |
| 65 | cmark-gfm | 65 | - cmark-gfm |
| 66 | 66 | ||
| 67 | cgit has Lua | 67 | cgit has Lua |
| 68 | 68 | ||
