Docs
PagePage
A page in your documentation
Page is the base element of a documentation, it includes Table of contents, Footer, and Breadcrumb.
Usage
Pass table of contents to the component.
Note: Footer is not enabled by default
Table of Contents
It is an array with all the headings in your document. For Markdown or MDX documents, You can parse TOC by using the TOC Utility.
Also, you can easily customise or disable TOC in your documentation.
Prop | Type | Default |
---|---|---|
enabled | boolean | true |
component | ReactNode | - |
header | ReactNode | - |
footer | ReactNode | - |
Last Update Time
Since you might have different version controls (e.g. Github) or it's from remote sources like Sanity, Next Docs UI doesn't display last updated time by default.
For Git hosted documents, you can use
getGitLastEditTime
provided by Next Docs
Zeta.
Footer
You need to manually enable it by passing the previous and next page to the
footer
prop.
To obtain these pages, it's recommended to use the Get Neighbours Utility.
Prop | Type | Default |
---|---|---|
next | object | - |
previous | object | - |
Example
Breadcrumb
For now, You can't control the behaviours of breadcrumb.
Prop | Type | Default |
---|---|---|
enabled | boolean | true |
component | ReactNode | - |
Last updated on