Skip to content

Commit 048bb27

Browse files
committed
Update links to C# and GDScript sections
- Change all links to '_doc' anchors instead of 'toc's. - Move 'doc_c_sharp' and 'doc_gdscript' to the index pages. - Add 'doc_gdscript_reference' anchor. - Update all existing links to point to the right place, updating grammar if needed.
1 parent 0314e67 commit 048bb27

File tree

11 files changed

+20
-17
lines changed

11 files changed

+20
-17
lines changed

about/list_of_features.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,16 +451,16 @@ Scripting
451451
- Support for :ref:`cross-language scripting <doc_cross_language_scripting>`.
452452
- Many 2D, 3D and 4D linear algebra data types such as vectors and transforms.
453453

454-
:ref:`GDScript: <toc-learn-scripting-gdscript>`
454+
:ref:`GDScript: <doc_gdscript>`
455455

456-
- :ref:`High-level interpreted language <doc_gdscript>` with
456+
- :ref:`High-level interpreted language <doc_gdscript_reference>` with
457457
:ref:`optional static typing <doc_gdscript_static_typing>`.
458458
- Syntax inspired by Python. However, GDScript is **not** based on Python.
459459
- Syntax highlighting is provided on GitHub.
460460
- :ref:`Use threads <doc_using_multiple_threads>` to perform asynchronous actions
461461
or make use of multiple processor cores.
462462

463-
:ref:`C#: <toc-learn-scripting-C#>`
463+
:ref:`C#: <doc_c_sharp>`
464464

465465
- Packaged in a separate binary to keep file sizes and dependencies down.
466466
- Supports .NET 8 and higher.

getting_started/introduction/introduction_to_godot.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ Programming languages
7171

7272
Let's talk about the available programming languages.
7373

74-
You can code your games using :ref:`GDScript <toc-learn-scripting-gdscript>`, a
74+
You can code your games using :ref:`GDScript <doc_gdscript>`, a
7575
Godot-specific and tightly integrated language with a lightweight syntax, or
76-
:ref:`C# <toc-learn-scripting-C#>`, which is popular in the games industry.
76+
:ref:`C# <doc_c_sharp>`, which is popular in the games industry.
7777
These are the two main scripting languages we support.
7878

7979
With the GDExtension technology, you can also write

getting_started/step_by_step/scripting_first_script.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ The equivalent C# code has been included in another tab for convenience.
2626
.. image:: img/scripting_first_script_rotating_godot.gif
2727

2828
.. seealso:: To learn more about GDScript, its keywords, and its syntax, head to
29-
the :ref:`GDScript reference<doc_gdscript>`.
30-
31-
.. seealso:: To learn more about C#, head to the :ref:`C# basics <doc_c_sharp>` page.
29+
the :ref:`doc_gdscript` section. To learn more about C#,
30+
head to the :ref:`doc_c_sharp` section.
3231

3332
Project setup
3433
-------------

getting_started/step_by_step/scripting_languages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ officially supported .NET option.
133133
Android and iOS platform support is available as of Godot 4.2, but is
134134
experimental and :ref:`some limitations apply <doc_c_sharp_platforms>`.
135135

136-
.. seealso:: To learn more about C#, head to the :ref:`C# basics <doc_c_sharp>` page.
136+
.. seealso:: To learn more about C#, head to the :ref:`doc_c_sharp` section.
137137

138138
C++ via GDExtension
139139
~~~~~~~~~~~~~~~~~~~

tutorials/performance/cpu_optimization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ code, consider moving those calculations to a faster language.
170170
GDScript
171171
~~~~~~~~
172172

173-
:ref:`GDScript <toc-learn-scripting-gdscript>` is designed to be easy to use and iterate,
173+
:ref:`GDScript <doc_gdscript>` is designed to be easy to use and iterate,
174174
and is ideal for making many types of games. However, in this language, ease of
175175
use is considered more important than performance. If you need to make heavy
176176
calculations, consider moving some of your project to one of the other
@@ -179,7 +179,7 @@ languages.
179179
C#
180180
~~
181181

182-
:ref:`C# <toc-learn-scripting-C#>` is popular and has first-class support in Godot. It
182+
:ref:`C# <doc_c_sharp>` is popular and has first-class support in Godot. It
183183
offers a good compromise between speed and ease of use. Beware of possible
184184
garbage collection pauses and leaks that can occur during gameplay, though. A
185185
common approach to workaround issues with garbage collection is to use *object

tutorials/scripting/c_sharp/c_sharp_basics.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _doc_c_sharp:
2-
31
C# basics
42
=========
53

tutorials/scripting/c_sharp/index.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
:allow_comments: False
22

3+
.. _doc_c_sharp:
4+
35
C#/.NET
46
=======
57

68
C# is a high-level programming language developed by Microsoft. Godot supports
7-
C# as an option for a scripting language, alongside Godot's own :ref:`GDScript<toc-learn-scripting-gdscript>`.
9+
C# as an option for a scripting language, alongside Godot's own
10+
:ref:`GDScript <doc_gdscript>`.
811

912
The standard Godot executable does not contain C# support out of the box. Instead,
1013
to enable C# support for your project you need to `download a .NET version <https://godotengine.org/download/>`_

tutorials/scripting/cross_language_scripting.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ and :ref:`GodotObject.Set() <class_Object_method_set>`. The first argument is th
166166
167167
Keep in mind that when setting a field value you should only use types the
168168
GDScript side knows about.
169-
Essentially, you want to work with built-in types as described in :ref:`doc_gdscript` or classes extending :ref:`class_Object`.
169+
Essentially, you want to work with built-in types as described in
170+
:ref:`doc_gdscript_builtin_types` or classes extending :ref:`class_Object`.
170171

171172
Calling methods
172173
---------------

tutorials/scripting/gdscript/gdscript_basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _doc_gdscript:
1+
.. _doc_gdscript_reference:
22

33
GDScript reference
44
==================

tutorials/scripting/gdscript/gdscript_styleguide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ first line of the script.
817817

818818
Follow with the optional ``@icon`` then the ``class_name`` if necessary. You can turn a
819819
GDScript file into a global type in your project using ``class_name``. For more
820-
information, see :ref:`doc_gdscript`.
820+
information, see :ref:`doc_gdscript_basics_class_name`.
821821

822822
Then, add the ``extends`` keyword if the class extends a built-in type.
823823

0 commit comments

Comments
 (0)