Export markdig as docfx markdown engine.
Usage:
- Clone source code from GitHub.
- Compile.
- Copy output
MarkdigEngine.dll
to x/plugins
folder. - Update
docfx.json
:- add x folder to template
- add
"markdownEngineName": "markdig"
- Change
.openpublishing.publish.config.json
.- Add configuration item
customized_template_paths
under docset node."customized_template_paths": [ "_dependentPackages/MarkdigEngine/content" ]
- Add configuration item
dependent_packages
at top level.- For stable version:
"dependent_packages": [ { "id": "Microsoft.DocAsCode.MarkdigEngine", "nuget_feed": "https://www.myget.org/F/op/api/v2", "path_to_root": "_dependentPackages/MarkdigEngine", "version": "latest" } ]
- For alpha version:
"dependent_packages": [ { "id": "Microsoft.DocAsCode.MarkdigEngine", "nuget_feed": "https://www.myget.org/F/op-dev/api/v2", "path_to_root": "_dependentPackages/MarkdigEngine", "version": "latest-prerelease" } ]
- Add configuration item
- Change
docfx.json
- Add configuration item
markdownEngineName
underbuild
node.
"markdownEngineName": "markdig"
- Add configuration item