From 0a01baec1057bb8f9bd21b2de9d459bc2644f61d Mon Sep 17 00:00:00 2001 From: dylannorthrup Date: Sat, 25 Nov 2023 13:01:44 -0500 Subject: [PATCH] Fix epub-related failures (#8207) * Append closing "/" to meta description tag; do not add new description tag if one already exists * Add closing "/" to all meta tags * Remove URL parameters from css/js paths to fix ThemeError * Updating package versions to reflect the latest versions in the readthedocs github repo * noop change to trigger CI workflow * Add verbose option to "pip3 install" * Update python version to 3.9 * Debug Iteration * Revert CI testing changes * Revert module upgrades and changes it required * Update _extensions/godot_descriptions.py --------- Co-authored-by: Max Hilbrunner --- _extensions/godot_descriptions.py | 5 +++-- _templates/layout.html | 7 +++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_extensions/godot_descriptions.py b/_extensions/godot_descriptions.py index 3f6f8c492..a59cf3321 100644 --- a/_extensions/godot_descriptions.py +++ b/_extensions/godot_descriptions.py @@ -103,10 +103,11 @@ def generate_description(app, pagename, templatename, context, doctree): doctree.walkabout(generator) description = ( - '\n' + '\n' ) - context["metatags"] += description + if not ' - + + {% endblock -%} {% block linktags -%} - + {% if godot_inject_language_links -%} {% for alternate_lang in godot_docs_supported_languages -%} {# Convert to ISO 639-1 format, e.g. zh_CN -> zh-cn -#} @@ -66,7 +66,6 @@ {% endif %} {% block body %}{% endblock %} - {%- if self.comments()|trim %}
{%- block comments %}{% endblock %}