@@ -37,6 +37,8 @@ There are 3 rules to describe classes:
37
37
See the :ref: `content guidelines <doc_content_guidelines >` for information
38
38
on the types of documentation you can write in the official documentation.
39
39
40
+ .. _doc_docs_writing_guidelines_clear_english_rules :
41
+
40
42
7 rules for clear English
41
43
-------------------------
42
44
@@ -283,6 +285,8 @@ element of a list with more than two elements.
283
285
How to write methods and classes
284
286
--------------------------------
285
287
288
+ .. _doc_docs_writing_guidelines_dynamic_typing :
289
+
286
290
Dynamic vs static typing
287
291
~~~~~~~~~~~~~~~~~~~~~~~~
288
292
@@ -335,6 +339,8 @@ The exception is topics that explain static typing concepts to users.
335
339
var choice = randi() % size
336
340
return arguments[choice]
337
341
342
+ .. _doc_docs_writing_guidelines_real_world_code_example :
343
+
338
344
Use real-world code examples where appropriate
339
345
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
340
346
@@ -452,6 +458,7 @@ documentation and in Godot, it will display like ``this``. When you edit XML
452
458
files in the Godot repository, replace existing arguments written like 'this' or
453
459
\` this\` with ``[code]this[/code] ``.
454
460
461
+ .. _doc_docs_writing_guidelines_common_vocabulary :
455
462
456
463
Common vocabulary to use in Godot's documentation
457
464
-------------------------------------------------
@@ -487,6 +494,8 @@ class names, which you can't fold, are ``Classes`` e.g. the
487
494
``properties ``. E.g. ``position `` or ``modulate color `` are both
488
495
``properties ``.
489
496
497
+ .. _doc_docs_writing_guidelines_keyboard_shortcuts :
498
+
490
499
Keyboard shortcut guidelines
491
500
----------------------------
492
501
@@ -507,6 +516,7 @@ examples with the ``:kbd:`` tag left as-is for better visibility:
507
516
- Press ``:kbd:`Space` `` and hold the left mouse button to pan in the 2D editor.
508
517
- Press ``:kbd:`Shift + Up Arrow` `` to move the node upwards by 8 pixels.
509
518
519
+ .. _doc_docs_writing_guidelines_manual_style :
510
520
511
521
Manual style guidelines
512
522
-----------------------
@@ -567,6 +577,8 @@ is fine too.
567
577
- Godot uses *nodes * with *scripts * in a *scene tree *.
568
578
- Godot uses **nodes ** with **scripts ** in a **scene tree **.
569
579
580
+ .. _doc_docs_writing_guidelines_literals :
581
+
570
582
Literals
571
583
~~~~~~~~
572
584
@@ -576,6 +588,8 @@ Use ``code style`` for literal values. Literals include:
576
588
- Float literals like ``0.0 ``, ``0.5 ``, ``-2.0 ``, or ``100.0 ``
577
589
- Vector literals like ``(0.0, 0.0) ``, ``(0.5, -0.5, 0.5) ``, or ``(1.0, 2.0, 3.0, 4.0) ``.
578
590
591
+ .. _doc_docs_writing_guidelines_class_properties_methods :
592
+
579
593
Classes, properties, and methods
580
594
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
581
595
@@ -591,6 +605,8 @@ link.
591
605
When discussing properties in the context of the inspector, use **bold style **
592
606
instead.
593
607
608
+ .. _doc_docs_writing_guidelines_editor_ui :
609
+
594
610
Editor UI
595
611
~~~~~~~~~
596
612
@@ -613,6 +629,8 @@ reader must navigate. Use ``>`` as a separator. You can omit ellipses in menu na
613
629
.. note :: Sometimes, ``->`` or ``→`` is used as a separator. This is nonstandard.
614
630
Replace it with ``> `` if you are already making changes to a section.
615
631
632
+ .. _doc_docs_writing_guidelines_project_settings :
633
+
616
634
Project settings
617
635
~~~~~~~~~~~~~~~~
618
636
@@ -625,6 +643,8 @@ rendered, prefer splitting the setting name and the section when the link is lon
625
643
- In the project settings under **Application > Run **, set :ref: `Max FPS<class_ProjectSettings_property_application/run/max_fps> ` to ``60 ``.
626
644
- In **Project Settings > Application > Run **, set :ref: `Max FPS<class_ProjectSettings_property_application/run/max_fps> ` to ``60 ``.
627
645
646
+ .. _doc_docs_writing_guidelines_manually_wrapping_lines :
647
+
628
648
Manually wrapping lines
629
649
~~~~~~~~~~~~~~~~~~~~~~~
630
650
@@ -710,6 +730,8 @@ See the `Sphinx documentation <https://www.sphinx-doc.org/en/master/usage/restru
710
730
and the `reStructuredText documentation <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#sections >`__
711
731
for more information.
712
732
733
+ .. _doc_docs_writing_guidelines_specific_version :
734
+
713
735
When to refer to a specific Godot version
714
736
-----------------------------------------
715
737
0 commit comments