···11+import node from "@astrojs/node";
12import starlight from "@astrojs/starlight";
33+import starlightPluginsDocsComponents from "@trueberryless-org/starlight-plugins-docs-components";
24import { defineConfig } from "astro/config";
33-import starlightSidebarTopicsDropdown from "starlight-sidebar-topics-dropdown";
45import starlightLinksValidator from "starlight-links-validator";
55-import starlightPluginsDocsComponents from "@trueberryless-org/starlight-plugins-docs-components";
66import starlightPluginShowLatestVersion from "starlight-plugin-show-latest-version";
77-88-import node from "@astrojs/node";
77+import starlightSidebarTopicsDropdown from "starlight-sidebar-topics-dropdown";
98109export default defineConfig({
1110 integrations: [
+1-1
docs/src/content.config.ts
···11-import { defineCollection } from "astro:content";
21import { docsLoader } from "@astrojs/starlight/loaders";
32import { docsSchema } from "@astrojs/starlight/schema";
33+import { defineCollection } from "astro:content";
44import { topicSchema } from "starlight-sidebar-topics-dropdown/schema";
5566export const collections = {
···88 type StarlightSidebarTopicsDropdownUserConfig,
99} from "./libs/config";
1010import { throwPluginError } from "./libs/plugin";
1111-import { vitePluginStarlightSidebarTopicsDropdown } from "./libs/vite";
1211import { overrideStarlightComponent } from "./libs/starlight";
1212+import { vitePluginStarlightSidebarTopicsDropdown } from "./libs/vite";
13131414export type {
1515 StarlightSidebarTopicsDropdownConfig,
···11import type { StarlightRouteData } from "@astrojs/starlight/route-data";
22+23import type { TopicFrontmatterSchema } from "../schema";
44+35export function isStarlightEntryWithTopic(
46 entry: StarlightEntry
57): entry is StarlightEntryWithTopic {
···11import type { StarlightRouteData } from "@astrojs/starlight/route-data";
2233import type { StarlightSidebarTopicsDropdownSharedConfig } from "./config";
44-import { isStarlightEntryWithTopic, type StarlightEntry } from "./content";
44+import { type StarlightEntry, isStarlightEntryWithTopic } from "./content";
55import { getLocaleFromSlug, getLocalizedSlug } from "./i18n";
66import { arePathnamesEqual, stripLeadingAndTrailingSlashes } from "./pathname";
77
···11---
22-import Default from '@astrojs/starlight/components/Sidebar.astro'
33-import StarlightSidebarTopicsDropdownSidebar from '../components/starlight/Sidebar.astro'
22+import Default from "@astrojs/starlight/components/Sidebar.astro";
33+import StarlightSidebarTopicsDropdownSidebar from "../components/starlight/Sidebar.astro";
44---
5566<StarlightSidebarTopicsDropdownSidebar />
···11import { z } from "astro/zod";
22+23export const topicSchema = z.object({
34 /**
45 * ID of the topic to associate with the current page if the page is not listed in any topic sidebar configuration.