MkDocs and DocFX are both open source static site generators. MkDocs is written in Python and DocFX is written in C#.
Property | MkDocs | DocFX |
---|---|---|
Language | Python | C# |
Templates | Jinja2 | Mustache, Liquid |
License | BSD-3-Clause | MIT |
MkDocs is a fast, simple and downright gorgeous static site generator that's geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file.
Host anywhere.
Builds completely static HTML sites that you can host on GitHub pages, Amazon S3, or anywhere else you choose.
Great themes available.
There's a stack of good looking themes included by default. Choose from bootstrap, readthedocs, ghostwriter, or any of the 12 bootswatch themes.
Preview your site as you work.
The built-in devserver allows you to preview your documentation as your writing it. It will even auto-reload whenever you save any changes, so all you need to do to see your latest edits is refresh your browser.
Easy to customize.
Get your project documentation looking just the way you want it by customizing the theme.
Cross-reference your documentation.
Create richly cross-referenced documents, using the MkDocs interlinking syntax.
DocFX is an API documentation generator for .NET, and currently it supports C# and VB. It generates API reference documentation from triple-slash comments in your source code. It also allows you to use Markdown files to create additional topics such as tutorials and how-tos, and to customize the generated reference documentation. DocFX builds a static HTML website from your source code and Markdown files, which can be easily hosted on any web servers (for example, github.io). Also, DocFX provides you the flexibility to customize the layout and style of your website through templates. If you are interested in creating your own website with your own styles, you can follow how to create custom template to create custom templates.
DocFX also has the following cool features:
Install-Package docfx.console
docfx
extension in vscode to preview the content in real-time.