🤝 Contribuer à la documentation
Bonjour Dyno! Bonjour Markdown!
This docs is made on Docusaurus platform and written in Markdown! N'hésitez pas à suggérer des modifications et à modifier les pages sur GitHub, cette aide est vraiment important pour nous et nous apprécions réellement ceux qui aident à l'écrire !
Suggérer des Modifications
You can suggest changes directly on GitHub by pressing Edit this Page button at the bottom left of each Page, just make a suggestion and open a Pull Request with it! Une fois acceptée, votre suggestion est immédiatement appliquée à la version bleeding-edge des docs !
Running the Docs Locally
To preview your changes before opening a Pull Request, clone the docs repository with its submodules (the API is a submodule) and run it with Node.js and Yarn:
git clone --recurse-submodules https://github.com/nanos-world/docs.git
cd docs
yarn install
yarn start
The docs will open at http://localhost:3000 and reload as you edit the files.
Where to Edit
docs/is the bleeding-edge version of the docs, which matches the latest game updates. Most changes should be made here.versioned_docs/version-latest/is the stable version. Only edit it to fix something that is also wrong in the current stable game version.blog/contains the news posts.src/api/is a submodule with the API JSON files (see below).
Writing Tips
- Every heading ends with an explicit anchor, like
## My Heading {/* #my-heading */}, so links keep working in translated pages. Runyarn write-heading-idsto generate them. - Link to other pages using their file path, e.g.
[Packages Guide](/core-concepts/packages/packages-guide.mdx). - Use the built-in components to reference the API, such as
<Classes.Character />,<StaticClasses.Server />,<MethodReference type="Class" class_name="Actor" method_name="SetLocation" />and<EventReference type="Class" class_name="Character" event="Death" />. - Add the side in the title of Lua code blocks (e.g.
```lua title="Server/Index.lua"), it helps readers to know where the code runs.
Référence de l'API
Nos Docs sont intelligents ! The Scripting Reference section is auto generated based in our JSON API Repository on GitHub. Nous avons défini toutes les classes, méthodes et événements en JSON qui peuvent être analysés dans n'importe quel format !
So if you want to suggest a change to any description or typo you found there, refer to our API Repository folders: Classes, StaticClasses, Structs, UtilityClasses, StandardLibraries or Enums!
Traduction des pages
Par défaut, toutes les pages sur GitHub sont en anglais et toutes les traductions proviennent de Crowdin. You can access the nanos world official docs Crowdin page and help us fulfilling the translation for all available languages! Vous pouvez demander d'autres langues ! Merci de nous faire savoir si vous voulez nous aider dans une nouvelle langue !