Skip to main content
net8.0

Avalonia UI controls for documentation and demo scenarios (CodeBlock, DocSite).

Published
Sep 3, 2026
1mo ago
Total Downloads
987
987

Install

dotnet add package Irihi.Dogma --version 0.2.3
ProductVersions
.NET
net8.0

README

Irihi.Dogma

NuGet License: MIT

A set of Avalonia UI controls designed for documentation and demo scenarios.

⚠️ Support & Scope

This repository exists to serve IRIHI's own product demos β€” it is not a general-purpose, publicly supported library. Before using it, please understand that:

  • No support β€” external support requests, issues, and feature suggestions are not processed.
  • No compatibility guarantees β€” APIs may change or break at any time, without notice or semantic-versioning discipline.
  • Demo-first β€” code targets our internal demo scenarios; use cases outside those scenarios are out of scope.

Use at your own risk.

Features

  • CodeBlock β€” syntax-highlighted, selectable, copyable code display control with zero external dependencies
    • Supports AXAML and C# syntax highlighting
    • Built-in light/dark theme support
    • Line numbers and copy button
  • DocSite β€” documentation site scaffolding with DocPage and DocCategory attributes, plus a source-generator that wires them up automatically

Installation

dotnet add package Irihi.Dogma

Usage

CodeBlock

<dogma:CodeBlock Language="CSharp"
                 Code="{Binding MySourceCode}"
                 ShowLineNumbers="True"
                 ShowCopyButton="True" />

DocSite

Annotate your demo view-models with [DocPage] / [DocCategory] attributes. The included source generator automatically registers them into IDocRegistry at compile time.

[DocPage("My Page", Category = "Getting Started")]
public partial class MyPageViewModel : IViewModelProvider { ... }

Building

dotnet build Irihi.Dogma.slnx
dotnet test Irihi.Dogma.slnx

License

MIT Β© Irihi Technology

Changes from Previous Version

No structural changes between v0.2.2 and v0.2.3.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.