Record
public record DocVersion : System.IEquatable<Moka.Docs.Core.Content.DocVersion>
Namespace: Moka.Docs.Core.Content
Represents a specific version snapshot of the documentation.
Inheritance
Implements: System.IEquatable<Moka.Docs.Core.Content.DocVersion>
Properties
| Name | Description |
|---|---|
IsDefault |
Whether this is the default/latest version. |
IsPrerelease |
Whether this is a prerelease version. |
Label |
Display label (e.g., "v2.0"). |
Slug |
URL path segment for this version. |
IsDefault
bool DocVersion.IsDefault { get; init; }
Whether this is the default/latest version.
IsPrerelease
bool DocVersion.IsPrerelease { get; init; }
Whether this is a prerelease version.
Label
string DocVersion.Label { get; init; }
Display label (e.g., "v2.0").
Slug
string DocVersion.Slug { get; init; }
URL path segment for this version.
Methods
| Name | Description |
|---|---|
ToString() override |
Type Relationships
classDiagram
style DocVersion fill:#f9f,stroke:#333,stroke-width:2px
DocVersion ..|> DocVersion~ : implements
View Source
/// <summary>
/// Represents a specific version snapshot of the documentation.
/// </summary>
public sealed record DocVersion
{
/// <summary>Display label (e.g., "v2.0").</summary>
public required string Label { get; init; }
/// <summary>URL path segment for this version.</summary>
public required string Slug { get; init; }
/// <summary>Whether this is the default/latest version.</summary>
public bool IsDefault { get; init; }
/// <summary>Whether this is a prerelease version.</summary>
public bool IsPrerelease { get; init; }
/// <inheritdoc/>
public override string ToString() => $"DocVersion({Label})";
}