Synergy.Documentation
4.0.2
dotnet add package Synergy.Documentation --version 4.0.2
NuGet\Install-Package Synergy.Documentation -Version 4.0.2
<PackageReference Include="Synergy.Documentation" Version="4.0.2" />
<PackageVersion Include="Synergy.Documentation" Version="4.0.2" />
<PackageReference Include="Synergy.Documentation" />
paket add Synergy.Documentation --version 4.0.2
#r "nuget: Synergy.Documentation, 4.0.2"
#:package Synergy.Documentation@4.0.2
#addin nuget:?package=Synergy.Documentation&version=4.0.2
#tool nuget:?package=Synergy.Documentation&version=4.0.2
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.
Example test: Api.Generate. Results: Documentation API listing and Annotations API listing. The Package.Generate test demonstrates including assembly versions: Verify.Xunit result and xunit.core result.
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.
Example test: Relations.Generate. Result: Markdown type dependency listing.
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);
In Markdown files, a TODO can be written as a [//]: # comment followed by (TODO ...), or as an HTML comment that starts a line, ``. Use the HTML comment when the message needs parentheses or Markdown links: the first form ends at the first ).
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.
Example test: Todos.Generate. Result: Technical debt report.
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.
Example test: MarkdownTests.CreateMarkdownDocument. Result: Rendered Markdown document.
new Markdown.Quote(null) creates an empty quote that can be populated with
Line. API and property-dependency listings also support types in the global
namespace. When using ClassDocumentation, missing XML summaries are omitted
from the type description or rendered as empty method-summary cells; errors
reading or parsing the XML documentation file are still propagated.
Examples and tests
Each feature section above links to an executable test and its checked-in result. The .verified.md files are expected outputs compared by Verify, not additional files written by the README snippets. Run the test project 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.2)
-
net8.0
- Synergy.Documentation.Annotations (>= 4.0.2)
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 |