Graph
This page provides information on how you can configure the graph component.
Render
Section titled “Render”If you want to disable the graph component, you can do so by setting graph
to false
in the plugin settings.
import starlight from '@astrojs/starlight'import { defineConfig } from 'astro/config'import starlightThemeObsidian from 'starlight-theme-obsidian'
export default defineConfig({ integrations: [ starlight({ plugins: [starlightThemeObsidian({ graph: false })], title: 'My Docs', }), ],})
Component configuration
Section titled “Component configuration”For configuration of the graph component itself, check out the Starlight Site Graph graph configuration.
Examples
Section titled “Examples”Make the current node larger
Section titled “Make the current node larger”import starlight from '@astrojs/starlight'import { defineConfig } from 'astro/config'import starlightThemeObsidian from 'starlight-theme-obsidian'
export default defineConfig({ integrations: [ starlight({ plugins: [starlightThemeObsidian({ graphConfig: { nodeCurrentStyle: { shapeSize: 25 } } })], title: 'My Docs', }), ],})
Remove all quick actions from graph
Section titled “Remove all quick actions from graph”import starlight from '@astrojs/starlight'import { defineConfig } from 'astro/config'import starlightThemeObsidian from 'starlight-theme-obsidian'
export default defineConfig({ integrations: [ starlight({ plugins: [starlightThemeObsidian({ graphConfig: { actions: [] } })], title: 'My Docs', }), ],})