- Pull this repo in a VR Builder Unity project folder (same level as Assets folder).
- Install Chocolatey Community Individual https://chocolatey.org/install#individual
- Use DocFX DocFX 2.59.4. At the time of writing, it can be installed from chocolatey running
choco install docfx
. - To create PDFs, you also need wkhtmltopdf. Can be installed from chocolatey as well,
choco install wkhtmltopdf
. - To build API Metadata, you'll need MSBuild that can be installed from the VS installer.
- Refresh all .csproj files in Unity and ensure the project compiles in Unity. (Note: Using VS Code as editor might result in errors / warnings when generating the API docs. Better switch to VS before regranting.)
- Run
docfx/build-all.bat
in to build the documentation, generate PDFs for all packages and serve the site to localhost. - Ensure that the documentation works as intended in your browser by checking http://localhost:8080/.
- You can find the generated PDF files in the
pdf/docfx_articles
folder. - You can use
build-pdf
orbuild-site
to generate only the PDFs or the site, as needed. - Once the changes are on the
main
branch, the online documentation will be automatically updated.