Releases: dotnet/docfx
v2.66.0
What's Changed
π New Features
- feat: iTextSharp -> PdfPig by @yufeih in #8664
- feat: CommandLineParser -> Spectre.Console.Cli by @yufeih in #8641
π Bug Fixes
- fix: duplicated PDF toc name by @yufeih in #8663
- fix: NRE related to symbol display by @VaclavElias in #8658
π Documentation
- docs: add .NET Foundation footer. by @markjulmar in #8656
- docs: fix the location reference for metadata.src.src by @StingyJack in #8659
New Contributors
- @markjulmar made their first contribution in #8656
- @StingyJack made their first contribution in #8659
Full Changelog: v2.65.3...v2.66.0
v2.65.3
What's Changed
π Bug Fixes
- fix: angle bracket escape in code inline by @yufeih in #8630
- fix: ignore unsupported PDB formats by @yufeih in #8631
- fix: resolve windows app sdk URL by @yufeih in #8632
- fix: hide generated assembly name by @yufeih in #8637
π Documentation
- docs: refactored user manual into two separate articles by @wilkinson-steve in #8635
- fix: remove dependency on root repo path in unit test by @wilkinson-steve in #8634
New Contributors
- @wilkinson-steve made their first contribution in #8634
Full Changelog: v2.65.2...v2.65.3
v2.65.2
What's Changed
π New Features
- feat: calculate internal cross-reference URL without xrefmap by @yufeih in #8588
- feat: show previous next article link by @yufeih in #8614
- feat: support name only TOC node by @yufeih in #8624
- feat: move modern template icons location to menu bar by @yufeih in #8613
π Documentation
- Update docfx.exe_user_manual.md by @VaclavElias in #8612
Full Changelog: 2.65.1...v2.65.2
v2.65.1
What's Changed
π Bug Fixes
- fix: xml comment whitespace handling by @yufeih in #8607
- fix: xml entity escape for markdown by @yufeih in #8596
- fix: remove $enable-grid-classes: false by @yufeih in 0c42539
π Documentation
- docs: update markdown.md by @VaclavElias in #8609
New Contributors
- @VaclavElias made their first contribution in #8609
Full Changelog: v2.65.0...2.65.1
v2.65.0
Enhanced <inheritdoc /> support
The <inheritdoc />
tag for C# documentation comments now behaves more like Visual Studio and Visual Studio Code. Members automatically inherit documentation from their base class or interfaces, including base class library types. Additionally, you can use the cref and path attributes to customize the behavior of <inheritdoc />
.
Mermaid Diagrams in markdown
You can now create Mermaid diagrams using markdown code blocks. Here's a simple example:
```mermaid
flowchart LR
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
```
LaTeX Math Expression in markdown
Incorporate LaTeX math expressions in your documentation using the $ or $$ delimiter. For instance:
What's Changed
π₯ Breaking Changes
π New Features
- feat: support <inheritdoc> tag by @yufeih in #8589
- feat: support math expressions by @yufeih in #8600
- feat: support mermaid diagrams by @yufeih in #8599
πͺ Other Changes
- chore: drop hash from manifest.json by @yufeih in #8594
- build(deps): Use bootstrap 5.3.0-alpha3 by @yufeih in #8598
Full Changelog: v2.64.0...v2.65.0
v2.64.0
C# documentation comment link enhancements
This release improves link generation for C# documentation comment in a couple of areas:
- Links to base class libraries are generated automatically without using the xref service or extra config. This is done by calculating the references to APIs hosted on https://learn.microsoft.com/dotnet/api using an URL pattern offline.
- View source is now available for assemblies as input if
- The assembly enables SourceLink
- A PDB file exist next to the assembly file.
- Links to types in dependency assemblies produces URLs pointing to the API source code location if:
- The dependency assembly enables SourceLink
- A PDB file exist next to the assembly file.
<see langword="">
now properly resolves to URLs pointing to https://learn.microsoft.com.
MemberPage as a first class feature
The memberpage
plugin is now replaced by a first-class feature using the experimental { "memberLayout": "SeparatePages" }
config. See this example on how to enable the behavior in docfx.json
.
NOTE: This new feature has been manually tested for the default templates, the modern template and the statictoc template, but there might be glitches in some edge cases.
Sunset DFM markdown engine
The MarkdownLite
and DFM
markdown engine is removed from docfx in this release. DFM users are encouraged to update to markdig
for a commonmark compliant markdown parser, a rich markdown extension eco-system and better performance.
What's Changed
π₯ Breaking Changes
- BREAKING CHANGE: drop dfm markdown engine by @yufeih in #8537
- chore: drop preserveRawInlineComment by @yufeih in #8557
- chore: remove sees from YAML output by @yufeih in #8559
- chore: drop useCompatibilityFileName by @yufeih in #8568
π New Features
- feat: compute mslearn symbol URL by @yufeih in #8546
- feat: view source for assemblies using sourcelink by @yufeih in #8548
- feat: resolve langword to URLs by @yufeih in #8550
- feat: add allowCompilationErrors option by @yufeih in #8554
- feat: memberpage plugin -> memberLayout.SeparatePages by @yufeih in #8569
π Bug Fixes
- fix: mslearn link not resolved in generic type parameter by @yufeih in #8549
- fix: ' in seealso by @yufeih in #8551
- fix: NRE on duplicated params by @yufeih in #8552
- fix: add margin to list terms by @yufeih in #8555
- fix: undefined lunrIndex by @yufeih in #8556
- fix: dark theme flash on page refresh by @yufeih in #8573
π Documentation
- Update index.md workflow sample by @mtirionMSFT in #8570
Full Changelog: v2.63.1...v2.64.0
v2.63.1
v2.63.0
New Modern Template
This release features a brand new modern
site template based on bootstrap 5 with a lot of visual and usability improvements:
- Supports both dark and light themes
- Match .NET API reference docs with https://learn.microsoft.com
- Usability improvements such as code copy, clickable images, external link icons, better API text breaks, link to GitHub, etc.
The docfx official site has also been updated to use the new template. To use the modern template in your website, set the template to ["default", "modern"]
.
What's Changed
π₯ Breaking Changes
π New Features
- feat: new modern template @yufeih in #8470 #8440 #8498 #8515 #8516 #8524
- feat: add dark theme to modern template by @yufeih in #8499 #8512
- feat: adjust .NET API display for modern template by @yufeih in #8525
- feat: show
_appName
after logo by @yufeih in #8438 - feat: add code copy by @yufeih in #8517
- feat: clickable image by @yufeih in #8518
- feat: update docfx to use modern template by @yufeih in #8513
- feat: add tags to word boundaries by @yufeih in #8521
- feat: add icon to external links by @yufeih in #8523
- feat: show TOC node as expanded using the
expanded
property by @yufei in #8498 - feat: Group explicit interface implementations into their own section by @mikernet in #8445
π Bug Fixes
- fix: Newtonsoft.Json.Schema -> JsonSchema.Net by @yufeih in #8418
- fix: incorrect type name for unresolved generic types by @yufeih in #8491
- fix: mref properties inherit parent items by @yufeih in #8492
- fix: custom logo does not override logo from template by @yufeih in #8510 #8522
π§ Engineering
- build: setup ts/scss/watch by @yufeih in #8421 #8423
- test: add visual snapshot testing by @yufeih in #8422 #8481
- build: upgrade to YamlDotNet 13.0.1 by @lahma in #8442
π Documentation
- Add minimal template by @sotanakamura in #8447
- Improvement Document Guideline markdown with image by @chuongmep in #8485
New Contributors
- @sotanakamura made their first contribution in #8447
- @chuongmep made their first contribution in #8485
Full Changelog: v2.62.2...v2.63.0