docs: Implemented download links in docs theme. (#8887)

Modified the RTD theme to add PDF and EPUB download links in the left pane.
This commit is contained in:
Firehawke 2021-11-27 06:19:14 -07:00 committed by GitHub
parent 9c7494cdf5
commit 17b9b96af3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -18,3 +18,4 @@ prev_next_buttons_location = bottom
style_external_links = False
style_nav_header_background =
vcs_pageview_mode =
mamedevorg = True

View File

@ -32,3 +32,18 @@
</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>
{% endif %}