Skip to content

Releases: dotnet/docfx

v2.62.1

15 Feb 12:12
Compare
Choose a tag to compare

What's Changed

🐞 Bug Fixes

  • fix: cannot search due to lunr not defined by @yufeih in #8416

Full Changelog: v2.62.0...v2.62.1

v2.62.0

14 Feb 11:55
Compare
Choose a tag to compare

What's Changed

💥 Breaking Changes

  • BREAKING CHANGE: Drop incremental build by @yufeih in #8379 #8388
  • BREAKING CHANGE: Docset.Build does not generate .NET YAML files by @yufeih in #8399
  • BREAKING CHANGE: Hide explicit interface implementations if show private members is off by @yufeih in #8409
  • BREAKING CHANGE: Exclude a parent namespace also exclude its child namespaces by @yufeih in #8409

🎉 New Features

  • feat: Upgrade highlight.js with latest C# syntax highlighting by @yufeih in #8395
  • feat: improve .NET API generation diagnostics by @yufeih in #8385 #8397
  • feat: Support <include> XML comment tag by @yufeih in #8393
  • feat: API to generate .NET YAML files with custom filtering by @yufeih in #8399 #8408
  • feat: Show private members by @yufeih in #8409
  • feat: Align XML comment behavior for assemblies with projects by @yufeih in #8387
  • feat: Experimental support for multi-level TOC files by @NanoBob in #8371

🐞 Bug Fixes

  • fix: Assert failure for cast operator overloads by @yufeih in #8384
  • fix: Projects in sln build twice by @yufeih in #8386

📄 Documentation

New Contributors

Full Changelog: v2.61.0...v2.62.0

v2.61.0

30 Jan 05:37
Compare
Choose a tag to compare

.NET 7.0 and C# 8, 9, 10, 11

This release adds support for .NET 7 and C# 8, 9, 10, 11. Docfx can now generate API docs for .NET 7 projects supporting all the latest C# language features including:

  • Nullable reference types
  • Default interface members
  • Init-only setters
  • Record types
  • Record struct
  • Checked user defined operators
  • Static abstract interface members
  • Required modifier

Display of API names and signatures have been updated to be more idiomatic C#, including but not limited to:

  • Short familiar type names such as string, int
  • ? for nullable structs and () for tuples

Markdown engine and custom markdown extensions

Markdig has been changed to be the default and recommended markdown engine in docfx. At the same time we are deprecating dfm and other markdown engines supported by docfx. Dfm markdown engine would be removed in some future releases.

To use a custom markdown extension in markdig, a ConfigureMarkdig build option is added to customize the markdig markdown pipeline:

var options = new BuildOptions
{
    // Enable custom markdown extensions here
    ConfigureMarkdig = pipeline => pipeline.UseCitations(),
}

await Docset.Build("docfx.json", options);

Client-side redirection

The new redirect_url metadata redirects a page to a new URL. To setup redirection for a markdown article, remove all markdown content and replace it with:

---
redirect_url: <URL to redirect to>
---

Known Issues

  • Default nullable enum values displayed as numbers instead of enums dotnet/roslyn#66514
  • Nullable reference type in the parameters table missing ?.

What's Changed

💥 Breaking Changes

  • BREAKING CHANGE: Set markdig as default and deprecate dfm. by @yufeih in #8342
  • BREAKING CHANGE: Drop modifiers from .NET API YAML output by @yufeih in #8364
  • BREAKING CHANGE: Drop builtin fsproj support by @yufeih in #8375

🎉 New Features

🐞 Bug Fixes

  • fix: Set summary and conceptual to empty string instead of null by @NanoBob in #8370

🔧 Engineering

  • build: Upgrade to Jint 3.0.0-beta-2046 by @lahma in #8361
  • build: Upgrade to YamlDotNet version 12.3.1 by @lahma in #8373

📄 Documentation

New Contributors

Full Changelog: v2.60.0...v2.61.2

v2.60.2

20 Jan 02:25
Compare
Choose a tag to compare

What's Changed

🐞 Bug Fixes

  • fix: wrong NuGet content directory layout (#8354)

Full Changelog: v2.60.1...v2.60.2

v2.60.1

18 Jan 09:47
Compare
Choose a tag to compare

What's Changed

🐞 Bug Fixes

  • fix: RunPdf.Exec threw ArgumentNullException resolving path to wkhtmltopdf by @chrisvanderpennen in #8350
  • ci: publish self contained binaries to GitHub releases

New Contributors

Full Changelog: v2.60.0...v2.60.1

Version 2.60.0

13 Jan 01:31
02bc21e
Compare
Choose a tag to compare

.NET Core Support

This is the first stable release of docfx on .NET Core!
Docfx is released as a .NET Core Tool starting from v2.60.0. To install, run:

dotnet tool update -g docfx

The rest of the command line experience hasn't changed and are backward compatible. We've also updated docfx homepage use the .NET Core version of docfx.

What's Changed

🎉 New Features

🐞 Bug Fixes

🔧 Engineering

📄 Documentation

New Contributors

Full Changelog: v2.59.4...v2.60.0

Version 2.60.0-preview.2

25 Dec 07:22
Compare
Choose a tag to compare
Pre-release

What's Changed

Addresses all known limitations in v2.60.0-preview.1:

  • .NET Core: Support generating APIs from source code, csproj, DLLs without installing .NET Framework.
  • Cross platform: Support Windows, Linux and MacOS
  • New Extensibility Model: docfx.console and plugins are replaced with a new compile time extensibility model. To consume docfx as a library or use docfx extensions, add reference to the Microsoft.DocAsCode.App package. See samples/extensions folder on a sample using the memberpage plugin.

🎉 New Features

Full Changelog: v2.60.0-preview.1...v2.60.0-preview.2

Version 2.60.0-preview.1

20 Dec 03:22
Compare
Choose a tag to compare
Pre-release

.NET Core Support

This is the first preview of docfx that builds on top of .NET Core!
Docfx is released as a .NET Core Tool starting from v2.60.0-preview.1. .NET 6.x is required to run docfx. To install, run:

dotnet tool update -g docfx --version 2.60.0-preview.1

The rest of the command line experience hasn't changed and are backward compatible. We've also updated docfx homepage use the .NET Core version of docfx.

Known Limitations

  • Msbuild integration through docfx.console is not supported in this preview.
  • Plugins like memberpage, rest.tagpage, rest.operationpage are not supported in this preview.
  • Supports Windows only. Linux and MacOS are not supported in this preview.
  • .NET Framework 4.x is still needed to build from source code in this preview.

What's Changed

🎉 New Features

🐞 Bug Fixes

🔧 Engineering

📄 Documentation

New Contributors

Full Changelog: v2.59.4...v2.60.0-preview.1

Version 3.0.0-beta1.1260+9e3c31b73d

14 Oct 03:49
9e3c31b
Compare
Choose a tag to compare
Pre-release
Merge pull request #8212 from dotnet/v3-9019f386b

🚢🚢🚢

Version 3.0.0-beta1.1253+746a8e2c7d

30 Sep 03:19
746a8e2
Compare
Choose a tag to compare
Pre-release
Merge pull request #8201 from dotnet/v3-rel-upgrade-validation

upgrade validation library to include new domains (#8199)