diff options
| author | onefang | 2026-01-28 15:06:59 +1000 |
|---|---|---|
| committer | onefang | 2026-01-28 15:06:59 +1000 |
| commit | 0f34952b5568324cadec190b724d5df775b6da37 (patch) | |
| tree | 321af6792c50dccb778459db14d337ff29ca0208 | |
| parent | Convert DocuWiki img linky. (diff) | |
| download | notYetAnotherWiki-0f34952b5568324cadec190b724d5df775b6da37.zip notYetAnotherWiki-0f34952b5568324cadec190b724d5df775b6da37.tar.gz notYetAnotherWiki-0f34952b5568324cadec190b724d5df775b6da37.tar.bz2 notYetAnotherWiki-0f34952b5568324cadec190b724d5df775b6da37.tar.xz | |
Combine DocuWiki pages and media.
| -rwxr-xr-x | notYetAnotherWiki.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index a73107d..84c320e 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua | |||
| @@ -804,7 +804,7 @@ local lunaLinky = function(url) -- Fix up the links. | |||
| 804 | for j = 1, #p do | 804 | for j = 1, #p do |
| 805 | if '/' == p:sub(j, j) then cnt = cnt + 1 end | 805 | if '/' == p:sub(j, j) then cnt = cnt + 1 end |
| 806 | end | 806 | end |
| 807 | url = string.rep('../', cnt) .. 'DocuWiki/media' .. p .. ur | 807 | url = string.rep('../', cnt) .. 'DocuWiki/pages' .. p .. ur |
| 808 | else | 808 | else |
| 809 | url = url .. '.HTML' | 809 | url = url .. '.HTML' |
| 810 | end | 810 | end |
