+ {% set page_toc = generate_toc_html() %}
+ {%- if page_toc | length >= 1 %}
+
+
+
+
+ {%- endif %}
+ diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html new file mode 100644 index 0000000..0d56fc1 --- /dev/null +++ b/docs/_templates/layout.html @@ -0,0 +1,31 @@ +{% extends "pydata_sphinx_theme/layout.html" %} +{# ref: https://github.com/pydata/pydata-sphinx-theme/blob/master/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html #} + +{% block docs_main %} +{# A tiny helper pixel to detect if we've scrolled #} +
+{{ super() }} +{% endblock %} + + +{% block docs_body %} +{# Table of contents that is only displayed when printing the page #} +