From 522eb397f0562aa45802ee5d0f1982ed64e0bbe8 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:57:00 +0400 Subject: [PATCH] Remove StarlightLayout and update sidebar configuration Deleted StarlightLayout.astro file and removed its references in various markdown files. Also, extended the sidebar configuration in the astro.config.mjs to include translations and added menu items under the Tools & Equipment section. --- astro.config.mjs | 14 +++++++++++++- .../docs/en/advanced/technical-specifications.mdx | 1 - .../docs/en/construction/custom-solutions.mdx | 1 - .../docs/en/construction/project-planning.mdx | 1 - src/content/docs/en/construction/safety.mdx | 1 - .../docs/en/construction/service-overview.mdx | 1 - .../docs/en/guides/first-project-checklist.mdx | 1 - src/content/docs/en/guides/getting-started.mdx | 1 - src/content/docs/en/guides/intro.mdx | 1 - src/content/docs/en/tools/equipment-care.mdx | 1 - src/content/docs/en/tools/tool-guides.mdx | 1 - src/content/docs/en/welcome-to-docs.mdx | 1 - src/layouts/StarlightLayout.astro | 13 ------------- 13 files changed, 13 insertions(+), 25 deletions(-) delete mode 100644 src/layouts/StarlightLayout.astro diff --git a/astro.config.mjs b/astro.config.mjs index 9610104..d7ac878 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -30,14 +30,26 @@ export default defineConfig({ ja: { label: "日本語", lang: "ja" }, "zh-cn": { label: "简体中文", lang: "zh-CN" }, }, + // https://starlight.astro.build/guides/sidebar/ sidebar: [ { label: "Quick Start Guides", + translations: { + de: "Schnellstartanleitungen", + es: "Guías de Inicio Rápido", + fa: "راهنمای شروع سریع", + fr: "Guides de Démarrage Rapide", + ja: "クイックスタートガイド", + "zh-cn": "快速入门指南", + }, autogenerate: { directory: "guides" }, }, { label: "Tools & Equipment", - autogenerate: { directory: "tools" }, + items: [ + { label: "Tool Guides", link: "tools/tool-guides/" }, + { label: "Equipment Care", link: "tools/equipment-care/" }, + ], }, { label: "Construction Services", diff --git a/src/content/docs/en/advanced/technical-specifications.mdx b/src/content/docs/en/advanced/technical-specifications.mdx index 3fdc791..9f81266 100644 --- a/src/content/docs/en/advanced/technical-specifications.mdx +++ b/src/content/docs/en/advanced/technical-specifications.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Technical Specifications description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/construction/custom-solutions.mdx b/src/content/docs/en/construction/custom-solutions.mdx index d68eac9..13d7941 100644 --- a/src/content/docs/en/construction/custom-solutions.mdx +++ b/src/content/docs/en/construction/custom-solutions.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Custom Solutions for Complex Projects description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/construction/project-planning.mdx b/src/content/docs/en/construction/project-planning.mdx index 8ea9e71..bf2d3cc 100644 --- a/src/content/docs/en/construction/project-planning.mdx +++ b/src/content/docs/en/construction/project-planning.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Project Planning and Management description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/construction/safety.mdx b/src/content/docs/en/construction/safety.mdx index ab2fa0e..3055d1a 100644 --- a/src/content/docs/en/construction/safety.mdx +++ b/src/content/docs/en/construction/safety.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Safety Protocols and Procedures description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/construction/service-overview.mdx b/src/content/docs/en/construction/service-overview.mdx index c3ec729..88dd963 100644 --- a/src/content/docs/en/construction/service-overview.mdx +++ b/src/content/docs/en/construction/service-overview.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Comprehensive Service Overview description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/guides/first-project-checklist.mdx b/src/content/docs/en/guides/first-project-checklist.mdx index 349c9dc..dcc2325 100644 --- a/src/content/docs/en/guides/first-project-checklist.mdx +++ b/src/content/docs/en/guides/first-project-checklist.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: First Project Checklist description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/guides/getting-started.mdx b/src/content/docs/en/guides/getting-started.mdx index 60cfbdc..cba5798 100644 --- a/src/content/docs/en/guides/getting-started.mdx +++ b/src/content/docs/en/guides/getting-started.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Getting Started description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/guides/intro.mdx b/src/content/docs/en/guides/intro.mdx index 7e2f2ef..1b69296 100644 --- a/src/content/docs/en/guides/intro.mdx +++ b/src/content/docs/en/guides/intro.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Introduction to ScrewFast Services description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/tools/equipment-care.mdx b/src/content/docs/en/tools/equipment-care.mdx index bf6526d..18e0e9d 100644 --- a/src/content/docs/en/tools/equipment-care.mdx +++ b/src/content/docs/en/tools/equipment-care.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Equipment Care & Maintenance description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/tools/tool-guides.mdx b/src/content/docs/en/tools/tool-guides.mdx index e8046e4..5feab80 100644 --- a/src/content/docs/en/tools/tool-guides.mdx +++ b/src/content/docs/en/tools/tool-guides.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../../layouts/StarlightLayout.astro title: Tool Guides description: Explore ScrewFast's comprehensive documentation for an in-depth look at our premium tools and construction services. sidebar: diff --git a/src/content/docs/en/welcome-to-docs.mdx b/src/content/docs/en/welcome-to-docs.mdx index 74c651b..26348a2 100644 --- a/src/content/docs/en/welcome-to-docs.mdx +++ b/src/content/docs/en/welcome-to-docs.mdx @@ -1,5 +1,4 @@ --- -layout: ../../../layouts/StarlightLayout.astro title: ScrewFast Docs head: - tag: title diff --git a/src/layouts/StarlightLayout.astro b/src/layouts/StarlightLayout.astro deleted file mode 100644 index dd6c8eb..0000000 --- a/src/layouts/StarlightLayout.astro +++ /dev/null @@ -1,13 +0,0 @@ ---- -// Importing View Transitions component -import { ViewTransitions } from "astro:transitions"; ---- - - - - - - - - -