diff --git a/sphinx_pythia_theme/docs-navbar.html b/sphinx_pythia_theme/docs-navbar.html new file mode 100644 index 0000000..23ed3f2 --- /dev/null +++ b/sphinx_pythia_theme/docs-navbar.html @@ -0,0 +1,31 @@ +
+ + + + + + {% set navbar_class, navbar_align = navbar_align_class() %} + +
diff --git a/sphinx_pythia_theme/layout.html b/sphinx_pythia_theme/layout.html index 056b153..52fc3a5 100644 --- a/sphinx_pythia_theme/layout.html +++ b/sphinx_pythia_theme/layout.html @@ -5,42 +5,58 @@ {%- endblock %} {%- block content %} -
-{{ super() }} -{%- endblock %} +
+ + + {%- block docs_navbar %} + + {%- endblock %} + +
+
+ {%- block docs_sidebar %} + {%- if sidebars %} + {{ super() }} + {%- else %} +
+ {%- endif %} + {%- endblock %} + + {%- block docs_toc %} + {{ super() }} + {%- endblock %} -{%- block docs_sidebar %} -{%- if sidebars %} -{{ super() }} -{%- endif %} -{% endblock %} - -{%- block docs_main %} -{%- if theme_page_layouts and pagename in theme_page_layouts %} -{%- include theme_page_layouts[pagename] %} -{%- else %} -
- {%- block docs_body %} - {%- if sidebars %} - {%- include "topbar.html" %} - {%- endif %} -
-
- {{ super.super() }} - {% if theme_show_prev_next %} - {% include "_templates/prev-next.html" %} - {% endif %} + {%- block docs_main %} + {%- if theme_page_layouts and pagename in theme_page_layouts %} + {%- include theme_page_layouts[pagename] %} + {%- else %} +
+ {%- block docs_body %} + {%- if sidebars %} + {%- include "topbar.html" %} + {%- endif %} +
+
+ {{ super.super() }} + {%- if theme_show_prev_next %} + {%- include "_templates/prev-next.html" %} + {%- endif %} +
+
+ {%- endblock %} +
+ {%- endif %} + {%- endblock %} + +
-
+ + {%- block scripts_end %} + {{ _webpack.body_post() }} {%- endblock %} - -{%- endif %} -{%- endblock %} -{%- block docs_navbar %} - {%- endblock %} {%- block footer %} diff --git a/sphinx_pythia_theme/topbar.html b/sphinx_pythia_theme/topbar.html new file mode 100644 index 0000000..5020e15 --- /dev/null +++ b/sphinx_pythia_theme/topbar.html @@ -0,0 +1,35 @@ +
+
+ +
+ {% if theme_single_page != True %} + + {% endif %} + {% include "topbar/download.html" %} + {% include "topbar/repobuttons.html" %} + {% include "topbar/fullscreen.html" %} + {% include "topbar/launchbuttons.html" %} +
+ + +
+ {% set page_toc = generate_toc_html() %} + + {%- if page_toc | length >= 1 %} +
+ {{ translate(theme_toc_title) }} +
+ + {%- endif %} +
+
+
\ No newline at end of file