summaryrefslogtreecommitdiff
path: root/riki.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-07-21 19:54:02 +0300
committerLars Wirzenius <liw@liw.fi>2022-07-21 19:54:02 +0300
commitea713eb077aceb9c82ccb2f4c995d9a5437e753e (patch)
tree055891694996997ce52b143c4c94b4a920ede87f /riki.md
parentc38bae2f7a35a42aab4d2302886dddee68ffab09 (diff)
downloadriki-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.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/riki.md b/riki.md
index 4eb6e7f..7f61ea0 100644
--- a/riki.md
+++ b/riki.md
@@ -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.