summaryrefslogtreecommitdiff
path: root/riki.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-07-20 17:59:44 +0000
committerLars Wirzenius <liw@liw.fi>2022-07-20 17:59:44 +0000
commitd064f8de5865d563657ff10e12a48bd9a872f43e (patch)
tree0082cfc742c6d0465075797bfbfbd96021cf75eb /riki.md
parent5f4367f6646bb92992186dad9031ce8ec786028a (diff)
parenta8dfe6639da061e14b4a56e0d04ebeeb5d34d0e9 (diff)
downloadriki-d064f8de5865d563657ff10e12a48bd9a872f43e.tar.gz
Merge branch 'resolve-target-must-exist' into 'main'
change Site::resolve to return a Result See merge request larswirzenius/riki!16
Diffstat (limited to 'riki.md')
-rw-r--r--riki.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/riki.md b/riki.md
index 85abe81..14be721 100644
--- a/riki.md
+++ b/riki.md
@@ -381,7 +381,6 @@ 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="/missing"
~~~
~~~{#foo .file .markdown}
@@ -389,6 +388,20 @@ then file output/dir/foo.html contains "href="/missing"
[[sibling]]
[[child]]
[[child/grandchild]]
+~~~
+
+## Wiki links to pages that don't exist
+
+_Requirement: Linking to a page that doesn't exist is an error._
+
+~~~scenario
+given an installed riki
+given file site/dir/foo.mdwn from badlink
+when I try to run riki build --plain-body site output
+then command fails
+~~~
+
+~~~{#badlink .file .markdown}
[[missing]]
~~~