aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-01-17 16:40:51 +1000
committerdvs12025-01-17 16:40:51 +1000
commit669594bd7fe4bc9a630e90e1880d3511c13b208e (patch)
treee9aff21a28761e4d2ae7fdeaed019d63b1f1db78
parentSorting still fails sometimes. Lets see if hat happens elsewhere. (diff)
downloadnotYetAnotherWiki-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.md5
-rw-r--r--MeTaDaTa.md5
-rw-r--r--README2
-rw-r--r--TODO.md2
-rw-r--r--about/index.md1
-rwxr-xr-xnotYetAnotherWiki.lua2
-rw-r--r--testing/index.md1
7 files changed, 6 insertions, 12 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 6b19208..35137f8 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -1,8 +1,3 @@
1---
2pagetitle: "INSTALL"
3pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/INSTALL.md
4---
5
6notYetAnotherWiki 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. 1notYetAnotherWiki 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
8You also need luajit installed. 3You 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---
2feedatom: https://sledjhamr.org/cgit/notYetAnotherWiki/atom 2sourcecode: https://sledjhamr.org/cgit/notYetAnotherWiki/
3sourcecode: https://sledjhamr.org/cgit/notYetAnotherWiki/ 3pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log
4feedatom: https://sledjhamr.org/cgit/notYetAnotherWiki/atom
4--- 5---
diff --git a/README b/README
index 161a7f2..1f0f99d 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
1--- 1---
2pagetitle: "notYetAnotherWiki" 2pagetitle: "notYetAnotherWiki"
3pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/index.md 3pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log
4--- 4---
5 5
6notYetAnotherWiki is not another wiki, at least not yet. It'll be much 6notYetAnotherWiki is not another wiki, at least not yet. It'll be much
diff --git a/TODO.md b/TODO.md
index 863a0a9..7e6d7fd 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,6 +1,6 @@
1--- 1---
2pagetitle: "TODO" 2pagetitle: "TODO"
3pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/TODO.md 3pagehistory: 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---
2pagetitle: "notYetAnotherWiki is not another wiki, at least not yet. It'll be much more than that, eventually." 2pagetitle: "notYetAnotherWiki is not another wiki, at least not yet. It'll be much more than that, eventually."
3pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/About/index.md
4--- 3---
5 4
6This is a new directory, an entire PR department can hang out here. 5This 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> &nbsp; ' end 270-- if '' == metadata.trail then metadata.trail = '<a href="' .. string.rep('../', ln) .. '/' .. whichPage('') .. '">home</a> &nbsp; ' 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&nbsp;<a href="' .. metadata.pagehistory .. '">history</a></p>' end 273 if nil ~= metadata.pagehistory then metadata.history = '<p>Page&nbsp;<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> &nbsp; &nbsp; ' .. metadata.footer end 274 if nil ~= metadata.sourcecode then metadata.footer = '<a href="' .. metadata.sourcecode .. '">source code</a> &nbsp; &nbsp; ' .. metadata.footer end
275 if nil ~= metadata.feedatom then metadata.footer = '<a href="' .. metadata.feedatom .. '">atom feed</a> &nbsp; &nbsp; ' .. metadata.footer end 275 if nil ~= metadata.feedatom then metadata.footer = '<a href="' .. metadata.feedatom .. '">atom feed</a> &nbsp; &nbsp; ' .. 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---
2pagetitle: "G'day world!" 2pagetitle: "G'day world!"
3pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/testing/index.md
4--- 3---
5 4
6I've been around since the early sixties, but no one ever noticed.&nbsp; You 5I've been around since the early sixties, but no one ever noticed.&nbsp; You