Overview
The “Demo” group visible in the sidebar contains various links to different changelog pages generated by the Starlight Changelogs plugin using different providers.
Starlight
Section titled “Starlight”The Starlight demo sidebar group contains links to the version list and the latest version pages generated for the Starlight changelog.
The changelog is based on a snapshot of the Starlight changelog generated using the Changesets provider and a copy of the Starlight CHANGELOG.md
file.
The following changelogsLoader()
configuration is used to load the Starlight changelog:
changelogsLoader([ { provider: 'changeset', base: 'demo/starlight', changelog: '../path/to/starlight/CHANGELOG.md', title: 'Starlight Changelog', },])
The associated sidebar links are generated using the makeChangelogsSidebarLinks()
helper function:
sidebar: [ { label: 'Starlight', items: [ ...makeChangelogsSidebarLinks([ { type: 'all', base: 'demo/starlight', label: 'Changelog', }, { type: 'latest', base: 'demo/starlight', label: 'Latest version', }, ]), ], },]
Starlight Blog
Section titled “Starlight Blog”The Starlight Blog groups contains links to the 5 most recent versions of the Starlight Blog plugin changelog generated using the GitHub provider.
The following changelogsLoader()
configuration is used to load the Starlight Blog plugin changelog:
changelogsLoader([ { provider: 'github', base: 'demo/starlight-blog', owner: 'hideoo', repo: 'starlight-blog', title: 'Starlight Blog Changelog', },])
The associated sidebar links are generated using the makeChangelogsSidebarLinks()
helper function:
sidebar: [ { label: 'Starlight Blog', items: [ ...makeChangelogsSidebarLinks([ { type: 'recent', base: 'demo/starlight-blog', }, ]), ], },]