This guide will walk you through the steps to install the Stride Docs website on your local machine for development purposes. Although we use the Windows operating system for development, the steps should be similar for other operating systems.
Minor updates can be made directly on GitHub. However, for more significant updates that affect multiple pages, we recommend using a local development environment so you can see the impact of your changes beforehand. This is because we use the Docfx static site generator, and in some cases, all pages need to be regenerated. This approach helps you assess your changes before submitting a pull request.
This guide assumes you have a basic understanding of the technologies used in the Stride docs website.
Before updating the Stride Docs, ensure you are familiar with the following prerequisites:
[!INCLUDE docs-prerequisites]
your-username with your GitHub username: git clone https://github.com/your-username/stride-docs.git
cd stride-docsEnter the following command to install the latest docfx
dotnet tool install -g docfx
Or check the installed version is at least 2.74.1
docfx --version
Other options
Update to the latest Docfx
dotnet tool update -g docfx
Install a specific version of Docfx
dotnet tool update -g docfx --version 2.74.1
Uninstall Docfx if you need to downgrade
dotnet tool uninstall -g docfx
We've created a PowerShell script BuildDocs.ps1 with a context menu where you can select the language, include the API build, and run the development server.
run.bat in the command line to start the script📋 You will see the following self-explanatory menu:
Please select an option:
[en] Build English documentation
[jp] Build Japanese documentation
[all] Build documentation in all available languages
[r] Run local website
[c] Cancel
Your choice:
🌐 Choose to build the documentation in the language of your preference
[n] for no API build🖥️ If you select [r], the documentation site will open automatically in your browser http://localhost:8080/en/index.html
💻 Open the project in Visual Studio by opening the Stride.Docs.sln solution file, or use the IDE of your choice
🔄 After saving the updated file, you will need to rebuild the documentation by running the script again
😃 Happy coding!
Let's update the content now!