summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-10-30 18:55:47 +0200
committerLars Wirzenius <liw@liw.fi>2023-10-30 19:12:15 +0200
commitad26e9d84925532ae5522aad8def5d764fe0ffbe (patch)
tree0fd717f54feddf2975ff134d2f32c343dc2cc28b /subplot.md
parent5a84e1bde773bdc782c1db5a633ef8765f220253 (diff)
downloadsubplot-ad26e9d84925532ae5522aad8def5d764fe0ffbe.tar.gz
feat: allow adding CSS URLs to HTML output
This is in the meta data field "css_urls". Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index 6532614..432b571 100644
--- a/subplot.md
+++ b/subplot.md
@@ -3683,6 +3683,40 @@ html {
}
~~~
+### CSS URLs
+
+_Requirement:_ The user can specify CSS URLs to add in the HTML
+output.
+
+Justification: We want to allow users to specify non-embedded CSS.
+
+~~~scenario
+given file css-urls.subplot
+given file css-urls.md
+given file b.yaml
+given an installed subplot
+when I run subplot docgen css-urls.subplot -o foo.html
+then file foo.html contains "https://example.com/flushing.css"
+~~~
+
+~~~{#css-urls.subplot .file .yaml .numberLines}
+title: Embedded CSS
+markdowns:
+ - css-urls.md
+bindings:
+ - b.yaml
+css_urls:
+ - https://example.com/flushing.css
+~~~
+
+~~~~~~{#css-urls.md .file .markdown .numberLines}
+# This is a title
+
+~~~scenario
+given precondition
+~~~
+~~~~~~
+
## Running Subplot