From 48c2620e3e1874d36cdcd8c3fc9a6047c36617aa Mon Sep 17 00:00:00 2001 From: Firehawke <34792592+Firehawke@users.noreply.github.com> Date: Sat, 4 Dec 2021 15:31:12 -0700 Subject: Refactor html docs build process to use new template and env variable --- docs/themes/sphinx_rtd_theme/theme.conf | 1 - docs/themes/sphinx_rtd_theme/versions.html | 77 ++++++++++++------------------ 2 files changed, 31 insertions(+), 47 deletions(-) (limited to 'docs/themes') diff --git a/docs/themes/sphinx_rtd_theme/theme.conf b/docs/themes/sphinx_rtd_theme/theme.conf index 03537e98fc8..5cc687d7f98 100644 --- a/docs/themes/sphinx_rtd_theme/theme.conf +++ b/docs/themes/sphinx_rtd_theme/theme.conf @@ -18,4 +18,3 @@ prev_next_buttons_location = bottom style_external_links = False style_nav_header_background = vcs_pageview_mode = -mamedevorg = True diff --git a/docs/themes/sphinx_rtd_theme/versions.html b/docs/themes/sphinx_rtd_theme/versions.html index fb0d4bf538b..0d0e1251a0c 100644 --- a/docs/themes/sphinx_rtd_theme/versions.html +++ b/docs/themes/sphinx_rtd_theme/versions.html @@ -1,49 +1,34 @@ {% if READTHEDOCS %} {# Add rst-badge after rst-versions for small badge style. #} -
- - Read the Docs - v: {{ current_version }} - - -
-
-
{{ _('Versions') }}
- {% for slug, url in versions %} -
{{ slug }}
- {% endfor %} -
-
-
{{ _('Downloads') }}
- {% for type, url in downloads %} -
{{ type }}
- {% endfor %} -
-
- {# Translators: The phrase "Read the Docs" is not translated #} -
{{ _('On Read the Docs') }}
-
- {{ _('Project Home') }} -
-
- {{ _('Builds') }} -
-
-
-
-{% endif %} -{# This section only gets used when mamedevorg is set to anything in theme.conf #} -{% if theme_mamedevorg %} -
- - Downloads - - -
-
-
PDF
-
EPUB
-
-
-
+
+ + Read the Docs + v: {{ current_version }} + + +
+
+
{{ _('Versions') }}
+ {% for slug, url in versions %} +
{{ slug }}
+ {% endfor %} +
+
+
{{ _('Downloads') }}
+ {% for type, url in downloads %} +
{{ type }}
+ {% endfor %} +
+
+ {# Translators: The phrase "Read the Docs" is not translated #} +
{{ _('On Read the Docs') }}
+
+ {{ _('Project Home') }} +
+
+ {{ _('Builds') }} +
+
+
+
{% endif %} -- cgit v1.2.3-70-g09d2