summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-10-30 18:45:13 +0200
committerLars Wirzenius <liw@liw.fi>2023-10-30 19:08:10 +0200
commit5a84e1bde773bdc782c1db5a633ef8765f220253 (patch)
tree93b283272bcc4854cbd96592dd381d09f77cac77 /subplot.md
parent7252cf5c1e0288b1bbb54908999fc7524d12bf1e (diff)
downloadsubplot-5a84e1bde773bdc782c1db5a633ef8765f220253.tar.gz
feat: allow .subplot to list CSS files to embed in HTML output
This is in the meta data field "css_embed". Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index 06e9e38..6532614 100644
--- a/subplot.md
+++ b/subplot.md
@@ -3639,6 +3639,51 @@ markdowns:
~~~
~~~~~~
+## HTML output
+
+### Embedded CSS
+
+_Requirement:_ The user can specify CSS files to embed in the HTML
+output.
+
+Justification: We want to allow production of self-standing output
+with user-defined styling.
+
+~~~scenario
+given file embedded-css.subplot
+given file embedded-css.md
+given file embedded-css.css
+given file b.yaml
+given an installed subplot
+when I run subplot docgen embedded-css.subplot -o foo.html
+then file foo.html contains "silly: property;"
+~~~
+
+~~~{#embedded-css.subplot .file .yaml .numberLines}
+title: Embedded CSS
+markdowns:
+ - embedded-css.md
+bindings:
+ - b.yaml
+css_embed:
+ - embedded-css.css
+~~~
+
+~~~~~~{#embedded-css.md .file .markdown .numberLines}
+# This is a title
+
+~~~scenario
+given precondition
+~~~
+~~~~~~
+
+~~~{#embedded-css.css .file .css .numberLines}
+html {
+ silly: property;
+}
+~~~
+
+
## Running Subplot
The scenarios in this section verify that the Subplot tool can be run