From c7b37b35c4530dc9ee79a4b79a46041ed682b183 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 5 Aug 2022 07:21:56 +0300 Subject: refactor: use new type for names This is a big change that was not feasible to turn into a tidy series of small steps. Sorry. Re-work the processing queue so that wikitext pages are not loaded as soon as the files are round in Site::scan, but later, though still in ::scan. This is a little cleaner. Fix: don't copy markdown files to the destination tree, and verify that it doesn't happen in the subplot. Also, un-publish Site::add_wikitextpage and Site::add_other_file. They're not needed from outside site.rs. Also, drop Sites::included_files, as it was the same as Site::files. Sponsored-by: author --- riki.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'riki.md') diff --git a/riki.md b/riki.md index 7adb3ff..c5dc4c0 100644 --- a/riki.md +++ b/riki.md @@ -532,6 +532,18 @@ then stdout doesn't contain "#index.mdwn#" ## Output directory tree +### No markdown files in output tree + +_Requirement: Markdown files are not copied to the output tree._ + +~~~scenario +given an installed riki +given file site/index.mdwn from empty +when I run riki build site output +then file output/index.html exists +then file output/index.mdwn does not exist +~~~ + ### Output files have source file modification times _Requirement: Files in the output directory have the same time stamp -- cgit v1.2.1