Static site generator for .NET API documentation
open sourceMITfree
DocFX builds a technical documentation site from Markdown and from .NET assemblies and their XML code comments and REST API Swagger files, rendering them as HTML pages, a JSON model or PDF files. You install it as a .NET global tool, create a docset with docfx init, preview it locally with --serve, and publish the static _site folder to any static host, such as GitHub Pages. Microsoft Learn stopped using it and supporting it in November 2022, and it continues as a community-driven .NET Foundation project.
Ways to install
Package managers
Problems it solves
- generate API reference docs for my .NET library from its XML comments
- build a documentation site for a C# project
- publish .NET API docs to GitHub Pages
Features
- API reference docs from .NET assemblies and XML comments
- REST API reference from Swagger files
- Markdown conceptual docs and landing pages
- HTML, JSON model and PDF output
- local preview server
- static output for GitHub Pages and other hosts
Limitations
- Microsoft no longer supports it: since November 2022 it's a community-driven .NET Foundation project2
Alternatives
The same job
These do what DocFX does.
- TypeDoc Documentation generator for TypeScript projects
- Doxygen Code documentation. Automated. Free, open source, cross-platform.
- JSDoc API documentation generator for JavaScript from comments in the code
- Dokka API documentation engine for Kotlin
- phpDocumentor API documentation generator for PHP
- dartdoc API documentation generator for Dart, behind dart doc