Getting Started
An opinionated Starlight plugin to split your documentation into different sections, called topics, each with its own sidebar.
Topics represent either a section of your documentation with its own sidebar configuration or a direct link to a specific URL, such as an external resource. Topics are listed above the default Starlight sidebar links and can be used to navigate between different sections of your documentation.
Prerequisites
You will need to have a Starlight website set up. If you don’t have one yet, you can follow the “Getting Started” guide in the Starlight docs to create one.
Installation
-
Starlight Sidebar Topics is a Starlight plugin. Install it using your favorite package manager:
-
Configure the plugin in your Starlight configuration in the
astro.config.mjs
file by specifying an array of topics each with its own sidebar configuration.The following example shows how to configure two new topics named “Guides” and “Reference” linking to the
/guides/
and/reference/
pages respectively with their own sidebar configuration: -
Start the development server to preview the changes.
The Starlight Sidebar Topics plugin behavior can be tweaked using various topic configuration options.