diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-07-20 20:58:19 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-07-20 20:58:19 +0300 |
commit | a8dfe6639da061e14b4a56e0d04ebeeb5d34d0e9 (patch) | |
tree | 0082cfc742c6d0465075797bfbfbd96021cf75eb /riki.md | |
parent | f4c74c6a2eb3b1222ad0b0ae48fb8637522210a4 (diff) | |
download | riki-a8dfe6639da061e14b4a56e0d04ebeeb5d34d0e9.tar.gz |
feat! linking to a page that doesn't exist is an error
On a user-editable wiki, it is useful to allow links to targets that
don't exist. In a static site generator, not.
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r-- | riki.md | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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]] ~~~ |