diff --git a/docs/_templates/footer.html b/docs/_templates/footer.html
new file mode 100644
index 000000000..2630fe9c7
--- /dev/null
+++ b/docs/_templates/footer.html
@@ -0,0 +1,35 @@
+{%- extends "!footer.html" %}
+
+{% block extrafooter %}
+
+
+ {% set langs = { "en": "English", "ru": "Русский" } %}
+ {% for code, name in langs.items() %}
+ {% if code == language %}
+
{{ name }}
+ {% else %}
+
{{ name }}
+ {% endif %}
+ {% if not loop.last %} | {% endif %}
+ {% endfor %}
+
+{% endblock %}
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html
new file mode 100644
index 000000000..830642369
--- /dev/null
+++ b/docs/_templates/layout.html
@@ -0,0 +1,7 @@
+{%- extends "!layout.html" %}
+
+{% block metatags %}
+ {{ super() }}
+ {# point every “/foo” URL at the real site root #}
+
+{% endblock %}
diff --git a/docs/conf.py b/docs/conf.py
index 35cdc158b..f8ab96dfc 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -36,7 +36,12 @@
html_static_path = ['_static']
html_sidebars = {
- "**": ["globaltoc.html", "sourcelink.html", "searchbox.html"]
+ "**": [
+ "globaltoc.html",
+ "sourcelink.html",
+ "searchbox.html",
+ "language_switcher.html",
+ ],
}
html_theme_options = {