Skip to content

markdowndotnet

Python command line tool to generate markdown documents from C# Library files and their XML documentation.

Build Status PyPI PyPI - Python Version

Requirements

The generated files markdown files are meant to be used with mkdocs (with the material theme), but may be compatible with other site generators.

How to use

The script requires setting the DocumentationFile setting in the project's configuration, e.g.

<DocumentationFile>bin\Debug\ExampleProject.xml</DocumentationFile>

Once this has been set, an XML file will be built along with the library's dll file.

Now, when running the script, the path to the dll and the xml file must be specified:

python markdowndotnet.py ExampleProject.dll ExampleProject.xml

By default, the files will be generated in a folder named output/ in the working directory.

This contains markdown files generated for each object found in the assembly, ordered in directories by namespace. Aditionally, a file named index.yml is created, which can be appened to a mkdocs.yml file to use with mkdocs.