turns a collection a markdown files into a (digital) book
Install command:
dotnet tool install -g Airudit.MdBook
You can invoke the tool using the following command: mdbook Tool 'airudit.mdbook' (version '0.1.2') was successfully installed.
Use command:
mdbook --help
Displaying help.
The
MarkdownToHtmlcommand will generate HTML files for each specified markdown file.MarkdownToHtml command usage:
> {file path}+ [options]Options:
--Export <dir> Exports the generated documentation to this directory
--Single-File <file> Exports the generated documentation to a single file
--Template <file> Specifies the HTML template file
--Copyright <str> Specifies a copyright notice
In your repository: make a project local install with:
# create a tool manifest file for your project
dotnet new tool-manifest
# verify
cat .config/dotnet-tools.json
# install
dotnet tool install Airudit.MdBook
# verify
cat .config/dotnet-tools.json
# verify command
dotnet mdbook --helpDuring your CI, restore the tools:
dotnet tool restoreNow you can use the command in your build process
dotnet mdbook help/ README.md