summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-05-10 09:10:25 +0300
committerLars Wirzenius <liw@liw.fi>2023-05-10 09:14:34 +0300
commitace211d2c2e9c775872c4a23087763afff5a5bb2 (patch)
treef6884f4b6c3ee43c9c736f7f91e12d8a5ec98c49 /subplot.md
parent0a81c16df535853c68d5c833a213a81c2a1a9388 (diff)
downloadsubplot-ace211d2c2e9c775872c4a23087763afff5a5bb2.tar.gz
feat! allow multiple markdown files for a subplot
Sponsored-by: author
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index 05edeae..8556afd 100644
--- a/subplot.md
+++ b/subplot.md
@@ -2685,6 +2685,44 @@ bibliography: [foo.bib, bar.bib]
~~~
+### Multiple markdown files
+
+This scenario tests that the `markdowns` field in metadata can specify
+more than one markdown file.
+
+~~~scenario
+given file multimd.subplot
+given file md1.md
+given file md2.md
+given an installed subplot
+when I run subplot docgen multimd.subplot -o multimd.html
+when I run cat multimd.html
+then file multimd.html exists
+and file multimd.html contains "<title>The Fabulous Title</title>"
+and file multimd.html contains "First markdown file."
+and file multimd.html contains "Second markdown file."
+~~~
+
+~~~{#multimd.subplot .file .yaml .numberLines}
+title: The Fabulous Title
+authors:
+- Alfred Pennyworth
+- Geoffrey Butler
+date: WIP
+markdowns:
+- md1.md
+- md2.md
+~~~
+
+~~~{#md1.md .file .markdown .numberLines}
+First markdown file.
+~~~
+
+~~~{#md2.md .file .markdown .numberLines}
+Second markdown file.
+~~~
+
+
## Embedded files
Subplot allows data files to be embedded in the input document. This