LithoSharp.ProjectTemplates 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet new install LithoSharp.ProjectTemplates@2.2.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

LithoSharp project templates

Start documentation managed with C# types and builds. The next candidate's docs template connects a custom schema, generated binder/catalog and typed references to Docs navigation and explicit output quality checks.

This checkout is not a published release. Configure the supplied candidate feed, replace <candidate-version> with its exact version and set the generated project's LithoSharpVersion to match before restoring. The published 2.1.3 Docs template retains the previous reader-based starting point.

Install the candidate with dotnet new install LithoSharp.ProjectTemplates::<candidate-version> and create a site with dotnet new lithosharp-docs, dotnet new lithosharp-blog, dotnet new lithosharp-empty, or dotnet new lithosharp-mdx.

dotnet new lithosharp-docs -n MyDocs -o MyDocs
dotnet tool install LithoSharp.Tool --version <candidate-version> --tool-path .tools
# Before building, set MyDocs/MyDocs.csproj LithoSharpVersion to the same candidate
.tools/lithosharp build MyDocs
.tools/lithosharp serve MyDocs

The CLI package is separate from the templates. docs starts a documentation site, blog uses the Blog template, empty demonstrates a custom C# layout, and mdx adds the optional MDX worker setup. Generated projects export an ISiteFactory that the CLI compiles and runs as trusted site code.

Templates target .NET 10. For a candidate feed, set LithoSharpVersion to its exact candidate version. MDX additionally requires Node.js 24.13.0 and explicit worker restore. See the Quick Start for build, serve and interactive component examples.

For an end-to-end typed-content example with compiler diagnostics and generated output checks, see the Docs sample.

The Docs project includes GuideFrontMatter.cs (required title, optional description and order), Guides.Binder, generated routes and two valid Markdown pages. AdditionalFiles and runtime loading share the content root, nested relative IDs with extensions, and underscore-prefixed exclusions. RenderDocs supplies the shared Docs shell; the template alone owns index.html. Quality fails on Error with external HTTP disabled, in both the CLI and generated Program. Existing projects opt in through the migration guide, not by regenerating over their files.

This package has no dependencies.

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.0 98 11/20/2026
3.1.0 100 11/17/2026
3.0.0 99 11/16/2026
2.2.0 118 11/9/2026
2.1.3 112 11/7/2026
2.1.2 133 10/31/2026
2.1.1 120 10/29/2026
2.1.0 124 10/28/2026
2.0.1 126 10/25/2026
2.0.0 152 10/17/2026
1.1.0 149 10/7/2026
1.0.0 190 9/15/2026
0.3.1 202 9/9/2026
0.3.0 202 9/8/2026