configuration
API version: Next (unreleased).
Interfaces
DocsConfig
Extended by
Properties
apiNavigation?
optionalapiNavigation?:Group[]
basePath?
optionalbasePath?:string
components?
optionalcomponents?:string
Project-relative module exporting a default MDX component map.
copyright?
optionalcopyright?:string
description
description:
string
favicon?
optionalfavicon?:ThemeAsset
footerLinks?
optionalfooterLinks?:FooterLink[]
homepage?
optionalhomepage?:string
Project-relative module exporting a default React homepage.
image?
optionalimage?:string
imageAlt?
optionalimageAlt?:string
lang?
optionallang?:string
links?
optionallinks?:NavLink[]
logo?
optionallogo?:ThemeAsset
name
name:
string
navigation
navigation:
Group[]
og?
optionalog?:false|OgImageConfig
Automatic 1200 × 630 social image. Set false to disable generation.
pages?
optionalpages?:Record<string,string>
Static routes mapped to project-relative modules exporting a default React page.
repository?
optionalrepository?:string
styles?
optionalstyles?:string[]
Project-relative CSS files, loaded after the built-in styles.
title?
optionaltitle?:string
url
url:
string
Public origin, e.g. https://example.com.
versioning?
optionalversioning?:false|VersioningConfig
Enable documentation snapshots and a version selector.
OgImageConfig
Properties
description?
optionaldescription?:string
footer?
optionalfooter?:string
highlight?
optionalhighlight?:string
logo?
optionallogo?:string|false
Local public asset URL. Defaults to the site's light logo.
title?
optionaltitle?:string
ResolvedDocsConfig
Extends
Properties
apiNavigation
apiNavigation:
Group[]
Overrides
basePath
basePath:
string
Overrides
components?
optionalcomponents?:string
Project-relative module exporting a default MDX component map.
Inherited from
copyright
copyright:
string
Overrides
description
description:
string
Inherited from
favicon?
optionalfavicon?:ThemeAsset
Inherited from
footerLinks
footerLinks:
FooterLink[]
Overrides
homepage?
optionalhomepage?:string
Project-relative module exporting a default React homepage.
Inherited from
image?
optionalimage?:string
Inherited from
imageAlt?
optionalimageAlt?:string
Inherited from
lang
lang:
string
Overrides
links
links:
NavLink[]
Overrides
logo?
optionallogo?:ThemeAsset
Inherited from
name
name:
string
Inherited from
navigation
navigation:
Group[]
Inherited from
og
og:
false|OgImageConfig
Automatic 1200 × 630 social image. Set false to disable generation.
Overrides
pages?
optionalpages?:Record<string,string>
Static routes mapped to project-relative modules exporting a default React page.
Inherited from
repository?
optionalrepository?:string
Inherited from
styles?
optionalstyles?:string[]
Project-relative CSS files, loaded after the built-in styles.
Inherited from
title
title:
string
Overrides
url
url:
string
Public origin, e.g. https://example.com.
Inherited from
versioning
versioning:
false|Required<VersioningConfig>
Enable documentation snapshots and a version selector.
Overrides
TocItem
Properties
depth
depth:
number
id
id:
string
title
title:
string
VersioningConfig
Properties
currentLabel?
optionalcurrentLabel?:string
defaultVersion?
optionaldefaultVersion?:"latest"|"next"
Type Aliases
FooterLink
FooterLink =
NavLink&object
Type Declaration
icon?
optionalicon?:string
Group
Group =
object
Properties
items
items:
Item[]
label
label:
string
Item
NavLink
NavLink =
object
Properties
href
href:
string
label
label:
string
ThemeAsset
ThemeAsset =
string| {dark:string;light:string; }
Functions
defineDocs()
defineDocs(
config):ResolvedDocsConfig
Parameters
config
Returns
flattenNavigation()
flattenNavigation(
items):NavLink[]
Parameters
items
Item[]
Returns
NavLink[]
normalizeBasePath()
normalizeBasePath(
path?):string
Parameters
path?
string = "/"
Returns
string
pagePath()
pagePath(
path):string
Preserve assets, external URLs, queries and fragments.
Parameters
path
string
Returns
string
withBasePath()
withBasePath(
path,basePath):string
Parameters
path
string
basePath
string
Returns
string
References
DocumentCollection
Re-exports DocumentCollection
DocumentModule
Re-exports DocumentModule
DocumentRecord
Re-exports DocumentRecord
MetadataValues
Re-exports MetadataValues