mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-24 14:59:42 -05:00
Adds versioning HTML to the docs
This commit is contained in:
parent
beb4964b4a
commit
e05415b4c0
@ -1 +0,0 @@
|
||||
<h1>Languages</h1>
|
25
docs/source/_templates/versions.html
Normal file
25
docs/source/_templates/versions.html
Normal file
@ -0,0 +1,25 @@
|
||||
<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">OnionShare</span>
|
||||
v: {{ current_version }}
|
||||
<span class="fa fa-caret-down"></span>
|
||||
</span>
|
||||
<div class="rst-other-versions">
|
||||
{%- if versions %}
|
||||
<dl>
|
||||
<dt>{{ _('Versions') }}</dt>
|
||||
{%- for name, url in versions %}
|
||||
<dd><a href="{{ url }}">{{ name }}</a></dd>
|
||||
{%- endfor %}
|
||||
</dl>
|
||||
{%- endif %}
|
||||
{%- if langs %}
|
||||
<dl>
|
||||
<dt>{{ _('Languages') }}</dt>
|
||||
{%- for name, code in langs %}
|
||||
<dd><a href="../{{ code }}/">{{ name }}</a></dd>
|
||||
{%- endfor %}
|
||||
</dl>
|
||||
{%- endif %}
|
||||
</div>
|
||||
</div>
|
@ -10,10 +10,27 @@ extensions = ["sphinx_rtd_theme"]
|
||||
templates_path = ["_templates"]
|
||||
exclude_patterns = []
|
||||
|
||||
languages = [
|
||||
("العربية", "ar"),
|
||||
("Català", "ca"),
|
||||
("Dansk", "da"),
|
||||
("Nederlands", "nl"),
|
||||
("English", "en"),
|
||||
]
|
||||
|
||||
versions = [
|
||||
("2.3", "/")
|
||||
]
|
||||
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
html_logo = "_static/logo.png"
|
||||
html_favicon = "_static/favicon.ico"
|
||||
html_theme_options = {}
|
||||
html_context = {
|
||||
"langs": languages,
|
||||
"versions": versions,
|
||||
"current_version": release
|
||||
}
|
||||
html_static_path = ["_static"]
|
||||
html_css_files = ["custom.css"]
|
||||
html_show_sourcelink = False
|
||||
|
Loading…
Reference in New Issue
Block a user