Record
public record VersionDefinition : System.IEquatable<Moka.Docs.Core.Configuration.VersionDefinition>

Namespace: Moka.Docs.Core.Configuration

A version definition for multi-version documentation.

Inheritance

Implements: System.IEquatable<Moka.Docs.Core.Configuration.VersionDefinition>

Properties

NameDescription
Branch Git branch for this version.
Default Whether this is the default version.
Label Display label (e.g., "v2.0").
Prerelease Whether this is a prerelease version.

Branch

string? VersionDefinition.Branch { get; init; }

Git branch for this version.

Default

bool VersionDefinition.Default { get; init; }

Whether this is the default version.

Label

string VersionDefinition.Label { get; init; }

Display label (e.g., "v2.0").

Prerelease

bool VersionDefinition.Prerelease { get; init; }

Whether this is a prerelease version.

Type Relationships
classDiagram
                    style VersionDefinition fill:#f9f,stroke:#333,stroke-width:2px
                    VersionDefinition ..|> VersionDefinition~ : implements
                
View Source
/// <summary>A version definition for multi-version documentation.</summary>
public sealed record VersionDefinition
{
    /// <summary>Display label (e.g., "v2.0").</summary>
    public required string Label { get; init; }
    /// <summary>Git branch for this version.</summary>
    public string? Branch { get; init; }
    /// <summary>Whether this is the default version.</summary>
    public bool Default { get; init; }
    /// <summary>Whether this is a prerelease version.</summary>
    public bool Prerelease { get; init; }
}
Was this page helpful?