Skip to content

Graph

This page provides information on how you can configure the graph component in the sidebar.

General configuration

To configure the graph component in the sidebar, refer to the Starlight Site Graph graph configuration for more information.

Examples

Some common examples are provided below to showcase how you might configure the graph component in the sidebar.

Disable the graph on every page

astro.config.mjs
import starlight from '@astrojs/starlight'
import { defineConfig } from 'astro/config'
import starlightThemeObsidian from 'starlight-theme-obsidian'
export default defineConfig({
integrations: [
starlight({
plugins: [starlightThemeObsidian({
graphConfig: {
visibilityRules: []
}
})],
title: 'My Docs',
}),
],
})

Remove all quick actions from graph

astro.config.mjs
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',
}),
],
})