Skip to content

Commit c4d3aa1

Browse files
committed
Standardize RST header syntax
1 parent 56a3dc6 commit c4d3aa1

File tree

101 files changed

+695
-694
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+695
-694
lines changed

Diff for: about/docs_changelog.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ New pages since version 4.3
2727
- :ref:`doc_spring_arm`
2828

2929
Debug
30-
^^^^^
30+
~~~~~
3131

3232
- :ref:`doc_output_panel`
3333

@@ -42,7 +42,7 @@ Performance
4242
- :ref:`doc_pipeline_compilations`
4343

4444
Physics
45-
^^^^^^^
45+
~~~~~~~
4646

4747
- :ref:`doc_physics_interpolation`
4848
- :ref:`doc_physics_interpolation_quick_start_guide`

Diff for: contributing/development/compiling/compiling_for_linuxbsd.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ required:
3939
.. _doc_compiling_for_linuxbsd_oneliners:
4040

4141
Distro-specific one-liners
42-
^^^^^^^^^^^^^^^^^^^^^^^^^^
42+
~~~~~~~~~~~~~~~~~~~~~~~~~~
4343

4444
.. tabs::
4545

Diff for: contributing/development/compiling/compiling_with_dotnet.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ More details about this directory in
8383
:ref:`Data directory<compiling_with_dotnet_data_directory>`.
8484

8585
Build Platform
86-
^^^^^^^^^^^^^^
86+
~~~~~~~~~~~~~~
8787

8888
Provide the ``--godot-platform=<platform>`` argument to control for which
8989
platform specific the libraries are built. Omit this argument to build for the
@@ -93,7 +93,7 @@ This currently only controls the inclusion of the support for Visual Studio as
9393
an external editor, the libraries are otherwise identical.
9494

9595
NuGet packages
96-
^^^^^^^^^^^^^^
96+
~~~~~~~~~~~~~~
9797

9898
The API assemblies, source generators, and custom MSBuild project SDK are
9999
distributed as NuGet packages. This is all transparent to the user, but it can
@@ -130,7 +130,7 @@ cache. It's recommended to always use this option when building the C# solutions
130130
during development to avoid mistakes.
131131

132132
Building without depending on deprecated features (NO_DEPRECATED)
133-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134134

135135
When building Godot without deprecated classes and functions, i.e. the ``deprecated=no``
136136
argument for scons, the managed libraries must also be built without dependencies to deprecated code.
@@ -140,7 +140,7 @@ This is done by passing the ``--no-deprecated`` argument:
140140
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir ./bin --push-nupkgs-local <my_local_source> --no-deprecated
141141

142142
Double Precision Support (REAL_T_IS_DOUBLE)
143-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
144144

145145
When building Godot with double precision support, i.e. the ``precision=double``
146146
argument for scons, the managed libraries must be adjusted to match by passing
@@ -154,7 +154,7 @@ Examples
154154
--------
155155

156156
Example (Windows)
157-
^^^^^^^^^^^^^^^^^
157+
~~~~~~~~~~~~~~~~~
158158

159159
::
160160

@@ -171,7 +171,7 @@ Example (Windows)
171171

172172

173173
Example (Linux, \*BSD)
174-
^^^^^^^^^^^^^^^^^^^^^^
174+
~~~~~~~~~~~~~~~~~~~~~~
175175

176176
::
177177

@@ -196,7 +196,7 @@ enabled. It contains important files for the correct functioning of Godot. It
196196
must be distributed together with the Godot executable.
197197

198198
Editor
199-
^^^^^^
199+
~~~~~~
200200

201201
The name of the data directory for the Godot editor will always be
202202
``GodotSharp``. This directory contains an ``Api`` subdirectory with the Godot
@@ -208,7 +208,7 @@ directory may be placed in the ``<bundle_name>.app/Contents/Resources/``
208208
directory inside the bundle.
209209

210210
Export templates
211-
^^^^^^^^^^^^^^^^
211+
~~~~~~~~~~~~~~~~
212212

213213
The data directory for exported projects is generated by the editor during the
214214
export. It is named ``data_<APPNAME>_<ARCH>``, where ``<APPNAME>`` is the

Diff for: contributing/development/compiling/optimizing_for_size.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Optimizing the distribution of your project
271271
-------------------------------------------
272272

273273
Desktop
274-
^^^^^^^
274+
~~~~~~~
275275

276276
.. note::
277277

@@ -303,7 +303,7 @@ command:
303303
7z a -mx9 my_project.zip folder_containing_executable_and_pck
304304

305305
Web
306-
^^^
306+
~~~
307307

308308
Enabling gzip or Brotli compression for all file types from the web export
309309
(especially the ``.wasm`` and ``.pck``) can reduce the download size

Diff for: contributing/development/core_and_modules/custom_platform_ports.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ knowledge of the platform's SDKs. Depending on what features you need, the
6363
amount of work needed varies:
6464

6565
Required features of a platform port
66-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6767

6868
At the very least, a platform port must have methods from the :ref:`class_OS`
6969
singleton implemented to be buildable and usable for headless operation.
@@ -109,7 +109,7 @@ All methods should be implemented within ``detect.py`` as follows:
109109
options depending on SCons options chosen.
110110

111111
Optional features of a platform port
112-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113113

114114
In practice, headless operation doesn't suffice if you want to see anything on
115115
screen and handle input devices. You may also want audio output for most

Diff for: contributing/development/core_and_modules/internal_rendering_architecture.rst

+21-21
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Rendering methods
3232
-----------------
3333

3434
Forward+
35-
^^^^^^^^
35+
~~~~~~~~
3636

3737
This is a forward renderer that uses a *clustered* approach to lighting.
3838

@@ -45,7 +45,7 @@ This approach can greatly speed up rendering performance on desktop hardware,
4545
but is substantially less efficient on mobile.
4646

4747
Mobile
48-
^^^^^^
48+
~~~~~~
4949

5050
This is a forward renderer that uses a traditional single-pass approach to lighting.
5151
Internally, it is called **Forward Mobile**.
@@ -104,7 +104,7 @@ post-processing effects are also not available.
104104
.. _doc_internal_rendering_architecture_compatibility:
105105

106106
Compatibility
107-
^^^^^^^^^^^^^
107+
~~~~~~~~~~~~~
108108

109109
.. note::
110110

@@ -139,7 +139,7 @@ rendering features (even less so compared to Mobile). Most
139139
post-processing effects are not available.
140140

141141
Why not deferred rendering?
142-
^^^^^^^^^^^^^^^^^^^^^^^^^^^
142+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
143143

144144
Forward rendering generally provides a better tradeoff for performance versus
145145
flexibility, especially when a clustered approach to lighting is used. While
@@ -161,7 +161,7 @@ Rendering drivers
161161
Godot 4 supports the following graphics APIs:
162162

163163
Vulkan
164-
^^^^^^
164+
~~~~~~
165165

166166
This is the main driver in Godot 4, with most of the development focus going
167167
towards this driver.
@@ -185,7 +185,7 @@ Vulkan driver.
185185
- `drivers/d3d12/d3d12_context.cpp <https://github.com/godotengine/godot/blob/master/drivers/d3d12/d3d12_context.cpp>`__
186186

187187
Direct3D 12
188-
^^^^^^^^^^^
188+
~~~~~~~~~~~
189189

190190
Like Vulkan, the Direct3D 12 driver targets modern platforms only. It is
191191
designed to target both Windows and Xbox (whereas Vulkan can't be used directly on Xbox).
@@ -206,7 +206,7 @@ See the `pull request that introduced Direct3D 12 support <https://github.com/go
206206
for more information.
207207

208208
Metal
209-
^^^^^
209+
~~~~~
210210

211211
Godot supports Metal rendering via `MoltenVK <https://github.com/KhronosGroup/MoltenVK>`__,
212212
as macOS and iOS do not support Vulkan natively.
@@ -224,7 +224,7 @@ A native Metal driver is planned in the future for better performance and
224224
compatibility.
225225

226226
OpenGL
227-
^^^^^^
227+
~~~~~~
228228

229229
This driver uses OpenGL ES 3.0 and targets legacy and low-end devices that don't
230230
support Vulkan. OpenGL 3.3 Core Profile is used on desktop platforms to run this
@@ -246,7 +246,7 @@ Many advanced features are not supported with this driver, as it targets low-end
246246
devices first and foremost.
247247

248248
Summary of rendering drivers/methods
249-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
249+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
250250

251251
The following rendering API + rendering method combinations are currently possible:
252252

@@ -447,14 +447,14 @@ used to calculate particle collisions in 2D.
447447
-----------------------
448448

449449
Batching and instancing
450-
^^^^^^^^^^^^^^^^^^^^^^^
450+
~~~~~~~~~~~~~~~~~~~~~~~
451451

452452
In the Forward+ renderer, Vulkan instancing is used to group rendering
453453
of identical objects for performance. This is not as fast as static mesh
454454
merging, but it still allows instances to be culled individually.
455455

456456
Light, decal and reflection probe rendering
457-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
457+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
458458

459459
.. note::
460460

@@ -497,7 +497,7 @@ Clustering is also used for reflection probes and decal rendering in the
497497
Forward+ renderer.
498498

499499
Shadow mapping
500-
^^^^^^^^^^^^^^
500+
~~~~~~~~~~~~~~
501501

502502
Both Forward+ and Mobile methods use
503503
:abbr:`PCF (Percentage Closer Filtering)` to filter shadow maps and create a
@@ -517,7 +517,7 @@ The Compatibility renderer supports shadow mapping for DirectionalLight3D,
517517
OmniLight3D, and SpotLight3D lights.
518518

519519
Temporal antialiasing
520-
^^^^^^^^^^^^^^^^^^^^^
520+
~~~~~~~~~~~~~~~~~~~~~
521521

522522
.. note::
523523

@@ -549,7 +549,7 @@ RenderingDevice abstraction as opposed to using AMD's reference code directly.
549549
- `thirdparty/amd-fsr2/ <https://github.com/godotengine/godot/tree/master/thirdparty/amd-fsr2>`__
550550

551551
Global illumination
552-
^^^^^^^^^^^^^^^^^^^
552+
~~~~~~~~~~~~~~~~~~~
553553

554554
.. note::
555555

@@ -600,7 +600,7 @@ This would allow baking lightmaps while using the Compatibility renderer.
600600
- `modules/lightmapper_rd/lm_blendseams.glsl <https://github.com/godotengine/godot/blob/4.2/modules/lightmapper_rd/lm_blendseams.glsl>`__
601601

602602
Depth of field
603-
^^^^^^^^^^^^^^
603+
~~~~~~~~~~~~~~
604604

605605
.. note::
606606

@@ -629,7 +629,7 @@ when temporal antialiasing is enabled.
629629
- `servers/rendering/renderer_rd/shaders/effects/bokeh_dof_raster.glsl <https://github.com/godotengine/godot/blob/4.2/servers/rendering/renderer_rd/shaders/effects/bokeh_dof_raster.glsl>`__
630630

631631
Screen-space effects (SSAO, SSIL, SSR, SSS)
632-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
632+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
633633

634634
.. note::
635635

@@ -678,7 +678,7 @@ SSR is always performed at half resolution to improve performance.
678678
- `servers/rendering/renderer_rd/shaders/effects/subsurface_scattering.glsl <https://github.com/godotengine/godot/blob/4.2/servers/rendering/renderer_rd/shaders/effects/subsurface_scattering.glsl>`__
679679

680680
Sky rendering
681-
^^^^^^^^^^^^^
681+
~~~~~~~~~~~~~
682682

683683
.. seealso::
684684

@@ -705,7 +705,7 @@ article.
705705
**Sky rendering GLSL shader:**
706706

707707
Volumetric fog
708-
^^^^^^^^^^^^^^
708+
~~~~~~~~~~~~~~
709709

710710
.. note::
711711

@@ -740,7 +740,7 @@ article.
740740
- `servers/rendering/renderer_rd/shaders/environment/volumetric_fog_process.glsl <https://github.com/godotengine/godot/blob/4.2/servers/rendering/renderer_rd/shaders/environment/volumetric_fog_process.glsl>`__
741741

742742
Occlusion culling
743-
^^^^^^^^^^^^^^^^^
743+
~~~~~~~~~~~~~~~~~
744744

745745
While modern GPUs can handle drawing a lot of triangles, the number of draw
746746
calls in complex scenes can still be a bottleneck (even with Vulkan and Direct3D 12).
@@ -782,7 +782,7 @@ RendererSceneOcclusionCull.
782782
- `servers/rendering/renderer_scene_occlusion_cull.cpp <https://github.com/godotengine/godot/blob/4.2/servers/rendering/renderer_scene_occlusion_cull.cpp>`__
783783

784784
Visibility range (LOD)
785-
^^^^^^^^^^^^^^^^^^^^^^^
785+
~~~~~~~~~~~~~~~~~~~~~~
786786

787787
Godot supports manually authored hierarchical level of detail (HLOD), with
788788
distances specified by the user in the inspector.
@@ -796,7 +796,7 @@ same mesh with different LODs (to allow for split screen rendering to look corre
796796
- `servers/rendering/renderer_scene_cull.cpp <https://github.com/godotengine/godot/blob/4.2/servers/rendering/renderer_scene_cull.cpp>`__
797797

798798
Automatic mesh LOD
799-
^^^^^^^^^^^^^^^^^^
799+
~~~~~~~~~~~~~~~~~~
800800

801801
The ImporterMesh class is used for the 3D mesh import workflow in the editor.
802802
Its ``generate_lods()`` function handles generating using the

Diff for: contributing/development/cpp_usage_guidelines.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use of modern C++ features conservative. Their use needs to serve a real
4646
purpose, such as improving code readability or performance.
4747

4848
Standard Template Library
49-
^^^^^^^^^^^^^^^^^^^^^^^^^
49+
~~~~~~~~~~~~~~~~~~~~~~~~~
5050

5151
We don't allow using the `STL <https://en.wikipedia.org/wiki/Standard_Template_Library>`__
5252
as Godot provides its own data types (among other things).
@@ -67,7 +67,7 @@ This means that pull requests should **not** use ``std::string``,
6767
and Array. Therefore, List should be avoided in new code unless necessary.
6868

6969
``auto`` keyword
70-
^^^^^^^^^^^^^^^^
70+
~~~~~~~~~~~~~~~~
7171

7272
Please don't use the ``auto`` keyword for type inference. While it can avoid
7373
repetition, it can also lead to confusing code:
@@ -88,14 +88,14 @@ We chose to forbid ``auto`` instead of allowing it on a case-by-case basis to
8888
avoid having to decide on difficult edge cases. Thank you for your understanding.
8989

9090
Lambdas
91-
^^^^^^^
91+
~~~~~~~
9292

9393
Lambdas should be used conservatively when they make code effectively faster or
9494
simpler, and do not impede readability. Please ask before using lambdas in a
9595
pull request.
9696

9797
``#pragma once`` directive
98-
^^^^^^^^^^^^^^^^^^^^^^^^^^
98+
~~~~~~~~~~~~~~~~~~~~~~~~~~
9999

100100
To follow the existing style, please use standard ``#ifdef``-based include
101101
guards instead of ``#pragma once`` in new files.

Diff for: contributing/development/debugging/using_cpp_profilers.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Profiler-specific instructions
5959
------------------------------
6060

6161
VerySleepy
62-
^^^^^^^^^^
62+
~~~~~~~~~~
6363

6464
- Start the Godot editor or your project first.
6565
If you start the Project Manager, make sure to edit or run a project first.
@@ -81,7 +81,7 @@ VerySleepy
8181
.. image:: img/cpp_profiler_verysleepy_results_filtered.png
8282

8383
HotSpot
84-
^^^^^^^
84+
~~~~~~~
8585

8686
- Open HotSpot. Click **Record Data**:
8787

@@ -128,7 +128,7 @@ HotSpot
128128
This process attachment-based workflow is similar to the one used by VerySleepy.
129129

130130
Xcode Instruments
131-
^^^^^^^^^^^^^^^^^
131+
~~~~~~~~~~~~~~~~~
132132

133133
- Open Xcode. Select **Open Developer Tool** - **Instruments** from the **Xcode** app menu:
134134
- Double-click on **Time Profiler** in the **Instruments** window:

Diff for: contributing/development/debugging/using_sanitizers.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Platform-specific sanitizers
197197
----------------------------
198198

199199
Web
200-
^^^
200+
~~~
201201

202202
When :ref:`compiling for the Web <doc_compiling_for_web>`,
203203
there are 2 additional sanitizer SCons options available:

0 commit comments

Comments
 (0)