Skip to content

Commit da17e45

Browse files
authored
Merge pull request #10170 from tetrapod00/contribution-checklist
Add docs contribution checklist page
2 parents eb24e78 + 2017152 commit da17e45

File tree

4 files changed

+104
-0
lines changed

4 files changed

+104
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
.. _docs_contribution_checklist:
2+
3+
Documentation contribution checklist
4+
====================================
5+
6+
This page is a summary of the guidelines to follow when contributing to the
7+
documentation. Before you press that **Create pull request** button on GitHub,
8+
read over this list to double check if you missed anything.
9+
10+
You don't need to read all the guidelines here in order to start contributing.
11+
If you do miss something, it will be pointed out during review. However,
12+
following the guidelines you are aware of as best you can will help speed up the
13+
review process.
14+
15+
Writing style
16+
-------------
17+
18+
:ref:`See here. <doc_docs_writing_guidelines_clear_english_rules>`
19+
20+
- Use the active voice.
21+
- Use precise action verbs.
22+
- Avoid verbs that end in -ing.
23+
- Remove unnecessary adverbs and adjectives.
24+
- Ban these 8 words: obvious, simple, basic, easy, actual, just, clear, and however.
25+
- Use explicit references.
26+
- Use 's to show possession.
27+
- Use the Oxford comma.
28+
29+
Code examples
30+
-------------
31+
32+
- Use dynamic typing. :ref:`See here. <doc_docs_writing_guidelines_dynamic_typing>`
33+
- Use real, practical examples. Avoid ``foo`` / ``bar`` examples. :ref:`See here. <doc_docs_writing_guidelines_real_world_code_example>`
34+
35+
Manual style and formatting
36+
---------------------------
37+
38+
- Use common vocabulary for the editor interface. :ref:`See here. <doc_docs_writing_guidelines_common_vocabulary>`
39+
- Use ``:kbd:`` for keyboard shortcuts. :ref:`See here. <doc_docs_writing_guidelines_keyboard_shortcuts>`
40+
- Literals use ``code style``. :ref:`See here. <doc_docs_writing_guidelines_literals>`
41+
- Classes link to the class reference once, then use ``ClassName`` for the rest
42+
of the page.
43+
Methods and properties link to the class ref once, then use ``PropertyName``
44+
for the rest of the page. :ref:`See here. <doc_docs_writing_guidelines_class_properties_methods>`
45+
- Editor UI, like menus, windows, and editor navigation paths, use
46+
``Bold Style``. :ref:`See here. <doc_docs_writing_guidelines_editor_ui>`
47+
- Link to project settings when referencing them. :ref:`See here. <doc_docs_writing_guidelines_project_settings>`
48+
- Text is manually wrapped to 80-100 characters. :ref:`See here. <doc_docs_writing_guidelines_manually_wrapping_lines>`
49+
- No trailing whitespace at the end of lines.
50+
- Most of the time, avoid mentioning a specific Godot version. :ref:`See here. <doc_docs_writing_guidelines_specific_version>`
51+
52+
Images and videos
53+
-----------------
54+
55+
- New (and updated) images are in WebP format. :ref:`See here. <doc_docs_image_guidelines_format_conversion>`
56+
- Editor screenshots are cropped. :ref:`See here. <doc_docs_image_guidelines_cropping>`
57+
- Images larger than 1080p or 300kb are scaled down. :ref:`See here. <doc_docs_image_guidelines_scaling_down>`
58+
- Outlines in images use ``fffb44`` yellow. :ref:`See here. <doc_docs_image_guidelines_outlines>`
59+
- Videos use the ``:autoplay:``, ``:loop:``, and ``:muted:`` tags. :ref:`See here. <doc_docs_image_guidelines_videos>`
60+
61+
GitHub
62+
------
63+
64+
- The PR title starts with a word like ``Fix``, ``Add``, ``Update``,
65+
``Clarify``, or ``Improve``.
66+
- If the PR closes an issue, link to the issue with one of GitHub's
67+
`keywords <https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests>`__:
68+
``closes``, ``fixes``, or ``resolves``, in the text of the PR.
69+
- Ideally, PR contains a single commit. However, multiple commits can be
70+
:ref:`squashed <doc_pr_workflow_rebase>` later.
71+

contributing/documentation/docs_image_guidelines.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ dramatically increases file size. If you're taking screenshots on a higher
3636
resolution screen the screenshot should be scaled down. There are instructions
3737
on how to do this later on this page.
3838

39+
.. _doc_docs_image_guidelines_format_conversion:
40+
3941
Format conversion
4042
~~~~~~~~~~~~~~~~~
4143

@@ -59,6 +61,8 @@ it may have the ability to open an image then save it as a WebP file.
5961
GIFs should be avoided. Their compression is inefficient and they only support
6062
a 256-color palette with 1-bit transparency.
6163

64+
.. _doc_docs_image_guidelines_cropping:
65+
6266
Cropping
6367
~~~~~~~~
6468

@@ -94,6 +98,8 @@ If you make a mistake and overcrop don't worry, cropping is non-destructive in
9498
Krita and can be adjusted. Click on the image with your cropping tool still selected
9599
and the controls will return.
96100

101+
.. _doc_docs_image_guidelines_scaling_down:
102+
97103
Scaling down an image
98104
~~~~~~~~~~~~~~~~~~~~~
99105

@@ -119,6 +125,8 @@ If it's still over 300KB change to lossy compression and slowly increase the com
119125
300KB. If this results in noticeable compression artifacts using less compression is fine, even if the file
120126
size is bigger.
121127

128+
.. _doc_docs_image_guidelines_outlines:
129+
122130
Outlines, arrows and text
123131
~~~~~~~~~~~~~~~~~~~~~~~~~
124132

@@ -160,6 +168,8 @@ Where ``documentation_image.webp`` would be changed to the name of the image you
160168
created. Name your images in a way that makes their meaning clear, possibly with
161169
a prefix that makes their relationship to a documentation page explicit.
162170

171+
.. _doc_docs_image_guidelines_videos:
172+
163173
Videos
164174
------
165175

contributing/documentation/docs_writing_guidelines.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
4042
7 rules for clear English
4143
-------------------------
4244

@@ -283,6 +285,8 @@ element of a list with more than two elements.
283285
How to write methods and classes
284286
--------------------------------
285287

288+
.. _doc_docs_writing_guidelines_dynamic_typing:
289+
286290
Dynamic 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+
338344
Use 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
452458
files 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

456463
Common 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+
490499
Keyboard 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

511521
Manual 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+
570582
Literals
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+
579593
Classes, properties, and methods
580594
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
581595

@@ -591,6 +605,8 @@ link.
591605
When discussing properties in the context of the inspector, use **bold style**
592606
instead.
593607

608+
.. _doc_docs_writing_guidelines_editor_ui:
609+
594610
Editor 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+
616634
Project 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+
628648
Manually wrapping lines
629649
~~~~~~~~~~~~~~~~~~~~~~~
630650

@@ -710,6 +730,8 @@ See the `Sphinx documentation <https://www.sphinx-doc.org/en/master/usage/restru
710730
and the `reStructuredText documentation <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#sections>`__
711731
for more information.
712732

733+
.. _doc_docs_writing_guidelines_specific_version:
734+
713735
When to refer to a specific Godot version
714736
-----------------------------------------
715737

contributing/documentation/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ documentation.
2525
content_guidelines
2626
docs_writing_guidelines
2727
docs_image_guidelines
28+
docs_contribution_checklist
2829

2930
Writing the manual
3031
------------------

0 commit comments

Comments
 (0)