diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-07-21 19:54:02 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-07-21 19:54:02 +0300 |
commit | ea713eb077aceb9c82ccb2f4c995d9a5437e753e (patch) | |
tree | 055891694996997ce52b143c4c94b4a920ede87f /riki.md | |
parent | c38bae2f7a35a42aab4d2302886dddee68ffab09 (diff) | |
download | riki-ea713eb077aceb9c82ccb2f4c995d9a5437e753e.tar.gz |
feat: generate only relative HTML links from wiki links
This will allow the generated HTML to be rooted at any prefix.
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r-- | riki.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -377,10 +377,10 @@ given file site/dir/sibling.mdwn from empty given file site/dir/foo/child.mdwn from empty given file site/dir/foo/child/grandchild.mdwn from empty when I run riki build --plain-body site output -then file output/dir/foo.html contains "href="/absolute"" -then file output/dir/foo.html contains "href="/dir/sibling"" -then file output/dir/foo.html contains "href="/dir/foo/child"" -then file output/dir/foo.html contains "href="/dir/foo/child/grandchild"" +then file output/dir/foo.html contains "href="../absolute"" +then file output/dir/foo.html contains "href="sibling"" +then file output/dir/foo.html contains "href="foo/child"" +then file output/dir/foo.html contains "href="foo/child/grandchild"" ~~~ Note the uppercase link to the `child` page in the test page below. |