From 3d32da6ea10021b50d29a737969e1ece2f30bb91 Mon Sep 17 00:00:00 2001 From: bennibbelink <79653949+bennibbelink@users.noreply.github.com> Date: Mon, 1 Apr 2024 12:51:51 -0500 Subject: [PATCH 1/2] Adds our custom sidebar to the sphinx build --- source/atemplates/layout.html | 7 ++----- source/conf.py | 4 +++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/source/atemplates/layout.html b/source/atemplates/layout.html index cfd6ae8e..bf579019 100644 --- a/source/atemplates/layout.html +++ b/source/atemplates/layout.html @@ -1,6 +1,4 @@ -{% extends "!layout.html" %} - -{% block sidebarsearch %} +

{{ _('Useful Pages') }}

- {{ super() }}

Get Cyclus


Current version: 1.5.5 @@ -53,4 +50,4 @@

Acknowledgements

-{% endblock %} +
diff --git a/source/conf.py b/source/conf.py index bf1630d1..c8a5fccf 100644 --- a/source/conf.py +++ b/source/conf.py @@ -186,7 +186,9 @@ #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. -#html_sidebars = {} +html_sidebars = { + '**': [ 'searchbox.html', 'sidebar.html'] +} # Additional templates that should be rendered to pages, maps page names to # template names. From 9a1f7821e3b637bfa9f2afc4dc41fc99405d6cde Mon Sep 17 00:00:00 2001 From: bennibbelink <79653949+bennibbelink@users.noreply.github.com> Date: Mon, 1 Apr 2024 12:56:45 -0500 Subject: [PATCH 2/2] rename layout.html to sidebar.html for clarity --- source/atemplates/{layout.html => sidebar.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename source/atemplates/{layout.html => sidebar.html} (100%) diff --git a/source/atemplates/layout.html b/source/atemplates/sidebar.html similarity index 100% rename from source/atemplates/layout.html rename to source/atemplates/sidebar.html