@@ -37,6 +37,8 @@ There are 3 rules to describe classes:
3737 See the :ref: `content guidelines <doc_content_guidelines >` for information
3838 on the types of documentation you can write in the official documentation.
3939
40+ .. _doc_docs_writing_guidelines_clear_english_rules :
41+
40427 rules for clear English
4143-------------------------
4244
@@ -283,6 +285,8 @@ element of a list with more than two elements.
283285How to write methods and classes
284286--------------------------------
285287
288+ .. _doc_docs_writing_guidelines_dynamic_typing :
289+
286290Dynamic vs static typing
287291~~~~~~~~~~~~~~~~~~~~~~~~
288292
@@ -335,6 +339,8 @@ The exception is topics that explain static typing concepts to users.
335339 var choice = randi() % size
336340 return arguments[choice]
337341
342+ .. _doc_docs_writing_guidelines_real_world_code_example :
343+
338344Use real-world code examples where appropriate
339345~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
340346
@@ -452,6 +458,7 @@ documentation and in Godot, it will display like ``this``. When you edit XML
452458files in the Godot repository, replace existing arguments written like 'this' or
453459\` this\` with ``[code]this[/code] ``.
454460
461+ .. _doc_docs_writing_guidelines_common_vocabulary :
455462
456463Common vocabulary to use in Godot's documentation
457464-------------------------------------------------
@@ -487,6 +494,8 @@ class names, which you can't fold, are ``Classes`` e.g. the
487494``properties ``. E.g. ``position `` or ``modulate color `` are both
488495``properties ``.
489496
497+ .. _doc_docs_writing_guidelines_keyboard_shortcuts :
498+
490499Keyboard shortcut guidelines
491500----------------------------
492501
@@ -507,6 +516,7 @@ examples with the ``:kbd:`` tag left as-is for better visibility:
507516- Press ``:kbd:`Space` `` and hold the left mouse button to pan in the 2D editor.
508517- Press ``:kbd:`Shift + Up Arrow` `` to move the node upwards by 8 pixels.
509518
519+ .. _doc_docs_writing_guidelines_manual_style :
510520
511521Manual style guidelines
512522-----------------------
@@ -567,6 +577,8 @@ is fine too.
567577 - Godot uses *nodes * with *scripts * in a *scene tree *.
568578 - Godot uses **nodes ** with **scripts ** in a **scene tree **.
569579
580+ .. _doc_docs_writing_guidelines_literals :
581+
570582Literals
571583~~~~~~~~
572584
@@ -576,6 +588,8 @@ Use ``code style`` for literal values. Literals include:
576588 - Float literals like ``0.0 ``, ``0.5 ``, ``-2.0 ``, or ``100.0 ``
577589 - Vector literals like ``(0.0, 0.0) ``, ``(0.5, -0.5, 0.5) ``, or ``(1.0, 2.0, 3.0, 4.0) ``.
578590
591+ .. _doc_docs_writing_guidelines_class_properties_methods :
592+
579593Classes, properties, and methods
580594~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
581595
@@ -591,6 +605,8 @@ link.
591605When discussing properties in the context of the inspector, use **bold style **
592606instead.
593607
608+ .. _doc_docs_writing_guidelines_editor_ui :
609+
594610Editor UI
595611~~~~~~~~~
596612
@@ -613,6 +629,8 @@ reader must navigate. Use ``>`` as a separator. You can omit ellipses in menu na
613629.. note :: Sometimes, ``->`` or ``→`` is used as a separator. This is nonstandard.
614630 Replace it with ``> `` if you are already making changes to a section.
615631
632+ .. _doc_docs_writing_guidelines_project_settings :
633+
616634Project settings
617635~~~~~~~~~~~~~~~~
618636
@@ -625,6 +643,8 @@ rendered, prefer splitting the setting name and the section when the link is lon
625643 - In the project settings under **Application > Run **, set :ref: `Max FPS<class_ProjectSettings_property_application/run/max_fps> ` to ``60 ``.
626644 - In **Project Settings > Application > Run **, set :ref: `Max FPS<class_ProjectSettings_property_application/run/max_fps> ` to ``60 ``.
627645
646+ .. _doc_docs_writing_guidelines_manually_wrapping_lines :
647+
628648Manually wrapping lines
629649~~~~~~~~~~~~~~~~~~~~~~~
630650
@@ -710,6 +730,8 @@ See the `Sphinx documentation <https://www.sphinx-doc.org/en/master/usage/restru
710730and the `reStructuredText documentation <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#sections >`__
711731for more information.
712732
733+ .. _doc_docs_writing_guidelines_specific_version :
734+
713735When to refer to a specific Godot version
714736-----------------------------------------
715737
0 commit comments