Tip
Building the API Browser documentation is not required for the site to run locally.
Generate API Browser documentation and process all markdown with the included PowerShell script build-metadata.ps1:
cd build
pwsh ./build-metadata.ps1This process can take a while to complete, will display many warnings and may increase build time in subsequent local runs of Steeltoe.io.
Tip
build-metadata.ps1 takes an optional parameter to process one Steeltoe version at a time.
For example, running ./build-metadata.ps1 4 will clone and build API Browser metadata for only v4.
Or run ./build-metadata.ps1 source to use local Steeltoe sources in a sibling directory.
Passing a version to build-metadata.ps1 is likely to produce failures during docfx build.
These failures can be ignored, but will result in 404 errors if you try to view API Browser pages that were not generated on your machine.
- Download docfx binaries (temporary workaround for .NET 10 support)
- Clone several copies of Steeltoe (using metadata.conf to identify checkout targets)
- Run
docfx metadata api-v{version}.jsonfor each copy- This command will produce many yaml files and place them in docs, alongside the index pages for each API version
- The script offers a parameter to target a single version (for example:
build-metadata.ps1 3)
- Run
docfx buildwith docfx-all.json, which will copy the html files intowwwrootof the Steeltoe.io project
Check external links in markdown files with the same tools CI uses (no build required):
pwsh build/check-external-links.ps1Requires lychee.
Settings are shared between CI and the local script via lychee.toml at the repo root.