docfx-plus 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global docfx-plus --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local docfx-plus --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=docfx-plus&version=1.0.0
                    
nuke :add-package docfx-plus --version 1.0.0
                    

DotMake Docfx-Plus Logo

DotMake Docfx-Plus

A template and a tool for enhancing DocFx.

The docfx-plus template extends DocFx's modern template to fix many UI problems and behaviors. It looks and feels more similar to Microsoft's Learn site.

The docfx-plus tool is a wrapper around docfx tool, which at runtime patches the internals to fix some problems; mainly advanced support of xmldocs <code> blocks; to support more languages and regions, consistent line break handling etc. This wrapper is developed because these changes cannot be applied in the template.

This project was mainly done for migrating our projects' docs from SHFB which is still very stable but its theme and architecture was outdated. It was used for many years mainly because of its excellent <code> block support and now we put these features into docfx.

Nuget

(Docs are in progress and more details will be provided here soon)

Getting started

Install the dotnet tool from NuGet.

dotnet tool install --global docfx-plus

Then edit your docfx.json and update the template property so that you are able to use the theme:

"template": [
    "default",
    "modern",
    "docfx-plus"
]

And ensure outputFormat is not set to a value other than mref (the default value which means ManagedReference). For example using apiPage will not make use of our theme because for that mode, docfx internally generates the HTML, most of which is not customizable in the template.

The template can also be used alone with regular docfx tool, however it's recommended to use docfx-plus tool which already bundles the template and in addition provides important fixes for <code> blocks.

If you want to use the theme with the regular docfx tool, you can export it via:

docfx-plus template export docfx-plus

This will export the bundled docfx-plus template to _exported_templates subfolder, which then can be consumed as:

"template": [
    "default",
    "modern",
    "_exported_templates/docfx-plus"
]

Prerequisites

  • .NET SDK 8.0 and later. The .NET CLI (dotnet command) is included with the .NET SDK.

Usage

Dotnet tool usage

Just use docfx-plus command instead of docfx command with same arguments and options.

docfx-plus init --yes

docfx-plus --serve

docfx-plus metadata

docfx-plus build

Building

We provide some .cmd batch scripts in build folder for easier building:

1. Build Cli.cmd
2. Build Nuget Packages.cmd
3. Build Api Docs WebSite.cmd         

Output results can be found in publish folder, for example:

DotMake.DocfxPlus.Cli-net8.0

docfx-plus.1.0.0.nupkg
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.0.4 218 12/7/2025
2.0.1 235 12/7/2025
2.0.0 189 12/5/2025
1.4.4 324 11/17/2025
1.4.2 289 11/16/2025
1.4.1 145 11/15/2025
1.4.0 283 11/11/2025
1.1.0 211 11/10/2025
1.0.0 130 11/8/2025

- Initial release.