diff --git a/docs/source/_templates/languages.html b/docs/source/_templates/languages.html deleted file mode 100644 index a3ad2f29..00000000 --- a/docs/source/_templates/languages.html +++ /dev/null @@ -1 +0,0 @@ -

Languages

\ No newline at end of file diff --git a/docs/source/_templates/versions.html b/docs/source/_templates/versions.html new file mode 100644 index 00000000..2b51e0a4 --- /dev/null +++ b/docs/source/_templates/versions.html @@ -0,0 +1,25 @@ +
+ + OnionShare + v: {{ current_version }} + + +
+ {%- if versions %} +
+
{{ _('Versions') }}
+ {%- for name, url in versions %} +
{{ name }}
+ {%- endfor %} +
+ {%- endif %} + {%- if langs %} +
+
{{ _('Languages') }}
+ {%- for name, code in langs %} +
{{ name }}
+ {%- endfor %} +
+ {%- endif %} +
+
\ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 2b067f9a..f8d79a6d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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