From 025233d837d54de54086e15537564fe4e4982842 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 20 Apr 2024 22:18:50 +0100 Subject: [PATCH] update path for docs --- documentation/landing.md | 4 ++-- src/app/(pages)/{documentation => docs}/[[...slug]]/page.tsx | 4 ++-- src/app/(pages)/page.tsx | 2 +- src/app/components/navbar.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/app/(pages)/{documentation => docs}/[[...slug]]/page.tsx (93%) diff --git a/documentation/landing.md b/documentation/landing.md index bd930e8..4980a24 100644 --- a/documentation/landing.md +++ b/documentation/landing.md @@ -11,8 +11,8 @@ This is still a work in progress, so please be patient as we continue to add mor We offer a few different libraries for different languages to help you get started with the Minecraft Utilities plugin. -- [Java](/documentation/libraries/java) -- [JavaScript](/documentation/libraries/javascript) +- [Java](/docs/libraries/java) +- [JavaScript](/docs/libraries/javascript) ## API diff --git a/src/app/(pages)/documentation/[[...slug]]/page.tsx b/src/app/(pages)/docs/[[...slug]]/page.tsx similarity index 93% rename from src/app/(pages)/documentation/[[...slug]]/page.tsx rename to src/app/(pages)/docs/[[...slug]]/page.tsx index 732d987..a309709 100644 --- a/src/app/(pages)/documentation/[[...slug]]/page.tsx +++ b/src/app/(pages)/docs/[[...slug]]/page.tsx @@ -65,7 +65,7 @@ export default function Page({ params: { slug } }: DocumentationPageParams) { - Home + Home {slugParts.map((slug, index, array) => { const path = array.slice(0, index + 1).join("/"); @@ -74,7 +74,7 @@ export default function Page({ params: { slug } }: DocumentationPageParams) { <> - {capitalizeFirstLetter(slug)} + {capitalizeFirstLetter(slug)} ); diff --git a/src/app/(pages)/page.tsx b/src/app/(pages)/page.tsx index bddcbe1..d80593f 100644 --- a/src/app/(pages)/page.tsx +++ b/src/app/(pages)/page.tsx @@ -38,7 +38,7 @@ const buttons: Button[] = [ { title: "Get Started", tooltip: "Click to get started with the API", - url: "/documentation", + url: "/docs", className: "bg-gradient-to-r from-indigo-600 to-emerald-600 px-7 hover:opacity-75 transition-all transform-gpu text-white", }, diff --git a/src/app/components/navbar.tsx b/src/app/components/navbar.tsx index f0cdeac..1f7cabe 100644 --- a/src/app/components/navbar.tsx +++ b/src/app/components/navbar.tsx @@ -38,7 +38,7 @@ const pages: Page[] = [ { name: "Server", url: "/server/java" }, { name: "Mojang", url: "/mojang/status" }, { name: "API", url: "https://api.mcutils.xyz", hideOnMobile: true, openInNewTab: true }, - { name: "Docs", url: "/documentation" }, + { name: "Docs", url: "/docs" }, ]; export default function NavBar(): ReactElement {