From 3cb31698697c6db3ed076c5fa1ea278bd9f246a5 Mon Sep 17 00:00:00 2001 From: wpk Date: Tue, 14 Feb 2023 14:24:46 -0500 Subject: [PATCH] update to documentation format --- docs/_templates/boilerplate-footer.html | 64 +++++++++++++++++++ docs/_templates/boilerplate-header.html | 20 ++++++ docs/_templates/breadcrumbs.html | 2 + docs/_templates/breadholder.html | 83 +++++++++++++++++++++++++ docs/_templates/footer.html | 20 ++++++ docs/_templates/layout.html | 43 +++++++++++++ docs/_templates/searchbox.html | 0 docs/conf.py | 4 +- 8 files changed, 234 insertions(+), 2 deletions(-) create mode 100644 docs/_templates/boilerplate-footer.html create mode 100644 docs/_templates/boilerplate-header.html create mode 100644 docs/_templates/breadcrumbs.html create mode 100644 docs/_templates/breadholder.html create mode 100644 docs/_templates/footer.html create mode 100644 docs/_templates/layout.html create mode 100644 docs/_templates/searchbox.html diff --git a/docs/_templates/boilerplate-footer.html b/docs/_templates/boilerplate-footer.html new file mode 100644 index 00000000..55e88c7f --- /dev/null +++ b/docs/_templates/boilerplate-footer.html @@ -0,0 +1,64 @@ + diff --git a/docs/_templates/boilerplate-header.html b/docs/_templates/boilerplate-header.html new file mode 100644 index 00000000..a28c07d0 --- /dev/null +++ b/docs/_templates/boilerplate-header.html @@ -0,0 +1,20 @@ + diff --git a/docs/_templates/breadcrumbs.html b/docs/_templates/breadcrumbs.html new file mode 100644 index 00000000..df6c7bc0 --- /dev/null +++ b/docs/_templates/breadcrumbs.html @@ -0,0 +1,2 @@ +{% include "boilerplate-header.html" %} +{% include "breadholder.html" %} diff --git a/docs/_templates/breadholder.html b/docs/_templates/breadholder.html new file mode 100644 index 00000000..08a56747 --- /dev/null +++ b/docs/_templates/breadholder.html @@ -0,0 +1,83 @@ +{# This is https://github.com/rtfd/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/breadcrumbs.html completely unmodified #} +{# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #} + +{% if page_source_suffix %} +{% set suffix = page_source_suffix %} +{% else %} +{% set suffix = source_suffix %} +{% endif %} + +{% if meta is defined and meta is not none %} +{% set check_meta = True %} +{% else %} +{% set check_meta = False %} +{% endif %} + +{% if check_meta and 'github_url' in meta %} +{% set display_github = True %} +{% endif %} + +{% if check_meta and 'bitbucket_url' in meta %} +{% set display_bitbucket = True %} +{% endif %} + +{% if check_meta and 'gitlab_url' in meta %} +{% set display_gitlab = True %} +{% endif %} + +
+ + + + {% if (theme_prev_next_buttons_location == 'top' or theme_prev_next_buttons_location == 'both') and (next or prev) %} + + {% endif %} +
+
diff --git a/docs/_templates/footer.html b/docs/_templates/footer.html new file mode 100644 index 00000000..31d6fdb8 --- /dev/null +++ b/docs/_templates/footer.html @@ -0,0 +1,20 @@ +{% extends '!footer.html' %} + +{% block extrafooter %} + + +

+ {% include "boilerplate-footer.html" %} + + + + + + +{% endblock %} diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html new file mode 100644 index 00000000..963a98ff --- /dev/null +++ b/docs/_templates/layout.html @@ -0,0 +1,43 @@ +{% extends '!layout.html' %} + +{% block extrahead %} + + + + + + + + + + + + + + + + +{% endblock %} diff --git a/docs/_templates/searchbox.html b/docs/_templates/searchbox.html new file mode 100644 index 00000000..e69de29b diff --git a/docs/conf.py b/docs/conf.py index 15f19a38..9cfb06d3 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -44,8 +44,8 @@ "nbsphinx", # "sphinx_autosummary_accessors", # "scanpydoc.rtd_github_links", - "sphinx.ext.viewcode", - # "sphinx.ext.linkcode", + # "sphinx.ext.viewcode", + "sphinx.ext.linkcode", ]