From bf2e758122c668e1c3c15ba215d54db791bc7049 Mon Sep 17 00:00:00 2001 From: Hari Date: Mon, 12 Feb 2024 13:37:22 +0100 Subject: [PATCH] removed html templates --- docs/_static/custom.css | 27 --------------------------- docs/_templates/versions.html | 27 --------------------------- docs/conf.py | 11 ++++++----- 3 files changed, 6 insertions(+), 59 deletions(-) delete mode 100644 docs/_templates/versions.html diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 4c8bf27..a8734fb 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -80,31 +80,4 @@ div[class^='highlight'] { border-radius: 5px; padding: 2px 4px; color: #333333; -} - - -@media (max-width: 768px) { - .wy-side-nav-search { - display: block; - position: fixed; - left: 0; - top: 0; - height: 100%; - width: 250px; - overflow-y: auto; - z-index: 1000; - background-color: var(--main-bg-color); - } - - .rst-content { - margin-left: 250px; - } - - .sidebar-toggle { - display: block; - position: fixed; - top: 15px; - left: calc(100% - 60px); - z-index: 1010; - } } \ No newline at end of file diff --git a/docs/_templates/versions.html b/docs/_templates/versions.html deleted file mode 100644 index c49f844..0000000 --- a/docs/_templates/versions.html +++ /dev/null @@ -1,27 +0,0 @@ -{%- if current_version %} -
- - Other Versions - v: {{ current_version.name }} - - -
- {%- if versions.tags %} -
-
Tags
- {%- for item in versions.tags %} -
{{ item.name }}
- {%- endfor %} -
- {%- endif %} - {%- if versions.branches %} -
-
Branches
- {%- for item in versions.branches %} -
{{ item.name }}
- {%- endfor %} -
- {%- endif %} -
-
-{%- endif %} \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 413e0ef..b6ec305 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,11 +47,6 @@ ] templates_path = ["_templates"] -html_sidebars = { - "**": [ - "_templates/versions.html", - ], -} # sphinx-notfound-page notfound_context = { @@ -79,6 +74,7 @@ # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output + html_theme = "sphinx_rtd_theme" html_static_path = ["_static"] html_css_files = ["custom.css"] @@ -105,6 +101,11 @@ "titles_only": False, } + +def setup(app): + app.add_css_file("custom.css") + + # generate autosummary even if no references autosummary_generate = True autosummary_imported_members = True