From 261789f4dae9817e27f4515dbd01a4ddbf5dc1f3 Mon Sep 17 00:00:00 2001 From: Joel Lefkowitz Date: Wed, 24 Apr 2024 10:56:23 +0100 Subject: [PATCH] Hide footnotes --- docs/sphinx/conf.py | 2 +- docs/sphinx/styles.css | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/sphinx/conf.py b/docs/sphinx/conf.py index ddb696a..de42294 100644 --- a/docs/sphinx/conf.py +++ b/docs/sphinx/conf.py @@ -58,7 +58,7 @@ def build(app, build): pattern = re.compile(r"src(?!\=)") - for file in tree("docs/dist", r"\.html") + ["docs/dist/searchindex.js"]: + for file in [*tree("docs/dist", r"\.html"), "docs/dist/searchindex.js"]: with open(file, "r") as stream: text = pattern.sub(package, stream.read()) diff --git a/docs/sphinx/styles.css b/docs/sphinx/styles.css index 9e74e59..20bc60d 100644 --- a/docs/sphinx/styles.css +++ b/docs/sphinx/styles.css @@ -19,7 +19,8 @@ width: 300px; } -section#documentation .footnote-list.brackets { +section#documentation, +.footnote-list.brackets { display: none; }