From 1f59352668f2c4f5cb48e95669bc6c36ff0b3d00 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Wed, 6 Nov 2024 00:10:43 -0600 Subject: [PATCH] Add files needed to get multiversion side bar to work --- conda_package/docs/_static/style.css | 4 +++ conda_package/docs/_templates/layout.html | 5 ++++ conda_package/docs/_templates/versions.html | 28 +++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 conda_package/docs/_static/style.css create mode 100644 conda_package/docs/_templates/layout.html create mode 100644 conda_package/docs/_templates/versions.html diff --git a/conda_package/docs/_static/style.css b/conda_package/docs/_static/style.css new file mode 100644 index 000000000..6cbfde333 --- /dev/null +++ b/conda_package/docs/_static/style.css @@ -0,0 +1,4 @@ +.wy-nav-content { + max-width: 1200px !important; +} + diff --git a/conda_package/docs/_templates/layout.html b/conda_package/docs/_templates/layout.html new file mode 100644 index 000000000..efc29758f --- /dev/null +++ b/conda_package/docs/_templates/layout.html @@ -0,0 +1,5 @@ +{% extends "!layout.html" %} +{% block extrahead %} + +{% endblock %} + diff --git a/conda_package/docs/_templates/versions.html b/conda_package/docs/_templates/versions.html new file mode 100644 index 000000000..625a9a384 --- /dev/null +++ b/conda_package/docs/_templates/versions.html @@ -0,0 +1,28 @@ +{%- 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 %} +