diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2023-05-12 12:08:46 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2023-05-12 12:08:46 +0000 |
commit | 5b30f07a5989769397de7441ac9440e379a53488 (patch) | |
tree | f6884f4b6c3ee43c9c736f7f91e12d8a5ec98c49 /subplot.md | |
parent | 37c46ae17cb3f75a4b34c9e2104110c20fb2cb59 (diff) | |
parent | ace211d2c2e9c775872c4a23087763afff5a5bb2 (diff) | |
download | subplot-5b30f07a5989769397de7441ac9440e379a53488.tar.gz |
Merge branch 'liw/muldti-md' into 'main'
support multiple markdown files per subplot document
Closes #318
See merge request subplot/subplot!328
Diffstat (limited to 'subplot.md')
-rw-r--r-- | subplot.md | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -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 |