Documentation
Overview
This repo holds the markdown files of Steeltoe documentation in the docs sub-folder and a markdown parser console app. The app converts the markdown to HTML using the Markdig library. It also uses the contents of docs/nav-menu.yaml to create a toc.json (table of contents).
The pipeline attached to this repo creates an artifact that holds the created files, in a specific folder structure. The MainSite repository contains the release pipelines that copy the contents of this artifact into the wwwroot folder during deployment.
Directory Locations
-
Documentation - All markdown documentation is located under the
docsfolder. These are the files that need to be modified for updates to the documentation section on the website. -
The markdown parser - This converts the markdown files to html and is located under
src.
Build
- Running the markdown parser
- Usage:
> dotnet run --project src/ParseMD <location-of-markdown-files> <output-html-directory> - Example Usage:
> dotnet run --project src/ParseMD <location-of-markdown-files> <output-html-directory>
- Usage:
Build docs and run on main site, locally
-
Publish the application to create the artifact
PS> dotnet publish '.\src\ParseMD\ParseMD.csproj' --output '.\publish' --configuration Release
-
Note the branch you are working on
PS> git branch 2.x * 2.x-staging 3.x-staging master
-
Run the application to convert the given branch markdown to html
PS> dotnet '.\publish\ParseMD.dll' '.\docs' '.\output-2xstaging'
-
Move the generated html into a local instance of the main site, matching the version to the folder
PS> cp '.\output\*' '..\MainSite\src\Client\wwwroot\site-data\docs\2\' ^
-
Refer to the main site readme for instructions on running the site locally
Related Repository
- MainSite - This repository contains the main site builder for steeltoe.io. It pulls in the html from the output of
ParseMDand adds it to the documentation section of steeltoe.io.