This is the home of the Steeltoe website, which hosts documentation and blog articles.
The website is built with ASP.NET Core Blazor and docfx. docfx generates API documentation from triple-slash comments in Steeltoe source code and converts Markdown documents to HTML.
Follow the steps below to run/debug locally. The optional steps take longer, but provide a more complete experience.
Tip
To start fresh, delete all files that are not part of this repository (including the cloned Steeltoe sources) using the following command:
git clean -xdff
-
Optional: Build API Browser metadata (clones Steeltoe sources) and process Markdown files in
docs
:pwsh .\build\build-metadata.ps1
-
Optional: Only process Markdown files in
docs
:dotnet tool restore && dotnet docfx build docs/docfx.json --warningsAsErrors true
-
Open Steeltoe.io.sln in your preferred IDE, or run from the command line:
cd .\src\Steeltoe.io\ && dotnet run
The site should now be running at https://localhost:8080.
Note
If this is your first time running the site and you skip steps 1 and 2, none of the static content will be processed.
You will encounter InvalidFileLink
warnings from files at the path docs/api
and 404 errors when browsing the site.
This site uses NavigationManager
to redirect to static content in several places.
When running the app locally, you will experience a NavigationException
every time you are redirected.
If you've already run the docfx steps, let the debugger continue, and you should be redirected to the static content as expected.
While annoying, this behavior is according to Blazor's design, and handling the exception would break the redirect.
Learn more about plans to address NavigationException
in .NET 10.