diff --git a/src/components/Navigation/Navigation.astro b/src/components/Navigation/Navigation.astro index 2a5bd898..73920474 100644 --- a/src/components/Navigation/Navigation.astro +++ b/src/components/Navigation/Navigation.astro @@ -16,6 +16,7 @@ interface Props { | CollectionEntry<"modes"> | CollectionEntry<"snapshot"> | CollectionEntry<"collaborate"> + | CollectionEntry<"plugins"> | CollectionEntry<"ci"> | CollectionEntry<"account"> )[]; diff --git a/src/content/config.ts b/src/content/config.ts index d23f88df..bfc5b420 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -37,6 +37,11 @@ const collaborate = defineCollection({ schema, }); +const plugins = defineCollection({ + type: "content", + schema, +}); + const ci = defineCollection({ type: "content", schema, @@ -53,6 +58,7 @@ export const collections = { modes, snapshot, collaborate, + plugins, ci, account, }; diff --git a/src/content/collaborate/figma-in-chromatic.md b/src/content/plugins/figma-in-chromatic.md similarity index 98% rename from src/content/collaborate/figma-in-chromatic.md rename to src/content/plugins/figma-in-chromatic.md index 0f585f04..59dd9ff6 100644 --- a/src/content/collaborate/figma-in-chromatic.md +++ b/src/content/plugins/figma-in-chromatic.md @@ -2,7 +2,7 @@ layout: "../../layouts/Layout.astro" title: Figma in Chromatic description: View Figma components next to their stories in Chromatic -sidebar: { order: 5 } +sidebar: { order: 3 } --- # Figma in Chromatic diff --git a/src/content/collaborate/figma-plugin.md b/src/content/plugins/figma-plugin.md similarity index 99% rename from src/content/collaborate/figma-plugin.md rename to src/content/plugins/figma-plugin.md index b3528714..f18fc502 100644 --- a/src/content/collaborate/figma-plugin.md +++ b/src/content/plugins/figma-plugin.md @@ -2,7 +2,7 @@ layout: "../../layouts/Layout.astro" title: Figma Plugin description: Connect stories to variants -sidebar: { order: 4 } +sidebar: { order: 2 } --- # Figma plugin diff --git a/src/content/configuration/visual-testing-addon.md b/src/content/plugins/visual-testing-addon.md similarity index 99% rename from src/content/configuration/visual-testing-addon.md rename to src/content/plugins/visual-testing-addon.md index 1effeb7f..9b23a252 100644 --- a/src/content/configuration/visual-testing-addon.md +++ b/src/content/plugins/visual-testing-addon.md @@ -2,7 +2,7 @@ layout: "../../layouts/Layout.astro" title: Visual Tests addon for Storybook (beta) description: Configure Storybook to test UIs with the Visual Tests Addon -sidebar: { order: 16, label: Addon for Storybook (beta) } +sidebar: { order: 1, label: Addon for Storybook (beta) } --- # Visual Tests addon for Storybook diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index c0208030..fbebca77 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -25,6 +25,7 @@ const configuration = await getCollection("configuration"); const modes = await getCollection("modes"); const snapshot = await getCollection("snapshot"); const collaborate = await getCollection("collaborate"); +const plugins = await getCollection("plugins"); const ci = await getCollection("ci"); const account = await getCollection("account"); @@ -52,6 +53,10 @@ const navItems = [ title: "Collaborate", items: collaborate, }, + { + title: "Plugins", + items: plugins, + }, { title: "CI", items: ci, diff --git a/src/pages/[slug].astro b/src/pages/[slug].astro index 75fb7efa..1323f162 100644 --- a/src/pages/[slug].astro +++ b/src/pages/[slug].astro @@ -10,6 +10,7 @@ export async function getStaticPaths() { const modes = await getCollection("modes"); const snapshot = await getCollection("snapshot"); const collaborate = await getCollection("collaborate"); + const plugins = await getCollection("plugins"); const ci = await getCollection("ci"); const account = await getCollection("account"); const notInNavigation = await getCollection("notInNavigation"); @@ -19,6 +20,7 @@ export async function getStaticPaths() { ...modes, ...snapshot, ...collaborate, + ...plugins, ...ci, ...account, ...notInNavigation,