diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-25 23:12:57 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-25 23:12:57 +0200 |
| commit | 79f3257437636c153bd9e66131495680ddf39afd (patch) | |
| tree | 1cad94f6d156f6d05bd3843fd819ca30238b8d28 /repo/www/helpers.py | |
| parent | ef1cb64a6cfda2b971649ee5cf051e50235f081e (diff) | |
| download | memory-leaks-79f3257437636c153bd9e66131495680ddf39afd.tar.xz | |
Include stylesheets
With relative links, so that I can just view HTML files on my disk
without spawning a webserver.
Diffstat (limited to 'repo/www/helpers.py')
| -rw-r--r-- | repo/www/helpers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/repo/www/helpers.py b/repo/www/helpers.py index afdb64b..9b97902 100644 --- a/repo/www/helpers.py +++ b/repo/www/helpers.py @@ -56,11 +56,12 @@ def deserialize_directories(directories): } -def pandoc(page, output, template, filters, title=None, site_title=None, - include_after=()): +def pandoc(page, output, template, filters, stylesheets, title=None, + site_title=None, include_after=()): cmd = ( 'pandoc', '-s', page, '-o', output, '--template', template, *chain(*(('--lua-filter', f) for f in filters)), + *chain(*(('--css', s) for s in stylesheets)), *chain(*(('--include-after-body', f) for f in include_after)) ) |
