From 68a0dd3f51b85ac51e41edecc0abe62b72d0160b Mon Sep 17 00:00:00 2001 From: kanderso-nrel Date: Sat, 11 Jan 2020 19:36:14 -0700 Subject: [PATCH 1/2] remove superscript formatting for footnotes via css override --- docs/sphinx/source/_static/no_reference_superscript.css | 4 ++++ docs/sphinx/source/conf.py | 1 + 2 files changed, 5 insertions(+) create mode 100644 docs/sphinx/source/_static/no_reference_superscript.css diff --git a/docs/sphinx/source/_static/no_reference_superscript.css b/docs/sphinx/source/_static/no_reference_superscript.css new file mode 100644 index 0000000000..10ffe6b68b --- /dev/null +++ b/docs/sphinx/source/_static/no_reference_superscript.css @@ -0,0 +1,4 @@ +.footnote-reference { + font-size: 100% !important; /* default is 90% */ + top: 0.0em !important; /* default is -0.4em */ +} \ No newline at end of file diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index d4de03fa5f..83d700bc6a 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -222,6 +222,7 @@ def __getattr__(cls, name): # A workaround for the responsive tables always having annoying scrollbars. def setup(app): app.add_stylesheet("no_scrollbars.css") + app.add_stylesheet("no_reference_superscript.css") # -- Options for LaTeX output --------------------------------------------- From 1975260eb9e1507ba2b1da547ca137f91ce6ff83 Mon Sep 17 00:00:00 2001 From: kanderso-nrel Date: Sun, 12 Jan 2020 09:16:44 -0700 Subject: [PATCH 2/2] update conf.py comments --- docs/sphinx/source/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index 9773d17eca..7e050726e8 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -223,9 +223,12 @@ def __getattr__(cls, name): # Output file base name for HTML help builder. htmlhelp_basename = 'PVLIB_Pythondoc' -# A workaround for the responsive tables always having annoying scrollbars. + +# custom CSS workarounds def setup(app): + # A workaround for the responsive tables always having annoying scrollbars. app.add_stylesheet("no_scrollbars.css") + # Override footnote callout CSS to be normal text instead of superscript app.add_stylesheet("no_reference_superscript.css")