Description
docfx is a documentation generation tool that builds a documentation website from .NET assemblies, XML code comments, REST API Swagger files and Markdown files. The output is rendered HTML pages, a JSON model or PDF files. You install it with the .NET SDK, version 8.0 or higher, using dotnet tool update -g docfx, and create a new docset with docfx init. Running docfx docfx.json --serve builds the site and previews it at localhost port 8080, and running docfx docfx.json again rebuilds it after you save changes. The static HTML in the _site folder can be published to any static site host, and the quick start shows a GitHub Actions workflow that deploys to GitHub Pages. Node.js 20 or higher is optional and is needed only for creating PDF files. The project is also available as a NuGet library.…
Highlights
- Builds docs from .NET assemblies, XML comments and Markdown
- Local preview server with docfx --serve
- Static HTML output for any static host
- GitHub Pages publishing workflow
- Optional PDF output with Node.js
Ratings & Reviews
No ratings yet
Be the first to rate DocFX.
People also visit
Docma
A powerful tool to easily generate beautiful HTML documentation from JavaScript
DocFX FAQ
What is docfx?
docfx is a tool that generates documentation sites from .NET assemblies, XML comments, REST API Swagger files and Markdown.
How do I install it?
Install the .NET SDK 8.0 or higher, then run dotnet tool update -g docfx.
How do I preview a site?
Run docfx docfx.json --serve and open http://localhost:8080. Run docfx docfx.json again to rebuild after changes.
Where can I publish it?
docfx writes static HTML to the _site folder, which can be hosted on any static site server. The quick start includes a GitHub Actions example for GitHub Pages.
Does it need Node.js?
Only for creating PDF files, which needs Node.js 20 or higher.
What are the best DocFX alternatives?
Popular alternatives to DocFX include Docma, Docfx and xyd. See all DocFX alternatives



