From e0471c850813d93e402a6c303a2c7fb4364e0d65 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Thu, 21 Oct 2021 18:08:09 +0100 Subject: [PATCH] Add table of contents folded at top of page --- notes2web.py | 3 ++- styles.css | 4 ---- templates/article.html | 10 ++++++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/notes2web.py b/notes2web.py index fb4d549..b7728c1 100755 --- a/notes2web.py +++ b/notes2web.py @@ -203,7 +203,8 @@ def main(args): f'--template={args.template}', '-V', f'filehistory={filehistory}', '-V', f'licenseFull={notes_license}', - '--mathjax' + '--mathjax', + '--toc' ]) pathlib.Path(output_filename).parent.mkdir(parents=True, exist_ok=True) diff --git a/styles.css b/styles.css index ddafc78..47ded3d 100644 --- a/styles.css +++ b/styles.css @@ -45,10 +45,6 @@ summary > * { display: inline } -li { - margin-bottom: 1em; -} - img, video { margin: 0 auto; display: block; diff --git a/templates/article.html b/templates/article.html index dc945b3..d1d7555 100644 --- a/templates/article.html +++ b/templates/article.html @@ -10,7 +10,7 @@