Graph
This page discusses how you can use frontmatter to configure how the <PageGraph />
component renders the graph for this page.
Visibility
The visible
frontmatter key allows you to explicitly show or hide the graph view for a page,
when using the <PageGraph />
component.
Graph will be revealed in the page.
Graph will not be revealed in the page.
Node Style
The nodeStyle
frontmatter key allows you to specify the style of the node corresponding to this page in the graph.
Any style defined in Node Style can be used here.
This will override any and all other styles applied to the node.
A regular, unstyled node.
Node with a custom color.
Node with a square shape and a 45 degree rotation.
Other Config
You can also override any of the global graph settings using the frontmatter of a page.
Specifically, any of the graph configuration options can be set in the frontmatter of a page,
except for the prefetchPages
and visiblityRules
options.
Unchanged graph.
Graph with the fullscreen action specified for this page.
Graph with an initial scale of 0.6.