From 20ca0dce727fd980fa5f9ae89ebfff12f79ff548 Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Wed, 27 Aug 2025 13:08:29 +0200 Subject: [PATCH] Update class reference contribution link. (cherry picked from commit 527f4e9e68830b0a8fd22172a184e9a408123d6a) --- doc/classes/EditorSettings.xml | 2 +- doc/classes/JavaScriptBridge.xml | 2 +- doc/classes/Object.xml | 2 +- doc/classes/Variant.xml | 2 +- doc/tools/make_rst.py | 40 ++++++++++++++++---------------- editor/editor_help.cpp | 2 +- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml index 4d82a32dae6..4aabda5c5e4 100644 --- a/doc/classes/EditorSettings.xml +++ b/doc/classes/EditorSettings.xml @@ -647,7 +647,7 @@ The language to use for the editor interface. - Translations are provided by the community. If you spot a mistake, [url=$DOCS_URL/contributing/documentation/editor_and_docs_localization.html]contribute to editor translations on Weblate![/url] + Translations are provided by the community. If you spot a mistake, [url=https://contributing.godotengine.org/en/latest/documentation/translation/index.html]contribute to editor translations on Weblate![/url] The preferred monitor to display the editor. diff --git a/doc/classes/JavaScriptBridge.xml b/doc/classes/JavaScriptBridge.xml index faf5424c470..26ffbbbbdb0 100644 --- a/doc/classes/JavaScriptBridge.xml +++ b/doc/classes/JavaScriptBridge.xml @@ -5,7 +5,7 @@ The JavaScriptBridge singleton is implemented only in the Web export. It's used to access the browser's JavaScript context. This allows interaction with embedding pages or calling third-party JavaScript APIs. - [b]Note:[/b] This singleton can be disabled at build-time to improve security. By default, the JavaScriptBridge singleton is enabled. Official export templates also have the JavaScriptBridge singleton enabled. See [url=$DOCS_URL/contributing/development/compiling/compiling_for_web.html]Compiling for the Web[/url] in the documentation for more information. + [b]Note:[/b] This singleton can be disabled at build-time to improve security. By default, the JavaScriptBridge singleton is enabled. Official export templates also have the JavaScriptBridge singleton enabled. See [url=$DOCS_URL/engine_details/development/compiling/compiling_for_web.html]Compiling for the Web[/url] in the documentation for more information. $DOCS_URL/tutorials/export/exporting_for_web.html#calling-javascript-from-script diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index ed30dc442a9..e19d7a0a834 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -25,7 +25,7 @@ [b]Note:[/b] In a boolean context, an [Object] will evaluate to [code]false[/code] if it is equal to [code]null[/code]. Otherwise, an [Object] will always evaluate to [code]true[/code], even if it has been freed. This behavior may change in future releases. See also [method @GlobalScope.is_instance_valid]. - $DOCS_URL/contributing/development/core_and_modules/object_class.html + $DOCS_URL/engine_details/architecture/object_class.html $DOCS_URL/tutorials/best_practices/node_alternatives.html $DOCS_URL/tutorials/best_practices/godot_notifications.html diff --git a/doc/classes/Variant.xml b/doc/classes/Variant.xml index b4209332855..5b1f1366dde 100644 --- a/doc/classes/Variant.xml +++ b/doc/classes/Variant.xml @@ -80,6 +80,6 @@ Modifications to a container will modify all references to it. A [Mutex] should be created to lock it if multi-threaded access is desired. - $DOCS_URL/contributing/development/core_and_modules/variant_class.html + $DOCS_URL/engine_details/development/core_and_modules/variant_class.html diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index 761a7f8f4a1..13d5fcd95fb 100755 --- a/doc/tools/make_rst.py +++ b/doc/tools/make_rst.py @@ -66,16 +66,16 @@ BASE_STRINGS = [ "This method describes a valid operator to use with this type as left-hand operand.", "This value is an integer composed as a bitmask of the following flags.", "No return value.", - "There is currently no description for this class. Please help us by :ref:`contributing one `!", - "There is currently no description for this signal. Please help us by :ref:`contributing one `!", - "There is currently no description for this enum. Please help us by :ref:`contributing one `!", - "There is currently no description for this constant. Please help us by :ref:`contributing one `!", - "There is currently no description for this annotation. Please help us by :ref:`contributing one `!", - "There is currently no description for this property. Please help us by :ref:`contributing one `!", - "There is currently no description for this constructor. Please help us by :ref:`contributing one `!", - "There is currently no description for this method. Please help us by :ref:`contributing one `!", - "There is currently no description for this operator. Please help us by :ref:`contributing one `!", - "There is currently no description for this theme property. Please help us by :ref:`contributing one `!", + "There is currently no description for this class. Please help us by `contributing one `__!", + "There is currently no description for this signal. Please help us by `contributing one `__!", + "There is currently no description for this enum. Please help us by `contributing one `__!", + "There is currently no description for this constant. Please help us by `contributing one `__!", + "There is currently no description for this annotation. Please help us by `contributing one `__!", + "There is currently no description for this property. Please help us by `contributing one `__!", + "There is currently no description for this constructor. Please help us by `contributing one `__!", + "There is currently no description for this method. Please help us by `contributing one `__!", + "There is currently no description for this operator. Please help us by `contributing one `__!", + "There is currently no description for this theme property. Please help us by `contributing one `__!", "There are notable differences when using this API with C#. See :ref:`doc_c_sharp_differences` for more information.", "Deprecated:", "Experimental:", @@ -1000,7 +1000,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this class. Please help us by :ref:`contributing one `!" + "There is currently no description for this class. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1128,7 +1128,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this signal. Please help us by :ref:`contributing one `!" + "There is currently no description for this signal. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1177,7 +1177,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this enum. Please help us by :ref:`contributing one `!" + "There is currently no description for this enum. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1212,7 +1212,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this constant. Please help us by :ref:`contributing one `!" + "There is currently no description for this constant. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1252,7 +1252,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this annotation. Please help us by :ref:`contributing one `!" + "There is currently no description for this annotation. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1318,7 +1318,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this property. Please help us by :ref:`contributing one `!" + "There is currently no description for this property. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1361,7 +1361,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this constructor. Please help us by :ref:`contributing one `!" + "There is currently no description for this constructor. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1408,7 +1408,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this method. Please help us by :ref:`contributing one `!" + "There is currently no description for this method. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1450,7 +1450,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this operator. Please help us by :ref:`contributing one `!" + "There is currently no description for this operator. Please help us by `contributing one `__!" ) + "\n\n" ) @@ -1493,7 +1493,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write(".. container:: contribute\n\n\t") f.write( translate( - "There is currently no description for this theme property. Please help us by :ref:`contributing one `!" + "There is currently no description for this theme property. Please help us by `contributing one `__!" ) + "\n\n" ) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 683e4e5cdaa..d54a86eb890 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -62,7 +62,7 @@ #include "modules/mono/csharp_script.h" #endif -#define CONTRIBUTE_URL vformat("%s/contributing/documentation/updating_the_class_reference.html", VERSION_DOCS_URL) +#define CONTRIBUTE_URL "https://contributing.godotengine.org/en/latest/documentation/class_reference.html" #ifdef MODULE_MONO_ENABLED // Sync with the types mentioned in https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_differences.html