Update class reference contribution link.

(cherry picked from commit 527f4e9e68)
This commit is contained in:
Lukas Tenbrink
2025-08-27 13:08:29 +02:00
committed by Thaddeus Crews
parent 58a1a24c3e
commit 43c03b1bd6
6 changed files with 21 additions and 21 deletions

View File

@ -546,7 +546,7 @@
</member> </member>
<member name="interface/editor/editor_language" type="String" setter="" getter=""> <member name="interface/editor/editor_language" type="String" setter="" getter="">
The language to use for the editor interface. 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]
</member> </member>
<member name="interface/editor/editor_screen" type="int" setter="" getter=""> <member name="interface/editor/editor_screen" type="int" setter="" getter="">
The preferred monitor to display the editor. The preferred monitor to display the editor.

View File

@ -5,7 +5,7 @@
</brief_description> </brief_description>
<description> <description>
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. 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.
</description> </description>
<tutorials> <tutorials>
<link title="Exporting for the Web: Calling JavaScript from script">$DOCS_URL/tutorials/export/exporting_for_web.html#calling-javascript-from-script</link> <link title="Exporting for the Web: Calling JavaScript from script">$DOCS_URL/tutorials/export/exporting_for_web.html#calling-javascript-from-script</link>

View File

@ -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]. [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].
</description> </description>
<tutorials> <tutorials>
<link title="Object class introduction">$DOCS_URL/contributing/development/core_and_modules/object_class.html</link> <link title="Object class introduction">$DOCS_URL/engine_details/architecture/object_class.html</link>
<link title="When and how to avoid using nodes for everything">$DOCS_URL/tutorials/best_practices/node_alternatives.html</link> <link title="When and how to avoid using nodes for everything">$DOCS_URL/tutorials/best_practices/node_alternatives.html</link>
<link title="Object notifications">$DOCS_URL/tutorials/best_practices/godot_notifications.html</link> <link title="Object notifications">$DOCS_URL/tutorials/best_practices/godot_notifications.html</link>
</tutorials> </tutorials>

View File

@ -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. Modifications to a container will modify all references to it. A [Mutex] should be created to lock it if multi-threaded access is desired.
</description> </description>
<tutorials> <tutorials>
<link title="Variant class introduction">$DOCS_URL/contributing/development/core_and_modules/variant_class.html</link> <link title="Variant class introduction">$DOCS_URL/engine_details/development/core_and_modules/variant_class.html</link>
</tutorials> </tutorials>
</class> </class>

32
doc/tools/make_rst.py Executable file → Normal file
View File

@ -66,14 +66,14 @@ BASE_STRINGS = [
"This method doesn't need an instance to be called, so it can be called directly using the class name.", "This method doesn't need an instance to be called, so it can be called directly using the class name.",
"This method describes a valid operator to use with this type as left-hand operand.", "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.", "This value is an integer composed as a bitmask of the following flags.",
"There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!", "There is currently no description for this class. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!",
"There is currently no description for this signal. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!", "There is currently no description for this signal. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!",
"There is currently no description for this annotation. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!", "There is currently no description for this annotation. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!",
"There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!", "There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!",
"There is currently no description for this constructor. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!", "There is currently no description for this constructor. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!",
"There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!", "There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!",
"There is currently no description for this operator. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!", "There is currently no description for this operator. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!",
"There is currently no description for this theme property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!", "There is currently no description for this theme property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!",
"There are notable differences when using this API with C#. See :ref:`doc_c_sharp_differences` for more information.", "There are notable differences when using this API with C#. See :ref:`doc_c_sharp_differences` for more information.",
] ]
strings_l10n: Dict[str, str] = {} strings_l10n: Dict[str, str] = {}
@ -889,7 +889,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
f.write(".. container:: contribute\n\n\t") f.write(".. container:: contribute\n\n\t")
f.write( f.write(
translate( translate(
"There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!" "There is currently no description for this class. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!"
) )
+ "\n\n" + "\n\n"
) )
@ -1011,7 +1011,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
f.write(".. container:: contribute\n\n\t") f.write(".. container:: contribute\n\n\t")
f.write( f.write(
translate( translate(
"There is currently no description for this signal. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!" "There is currently no description for this signal. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!"
) )
+ "\n\n" + "\n\n"
) )
@ -1108,7 +1108,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
f.write(".. container:: contribute\n\n\t") f.write(".. container:: contribute\n\n\t")
f.write( f.write(
translate( translate(
"There is currently no description for this annotation. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!" "There is currently no description for this annotation. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!"
) )
+ "\n\n" + "\n\n"
) )
@ -1165,7 +1165,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
f.write(".. container:: contribute\n\n\t") f.write(".. container:: contribute\n\n\t")
f.write( f.write(
translate( translate(
"There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!" "There is currently no description for this property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!"
) )
+ "\n\n" + "\n\n"
) )
@ -1203,7 +1203,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
f.write(".. container:: contribute\n\n\t") f.write(".. container:: contribute\n\n\t")
f.write( f.write(
translate( translate(
"There is currently no description for this constructor. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!" "There is currently no description for this constructor. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!"
) )
+ "\n\n" + "\n\n"
) )
@ -1244,7 +1244,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
f.write(".. container:: contribute\n\n\t") f.write(".. container:: contribute\n\n\t")
f.write( f.write(
translate( translate(
"There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!" "There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!"
) )
+ "\n\n" + "\n\n"
) )
@ -1284,7 +1284,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
f.write(".. container:: contribute\n\n\t") f.write(".. container:: contribute\n\n\t")
f.write( f.write(
translate( translate(
"There is currently no description for this operator. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!" "There is currently no description for this operator. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!"
) )
+ "\n\n" + "\n\n"
) )
@ -1321,7 +1321,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
f.write(".. container:: contribute\n\n\t") f.write(".. container:: contribute\n\n\t")
f.write( f.write(
translate( translate(
"There is currently no description for this theme property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!" "There is currently no description for this theme property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!"
) )
+ "\n\n" + "\n\n"
) )

View File

@ -45,7 +45,7 @@
#include "editor/plugins/script_editor_plugin.h" #include "editor/plugins/script_editor_plugin.h"
#include "scene/gui/line_edit.h" #include "scene/gui/line_edit.h"
#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 #ifdef MODULE_MONO_ENABLED
// Sync with the types mentioned in https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_differences.html // Sync with the types mentioned in https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_differences.html