GDevelop's documentation is based on the framework MkDocs that allows to write a whole documentation using only markdown syntax.
Note:
- MkDocs uses the python markdown syntax that is slightly different from the markdown one. For instance it handles lists differently (see below).
- Displaying images comes with features brought by Material for MkDocs. Check the reference here.
You should use 4 spaces to mark an indent in a list.
For example, to display:
- Getting started
- First step
- Second step
You shall write:
- Getting started
- First step
- Second step
The list won't be formatted if there is no newline before the start of the list.
Bad format example:
List of objects:
- Sprite
- Text
will be rendered as:
List of objects: - Sprite - Text
You can fix it with:
List of objects:
- Sprite
- Text
Ordered lists use numbers followed by periods. For consistency, always use the number 1.
and it will automatically be updated with the correct number.
For example, to display:
- First item
- First nested item
- Second nested item
- Second item
You shall write:
1. First item
1. First nested item
1. Second nested item
1. Second item
By default, the video will take the same width as the article on mobile and, on desktop and tablet, it will be slightly less wide than the article and be centered.
Use this syntax:
<div class="video-container">
<video controls>
<source src="/gdevelop5/objects/ParticleEmitterWishforgeVideo.mp4">
</video>
</div>
Use this syntax:
![type:video](https://www.youtube.com/embed/595-swNh0Mw?list=PL3YlZTdKiS89Kj7IQVPoNElJCWrjZaCC8)
Find the link to use right-clicking a youtube video and clicking "Copy embed code". Then find the link in it.
An image is added with this syntax:
![Image description](/path/to/image.png)
You can set the width of an image (the aspect ratio will be kept) with:
![Image description](/path/to/image.png){ width=300 }
By default, the image will be aligned on the left and there will be no text displayed on the left or on the right of the image.
To center it, do the following:
![Image description](/path/to/image.png)
{ .align-center }
To have it aligned on the right, do the following:
![Image description](/path/to/image.png)
{ .align-right }
This features is available only for images aligned on the left or on the right.
To display text alongside an image, use this syntax:
![Image description](/path/to/image.png){ align=left }