The pages configuration can be done on two levels :
- In the
project.config.js
- In the frontmatter of the pages
The project config file is mostly used to configure the pages in the sidebar and the frontmatter the page metadata.
Project.config.js
definition
The page config is made thru the exported pages
object.
pages
The pages array defining the pages of the documentation.
page
A single page definition of the documentation.
The name of the icon (https://icon-sets.iconify.design/ ). See also page.icon .
page.icon
The icon can be a string as said above but for more customisability, it can also be define like so.
The name of the icon (https://icon-sets.iconify.design/ ).
Frontmatter definition
You can add and change properties of a page by adding them to the frontmatter at the start of the page.
Just a reminder that the frontmatter properties are included between three dashes : ---
(see definition )
Frontmatter
The list of props of the frontmatter.