mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
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:
parent
9c7494cdf5
commit
17b9b96af3
1
docs/themes/sphinx_rtd_theme/theme.conf
vendored
1
docs/themes/sphinx_rtd_theme/theme.conf
vendored
@ -18,3 +18,4 @@ prev_next_buttons_location = bottom
|
||||
style_external_links = False
|
||||
style_nav_header_background =
|
||||
vcs_pageview_mode =
|
||||
mamedevorg = True
|
||||
|
15
docs/themes/sphinx_rtd_theme/versions.html
vendored
15
docs/themes/sphinx_rtd_theme/versions.html
vendored
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user