diff options
author | 2021-12-04 15:31:12 -0700 | |
---|---|---|
committer | 2021-12-04 15:31:12 -0700 | |
commit | 48c2620e3e1874d36cdcd8c3fc9a6047c36617aa (patch) | |
tree | 386768f6d9d18af6bf43fe8747084a7168d466d3 /docs/themes | |
parent | 028d02ba7a616af3a8f3f04a451c6af324d8fb3c (diff) |
Refactor html docs build process to use new template and env variable
Diffstat (limited to 'docs/themes')
-rw-r--r-- | docs/themes/sphinx_rtd_theme/theme.conf | 1 | ||||
-rw-r--r-- | docs/themes/sphinx_rtd_theme/versions.html | 77 |
2 files changed, 31 insertions, 47 deletions
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. #} - <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="{{ _('Versions') }}"> - <span class="rst-current-version" data-toggle="rst-current-version"> - <span class="fa fa-book"> Read the Docs</span> - v: {{ current_version }} - <span class="fa fa-caret-down"></span> - </span> - <div class="rst-other-versions"> - <dl> - <dt>{{ _('Versions') }}</dt> - {% for slug, url in versions %} - <dd><a href="{{ url }}">{{ slug }}</a></dd> - {% endfor %} - </dl> - <dl> - <dt>{{ _('Downloads') }}</dt> - {% for type, url in downloads %} - <dd><a href="{{ url }}">{{ type }}</a></dd> - {% endfor %} - </dl> - <dl> - {# Translators: The phrase "Read the Docs" is not translated #} - <dt>{{ _('On Read the Docs') }}</dt> - <dd> - <a href="//{{ PRODUCTION_DOMAIN }}/projects/{{ slug }}/?fromdocs={{ slug }}">{{ _('Project Home') }}</a> - </dd> - <dd> - <a href="//{{ PRODUCTION_DOMAIN }}/builds/{{ slug }}/?fromdocs={{ slug }}">{{ _('Builds') }}</a> - </dd> - </dl> - </div> - </div> -{% endif %} -{# This section only gets used when mamedevorg is set to anything in theme.conf #} -{% if theme_mamedevorg %} - <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="{{ _('Downloads') }}"> - <span class="rst-current-version" data-toggle="rst-current-version"> - <span class="fa fa-book">Downloads</span> - <span class="fa fa-caret-down"></span> - </span> - <div class="rst-other-versions"> - <dl> - <dd><a href="https://docs.mamedev.org/_files/MAME.pdf">PDF</a></dd> - <dd><a href="https://docs.mamedev.org/_files/MAME.epub">EPUB</a></dd> - </dl> - </div> - </div> +<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="{{ _('Versions') }}"> + <span class="rst-current-version" data-toggle="rst-current-version"> + <span class="fa fa-book"> Read the Docs</span> + v: {{ current_version }} + <span class="fa fa-caret-down"></span> + </span> + <div class="rst-other-versions"> + <dl> + <dt>{{ _('Versions') }}</dt> + {% for slug, url in versions %} + <dd><a href="{{ url }}">{{ slug }}</a></dd> + {% endfor %} + </dl> + <dl> + <dt>{{ _('Downloads') }}</dt> + {% for type, url in downloads %} + <dd><a href="{{ url }}">{{ type }}</a></dd> + {% endfor %} + </dl> + <dl> + {# Translators: The phrase "Read the Docs" is not translated #} + <dt>{{ _('On Read the Docs') }}</dt> + <dd> + <a href="//{{ PRODUCTION_DOMAIN }}/projects/{{ slug }}/?fromdocs={{ slug }}">{{ _('Project Home') }}</a> + </dd> + <dd> + <a href="//{{ PRODUCTION_DOMAIN }}/builds/{{ slug }}/?fromdocs={{ slug }}">{{ _('Builds') }}</a> + </dd> + </dl> + </div> +</div> {% endif %} |