mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Prepend "(DEV)" to HTML titles if build locally/not on RTD
(cherry picked from commit 0b6d26e33d)
This commit is contained in:
committed by
Rémi Verschelde
parent
85fe19df42
commit
2c286519b3
@@ -12,3 +12,7 @@
|
|||||||
{% endif -%}
|
{% endif -%}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
|
|
||||||
|
{% block htmltitle -%}
|
||||||
|
<title>{{ godot_title_prefix }}{{ title|striptags|e }}{{ titlesuffix }}</title>
|
||||||
|
{% endblock -%}
|
||||||
|
|||||||
3
conf.py
3
conf.py
@@ -116,6 +116,9 @@ html_context = {
|
|||||||
"godot_docs_suffix": ".html",
|
"godot_docs_suffix": ".html",
|
||||||
"godot_default_lang": "en",
|
"godot_default_lang": "en",
|
||||||
"godot_canonical_version": "stable",
|
"godot_canonical_version": "stable",
|
||||||
|
# Distinguish local development website from production website.
|
||||||
|
# This prevents people from looking for changes on the production website after making local changes :)
|
||||||
|
"godot_title_prefix": "" if on_rtd else "(DEV) ",
|
||||||
}
|
}
|
||||||
|
|
||||||
html_logo = "img/docs_logo.png"
|
html_logo = "img/docs_logo.png"
|
||||||
|
|||||||
Reference in New Issue
Block a user