Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _templates/versions.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{# Add rst-badge after rst-versions for small badge style. #}
{% set display_version = version -%}
{% set listed_languages = ({"en":"#", "de":"#", "es":"#", "fr":"#"}).items() -%}
{% set listed_versions = ({"stable":"#", "latest":"#"}).items() -%}
{% set listed_versions = ({"26.1":"/"}).items() -%}

{% if READTHEDOCS and current_version %}
{% set display_version = current_version -%}
Expand Down
17 changes: 7 additions & 10 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@
# This makes it easier to test the custom 404 page by loading `/404.html`
# on a local web server.
if not on_rtd:
notfound_urls_prefix = ''
notfound_urls_prefix = ""

# Specify the site name for the Open Graph extension.
ogp_site_name = "Godot Engine documentation"
ogp_social_cards = {
"enable": False
}
ogp_social_cards = {"enable": False}

if not os.getenv("SPHINX_NO_GDSCRIPT"):
extensions.append("gdscript")
Expand All @@ -84,9 +82,7 @@

# General information about the project
project = "Godot Engine"
copyright = (
"2024-present by the Redot community, modified from an original work by Juan Linietsky, Ariel Manzur and the G-dot community (CC BY 3.0)"
)
copyright = "2024-present by the Redot community, modified from an original work by Juan Linietsky, Ariel Manzur and the G-dot community (CC BY 3.0)"
author = "the Redot community, modified from an original work by Juan Linietsky, Ariel Manzur and the G-dot community"

# Version info for the project, acts as replacement for |version| and |release|
Expand Down Expand Up @@ -177,7 +173,7 @@
"flyout_display": "attached",
}

html_title = supported_languages[language] % ( "(" + version + ")" )
html_title = supported_languages[language] % ("(" + version + ")")

# Edit on GitHub options: https://docs.readthedocs.io/en/latest/guides/edit-source-links-sphinx.html
html_context = {
Expand All @@ -195,7 +191,7 @@
# Set this to `True` when in the `latest` branch to clearly indicate to the reader
# that they are not reading the `stable` documentation.
"godot_is_latest": True,
"godot_version": "4.4",
"godot_version": "26.1",
# Enables a banner that displays the up-to-date status of each article.
"godot_show_article_status": True,
# Display user-contributed notes at the bottom of pages that don't have `:allow_comments: False` at the top.
Expand Down Expand Up @@ -289,6 +285,7 @@ def godot_get_image_filename_for_language(filename, env):
path = os.path.abspath(os.path.join("../images/", os.path.relpath(path, cwd)))
return path


sphinx.util.i18n.get_image_filename_for_language = godot_get_image_filename_for_language

# Similar story for the localized class reference, it's out of tree and there doesn't
Expand All @@ -305,4 +302,4 @@ def godot_get_image_filename_for_language(filename, env):
os.symlink("../classes/" + language, "classes")

# Needed so the table of contents is created for EPUB
epub_tocscope = 'includehidden'
epub_tocscope = "includehidden"