Intro
This page contains information pertaining the configuration of the graph itself, if you are looking for ways to configure the sitemap, see the sitemap configuration.
The graph config can be set in three different ways, each overriding the previous one:
import starlight from '@astrojs/starlight'import { defineConfig } from 'astro/config'import starlightSiteGraph from 'starlight-site-graph'export default defineConfig({ integrations: [ starlight({ plugins: [starlightSiteGraph({ graphConfig: { // Global graph configuration } })], }), ],})
---title: My Page graph: visible: true config: ...---
My page content goes here!
---title: My Page---
import { Graph, PageGraph } from 'starlight-site-graph/components';
This page contains two different graphs: <Graph sitemap={{...}} config={{...}} slug="my-page/" /> <PageGraph config={{...}}/>