diff options
author | dvs1 | 2025-01-17 16:40:51 +1000 |
---|---|---|
committer | dvs1 | 2025-01-17 16:40:51 +1000 |
commit | 669594bd7fe4bc9a630e90e1880d3511c13b208e (patch) | |
tree | e9aff21a28761e4d2ae7fdeaed019d63b1f1db78 | |
parent | Sorting still fails sometimes. Lets see if hat happens elsewhere. (diff) | |
download | notYetAnotherWiki-669594bd7fe4bc9a630e90e1880d3511c13b208e.zip notYetAnotherWiki-669594bd7fe4bc9a630e90e1880d3511c13b208e.tar.gz notYetAnotherWiki-669594bd7fe4bc9a630e90e1880d3511c13b208e.tar.bz2 notYetAnotherWiki-669594bd7fe4bc9a630e90e1880d3511c13b208e.tar.xz |
Page history is now per site, the page name is added automatically.
-rw-r--r-- | INSTALL.md | 5 | ||||
-rw-r--r-- | MeTaDaTa.md | 5 | ||||
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | TODO.md | 2 | ||||
-rw-r--r-- | about/index.md | 1 | ||||
-rwxr-xr-x | notYetAnotherWiki.lua | 2 | ||||
-rw-r--r-- | testing/index.md | 1 |
7 files changed, 6 insertions, 12 deletions
@@ -1,8 +1,3 @@ | |||
1 | --- | ||
2 | pagetitle: "INSTALL" | ||
3 | pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/INSTALL.md | ||
4 | --- | ||
5 | |||
6 | notYetAnotherWiki uses [lcmark](https://github.com/jgm/lcmark) to parse [CommonMark](https://commonmark.org/) into HTML. You can probably install it using luarocks. lua-yaml is the YAML parsing library I test with. | 1 | notYetAnotherWiki uses [lcmark](https://github.com/jgm/lcmark) to parse [CommonMark](https://commonmark.org/) into HTML. You can probably install it using luarocks. lua-yaml is the YAML parsing library I test with. |
7 | 2 | ||
8 | You also need luajit installed. | 3 | You also need luajit installed. |
diff --git a/MeTaDaTa.md b/MeTaDaTa.md index ab7b673..24796a8 100644 --- a/MeTaDaTa.md +++ b/MeTaDaTa.md | |||
@@ -1,4 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | feedatom: https://sledjhamr.org/cgit/notYetAnotherWiki/atom | 2 | sourcecode: https://sledjhamr.org/cgit/notYetAnotherWiki/ |
3 | sourcecode: https://sledjhamr.org/cgit/notYetAnotherWiki/ | 3 | pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log |
4 | feedatom: https://sledjhamr.org/cgit/notYetAnotherWiki/atom | ||
4 | --- | 5 | --- |
@@ -1,6 +1,6 @@ | |||
1 | --- | 1 | --- |
2 | pagetitle: "notYetAnotherWiki" | 2 | pagetitle: "notYetAnotherWiki" |
3 | pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/index.md | 3 | pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log |
4 | --- | 4 | --- |
5 | 5 | ||
6 | notYetAnotherWiki is not another wiki, at least not yet. It'll be much | 6 | notYetAnotherWiki is not another wiki, at least not yet. It'll be much |
@@ -1,6 +1,6 @@ | |||
1 | --- | 1 | --- |
2 | pagetitle: "TODO" | 2 | pagetitle: "TODO" |
3 | pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/TODO.md | 3 | pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log |
4 | --- | 4 | --- |
5 | ## Do these | 5 | ## Do these |
6 | 6 | ||
diff --git a/about/index.md b/about/index.md index ebe52a4..af5c62f 100644 --- a/about/index.md +++ b/about/index.md | |||
@@ -1,6 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | pagetitle: "notYetAnotherWiki is not another wiki, at least not yet. It'll be much more than that, eventually." | 2 | pagetitle: "notYetAnotherWiki is not another wiki, at least not yet. It'll be much more than that, eventually." |
3 | pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/About/index.md | ||
4 | --- | 3 | --- |
5 | 4 | ||
6 | This is a new directory, an entire PR department can hang out here. | 5 | This is a new directory, an entire PR department can hang out here. |
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index f78e986..576ffa3 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua | |||
@@ -270,7 +270,7 @@ for name, file in pairs(Files) do | |||
270 | -- if '' == metadata.trail then metadata.trail = '<a href="' .. string.rep('../', ln) .. '/' .. whichPage('') .. '">home</a> ' end | 270 | -- if '' == metadata.trail then metadata.trail = '<a href="' .. string.rep('../', ln) .. '/' .. whichPage('') .. '">home</a> ' end |
271 | 271 | ||
272 | -- Figure out this pages footer links. | 272 | -- Figure out this pages footer links. |
273 | if nil ~= metadata.pagehistory then metadata.history = '<p>Page <a href="' .. metadata.pagehistory .. '">history</a></p>' end | 273 | if nil ~= metadata.pagehistory then metadata.history = '<p>Page <a href="' .. metadata.pagehistory .. '/' .. name .. '.md">history</a></p>' end |
274 | if nil ~= metadata.sourcecode then metadata.footer = '<a href="' .. metadata.sourcecode .. '">source code</a> ' .. metadata.footer end | 274 | if nil ~= metadata.sourcecode then metadata.footer = '<a href="' .. metadata.sourcecode .. '">source code</a> ' .. metadata.footer end |
275 | if nil ~= metadata.feedatom then metadata.footer = '<a href="' .. metadata.feedatom .. '">atom feed</a> ' .. metadata.footer end | 275 | if nil ~= metadata.feedatom then metadata.footer = '<a href="' .. metadata.feedatom .. '">atom feed</a> ' .. metadata.footer end |
276 | if metadata.footer ~= globalData.footer then metadata.footer = 'Web site ' .. metadata.footer end | 276 | if metadata.footer ~= globalData.footer then metadata.footer = 'Web site ' .. metadata.footer end |
diff --git a/testing/index.md b/testing/index.md index 910419e..c95cdac 100644 --- a/testing/index.md +++ b/testing/index.md | |||
@@ -1,6 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | pagetitle: "G'day world!" | 2 | pagetitle: "G'day world!" |
3 | pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/testing/index.md | ||
4 | --- | 3 | --- |
5 | 4 | ||
6 | I've been around since the early sixties, but no one ever noticed. You | 5 | I've been around since the early sixties, but no one ever noticed. You |