From 3be55e7c81bee422eeb2ba70d8fd1ca4172921ba Mon Sep 17 00:00:00 2001 From: xHyroM Date: Sat, 3 Jun 2023 17:34:56 +0200 Subject: [PATCH] refactor: move docs into docs/ root folder --- astro.config.ts | 1 + .../discord-experiments-api/experiments.md | 1 - .../discord-experiments-api/introduction.md | 1 - src/components/widgets/docs/LeftSidebar.astro | 1 - .../widgets/docs/RightSidebar.astro | 6 ++-- src/layouts/docs/ItemLayout.astro | 6 ++-- src/pages/docs/[category]/[id].astro | 29 +++++++++++++++++++ tsconfig.json | 1 + 8 files changed, 38 insertions(+), 8 deletions(-) rename {src/pages/docs => docs}/discord-experiments-api/experiments.md (99%) rename {src/pages/docs => docs}/discord-experiments-api/introduction.md (96%) create mode 100644 src/pages/docs/[category]/[id].astro diff --git a/astro.config.ts b/astro.config.ts index 535d681..f86c114 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -48,6 +48,7 @@ export default defineConfig({ resolve: { alias: { "~": resolve(__dirname, "./src"), + "@docs": resolve(__dirname, "./docs"), "@pages": resolve(__dirname, "./src/pages"), "@assets": resolve(__dirname, "./src/assets"), "@scripts": resolve(__dirname, "./src/scripts"), diff --git a/src/pages/docs/discord-experiments-api/experiments.md b/docs/discord-experiments-api/experiments.md similarity index 99% rename from src/pages/docs/discord-experiments-api/experiments.md rename to docs/discord-experiments-api/experiments.md index 662b393..ebc7304 100644 --- a/src/pages/docs/discord-experiments-api/experiments.md +++ b/docs/discord-experiments-api/experiments.md @@ -1,7 +1,6 @@ --- title: Experiments description: How to fetch experiments from the API -layout: ../../../layouts/docs/ItemLayout.astro --- # Experiments diff --git a/src/pages/docs/discord-experiments-api/introduction.md b/docs/discord-experiments-api/introduction.md similarity index 96% rename from src/pages/docs/discord-experiments-api/introduction.md rename to docs/discord-experiments-api/introduction.md index 4976ac4..7bbbd87 100644 --- a/src/pages/docs/discord-experiments-api/introduction.md +++ b/docs/discord-experiments-api/introduction.md @@ -1,7 +1,6 @@ --- title: Introduction description: Introduction to the Discord Experiments API -layout: ../../../layouts/docs/ItemLayout.astro --- # Introduction diff --git a/src/components/widgets/docs/LeftSidebar.astro b/src/components/widgets/docs/LeftSidebar.astro index 5f783ca..63a575f 100644 --- a/src/components/widgets/docs/LeftSidebar.astro +++ b/src/components/widgets/docs/LeftSidebar.astro @@ -34,7 +34,6 @@ const getLinkClasses = (link: Sidebar) => { /> -