Synergy.Documentation
4.0.1
See the version list below for details.
dotnet add package Synergy.Documentation --version 4.0.1
NuGet\Install-Package Synergy.Documentation -Version 4.0.1
<PackageReference Include="Synergy.Documentation" Version="4.0.1" />
<PackageVersion Include="Synergy.Documentation" Version="4.0.1" />
<PackageReference Include="Synergy.Documentation" />
paket add Synergy.Documentation --version 4.0.1
#r "nuget: Synergy.Documentation, 4.0.1"
#:package Synergy.Documentation@4.0.1
#addin nuget:?package=Synergy.Documentation&version=4.0.1
#tool nuget:?package=Synergy.Documentation&version=4.0.1
Synergy.Documentation
Synergy.Documentation provides .NET APIs for generating and maintaining project documentation from code. It includes public API listings, type dependency exploration, TODO reports, and a small object model for composing Markdown.
NuGet: Synergy.Documentation
License: MIT
Target frameworks: .NET 8 and .NET 10
Install
dotnet add package Synergy.Documentation
The package depends on Synergy.Documentation.Annotations. Install that package directly if you only need its annotations and fluent comment helpers.
Generate a public API listing
ApiDescription.GenerateFor reflects over an assembly and returns a Markdown-formatted description of its public types and members:
using System.IO;
using Synergy.Documentation.Api;
var markdown = ApiDescription.GenerateFor(typeof(MyService).Assembly);
File.WriteAllText("public-api.md", markdown);
Pass includeAssemblyVersion: true to include the assembly version in the heading. The result is a string; choose the file location and whether to compare it with a checked-in snapshot in your own build or test workflow.
Explore type dependencies
Dependencies.Of starts from a type and returns the types found through its public properties. Set includeNested: true to include its public nested types:
using System.IO;
using Synergy.Documentation.Api;
var types = Dependencies.Of(typeof(MyService), includeNested: true);
var markdown = ApiDescription.GenerateFor(types);
File.WriteAllText("my-service-dependencies.md", markdown);
This is a reflection-based view of property types, not a complete runtime or project dependency graph.
Collect TODOs
TodoExplorer.DebtFor scans a folder recursively using its built-in TODO patterns and returns a Markdown report:
using System.IO;
using Synergy.Documentation.Code;
using Synergy.Documentation.Todos;
var source = new CodeFolder(Path.Combine("src", "MyProject"));
var report = TodoExplorer.DebtFor("MyProject", source);
File.WriteAllText("technical-debt.md", report);
You can provide an excludePath predicate to skip matching files or directories, and pass custom TodoPattern instances to replace the default patterns. The report links to source files relative to the calling source file.
Compose Markdown
The Markdown.Document API lets you append supported Markdown elements and render the document to a string:
using System.IO;
using Synergy.Documentation.Markup;
var document = new Markdown.Document()
.Append(new Markdown.Header1("Release notes"))
.Append(new Markdown.Header2("Added"))
.Append(new Markdown.Paragraph("API documentation is now generated."));
File.WriteAllText("release-notes.md", document.ToString());
Other elements include code blocks, quotes, tables, links, and images. See the Markdown example for a complete sample.
Examples and tests
The test project contains executable examples of API listings, dependency listings, and TODO reports. Run the tests from the repository root:
dotnet test Documentation/Synergy.Documentation.Tests/Synergy.Documentation.Tests.csproj
For source annotations and fluent comments, see the Synergy.Documentation.Annotations guide.
| Product | Versions 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 is compatible. 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. |
-
net10.0
- Synergy.Documentation.Annotations (>= 4.0.1)
-
net8.0
- Synergy.Documentation.Annotations (>= 4.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.2 | 432 | 11/6/2026 |
| 4.0.1 | 374 | 10/27/2026 |
| 3.0.35 | 563 | 10/13/2026 |
| 3.0.34 | 109 | 10/13/2026 |
| 3.0.32 | 615 | 9/19/2026 |
| 3.0.28 | 169 | 9/15/2026 |
| 3.0.26 | 420 | 8/27/2026 |
| 3.0.25 | 1,315 | 5/25/2026 |
| 3.0.24 | 253 | 5/11/2026 |
| 3.0.23 | 139 | 5/11/2026 |
| 3.0.21 | 445 | 4/17/2026 |
| 3.0.19 | 375 | 3/19/2026 |
| 3.0.18 | 1,432 | 9/16/2025 |
| 3.0.16 | 615 | 4/22/2025 |
| 3.0.15 | 280 | 4/22/2025 |
| 3.0.13 | 338 | 4/13/2025 |
| 3.0.12 | 279 | 3/20/2025 |
| 3.0.11 | 277 | 3/18/2025 |
| 3.0.10 | 439 | 2/21/2025 |
| 3.0.4 | 409 | 2/1/2024 |