Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models

Syntax

Summary

Represents a version configuration for global navigation in the Mintlify documentation site.

Remarks

This configuration defines a version option that appears globally across all sections and pages, allowing users to switch between different versions of the documentation.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Default

Gets or sets whether this version is the default version for the documentation.

Syntax

Property Value

Type: bool?

Remarks

When true, this version will be selected by default when users first visit the documentation. Only one version should be marked as default.

Directory

Gets or sets the directory layout for this version.

Syntax

Property Value

Type: string?

Remarks

Valid values are none, accordion, and card.

Hidden

Gets or sets whether this version option is hidden by default.

Syntax

Property Value

Type: bool?

Remarks

When true, this version option will not be visible in the version selector unless specifically shown. This can be useful for versions that are deprecated, in development, or not ready for public access.

Href

Gets or sets the URL or path for this version of the documentation.

Syntax

Property Value

Type: string?

Remarks

Specifies where users should be directed when they select this version. Can be a relative path (e.g., “/v2/”) or an absolute URL for a different domain (e.g., “https://v2.docs.example.com/”).

Sdk

Gets or sets the SDK documentation artifact used to auto-populate pages.

Syntax

Property Value

Type: Mintlify.Core.Models.SdkRefConfig?

Tag

Gets or sets a short tag shown on the version selector.

Syntax

Property Value

Type: string?

Remarks

Badge label displayed next to the version, such as Latest, Recommended, or Beta.

Thumbnail

Gets or sets thumbnail overrides for this version.

Syntax

Property Value

Type: Mintlify.Core.Models.NavThumbnailConfig?

Version

Gets or sets the version identifier or name.

Syntax

Property Value

Type: string

Remarks

Specifies the version name that will be displayed to users, such as “v1.0”, “v2.0”, “latest”, “beta”, or any descriptive version label. This should be concise and meaningful to your users. This is a required field.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?