If you want to contribute and update the website, please follow the instructions below.
Small updates can be done directly in the GitHub web interface, for bigger updates the local development environment is required, which is described in the Installation section.
You can use any text editor to make changes. If you are using Visual Studio, you can open Stride.Docs.sln solution file in the root of the repository and start making your updates directly from this IDE.
You are always welcome to create an issue to discuss your changes before you start working on them.
Creating an issue is not required for small updates, but it is recommended to let others know what you are working on. If you are not sure whether your update is small or not, please create an issue first.
We can define small updates as changes to the content of the website:
[!NOTE] This guide assumes that you are already familiar with updating files on GitHub.
For the following instructions, use the Stride Docs GitHub repository:
[!INCLUDE small-updates]
Creating an issue is required for major updates, so that others can comment on your changes and provide feedback.
Major updates can be defined as significant changes to the website's design, where it's beneficial to preview the impact of your changes to ensure they achieve the desired result. This may include:
Start by setting up your local development environment, as described in the Installation section. After making and testing your changes locally, you should create a pull request to merge your changes into the master branch.
When submitting a pull request, especially for substantial changes, it's recommended to include screenshots or a link to your local deployment. This approach helps maintainers visualize and assess your proposed changes more effectively. If you prefer to use GitHub infrastructure for your demonstrations, refer to our Deployment to GitHub Pages guide for instructions on deploying via GitHub Actions.
These pages contain information about how to use Stride, an open-source C# game engine.
[!IMPORTANT] SEO Note: Ensure that the file name includes essential keywords related to the content of the article. This is crucial because the file name dictates the URL of the content page, which plays a significant role in search engine optimization (SEO).
manual folder, in the already existing folders (e.g. animation, audio, ..) or create a new folder in the manual folder.
index.md file in this folder.toc.yml (or toc.md) file in the manual folder to include the new page or folder. The toc.yml file contains the table of contents for the manual pages, which is displayed on the left side of the manual pages. These pages are also included in the optionally generated PDF file.Observe existing pages and folders for the naming convention.
You can observe that existing folders might have a media folder. This folder contains images and videos used in the manual pages. You can use this folder or create a new one in your folder. If possible make sure that images are .webp format and videos are .mp4 format.
These pages contain tutorials on how to use Stride, an open-source C# game engine.
tutorial folder.index.md file in this folder. Observe existing tutorials for the content of this file.toc.yml file in the tutorial folder to include the new tutorial folder. The toc.yml file contains the table of contents for the tutorial pages, which is displayed on the left side of the tutorial pages.Observe existing pages and folders for the naming convention.
You can observe that existing tutorials have a media folder. This folder contains images. If possible make sure that images are .webp format. The videos should be uploaded to YouTube and embedded in the tutorial pages.
In addition to the Manual and Tutorial sections mentioned above, the same principles apply to both existing and new sections. Follow the established formats and conventions to ensure consistency and clarity throughout the documentation.
Docfx supports additional markdown syntax to enrich content. These syntaxes are specific to Docfx and may not render correctly on other platforms, like GitHub.
For more information, read the Docfx documentation on markdown, shortcodes and includes. Some commonly used features include:
Our main web assets include:
template/partials/affix.tmpl.partial - Currently not functioningtemplate/partials/footer.tmpl.partial - Currently not functioningtemplate/public/main.css - Contains minor Bootstrap CSS overridestemplate/public/main.js:
docfx.json - The HTML footer is included in the _appFooter sectionWe utilize the modern template provided by Docfx, which employs the Bootstrap framework, version 5.3. This includes the dark theme, enabled by Docfx.
[!IMPORTANT] Prioritize the use of Bootstrap's inherent styling before integrating any custom styles. You should be familiar with Bootstrap Utilities which help you to achieve most of the styling requirements.
Our goal is to write minimal CSS code to keep the website lightweight, leveraging the Bootstrap framework to the fullest extent possible.
[!INCLUDE submitting-changes]