Skip to content
3.x-staging
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 

README.md

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 docs folder. 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>

Build docs and run on main site, locally

  1. Publish the application to create the artifact

    PS> dotnet publish '.\src\ParseMD\ParseMD.csproj' --output '.\publish' --configuration Release
  2. Note the branch you are working on

    PS> git branch
    
      2.x
    * 2.x-staging
      3.x-staging
      master
  3. Run the application to convert the given branch markdown to html

    PS> dotnet '.\publish\ParseMD.dll' '.\docs' '.\output-2xstaging'
  4. 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\'
                                                                       ^
  5. 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 ParseMD and adds it to the documentation section of steeltoe.io.

About

The docs used for the Steeltoe Website

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.