Fix Sphinx Weblate widget warning

The `weblate_widget` substitution is now always defined.
This also makes it possible to remove some duplication in `index.rst`.
This commit is contained in:
Hugo Locurcio
2019-07-28 05:22:50 +02:00
parent 4b0bbf18ac
commit 589282d90b
2 changed files with 15 additions and 19 deletions

View File

@@ -51,17 +51,7 @@ in the top left corner.
``#godotengine-doc`` channel on `irc.freenode.net
<http://webchat.freenode.net/?channels=#godotengine-doc>`_!
.. only:: not i18n
.. image:: https://hosted.weblate.org/widgets/godot-engine/-/godot-docs/287x66-white.png
:alt: Translation status
:align: center
:target: https://hosted.weblate.org/engage/godot-engine/?utm_source=widget
.. only:: i18n
.. centered:: |weblate_widget|
.. centered:: |weblate_widget|
The main documentation for the site is organized into the following sections: