From 4312f6eb33abcf365e74e5942dd4aa014d2c5c77 Mon Sep 17 00:00:00 2001 From: Jonas List Date: Tue, 29 Jul 2025 13:00:27 +0200 Subject: [PATCH] Restructure contribute documentation and redirects --- content/docs/contribute/docs/index.mdx | 2 +- .../{contributing.mdx => index.mdx} | 0 content/docs/contribute/meta.json | 1 - content/docs/contribute/translation.mdx | 2 +- content/docs/contribute/www.mdx | 2 +- content/docs/index.mdx | 2 +- .../contribute/contributing/page.tsx | 5 +++++ .../(redirects)/guides/building/page.tsx | 5 +++++ src/app/guides/building/page.tsx | 11 ----------- src/components/Redirect.tsx | 19 +++++++++++++++++++ 10 files changed, 33 insertions(+), 16 deletions(-) rename content/docs/contribute/{contributing.mdx => index.mdx} (100%) create mode 100644 src/app/(docs)/(redirects)/contribute/contributing/page.tsx create mode 100644 src/app/(docs)/(redirects)/guides/building/page.tsx delete mode 100644 src/app/guides/building/page.tsx create mode 100644 src/components/Redirect.tsx diff --git a/content/docs/contribute/docs/index.mdx b/content/docs/contribute/docs/index.mdx index a1cc231..e4d730a 100644 --- a/content/docs/contribute/docs/index.mdx +++ b/content/docs/contribute/docs/index.mdx @@ -118,7 +118,7 @@ Your pull request will be reviewed by the maintainers, and you may be asked to m - [Zen Browser Documentation Repository](https://github.com/zen-browser/docs) - [Fumadocs Documentation](https://fumadocs.vercel.app/docs/ui) -- [Contribution Guidelines](/contribute/contributing) +- [Contribution Guidelines](/contribute) - [Code of Conduct](/contribute/code-of-conduct) - [Editing with VS Code](/contribute/docs/editing-with-vscode) diff --git a/content/docs/contribute/contributing.mdx b/content/docs/contribute/index.mdx similarity index 100% rename from content/docs/contribute/contributing.mdx rename to content/docs/contribute/index.mdx diff --git a/content/docs/contribute/meta.json b/content/docs/contribute/meta.json index c3fd1b4..2babc5c 100644 --- a/content/docs/contribute/meta.json +++ b/content/docs/contribute/meta.json @@ -2,7 +2,6 @@ "title": "Contribute", "icon": "GitMerge", "pages": [ - "contributing", "..." ] } \ No newline at end of file diff --git a/content/docs/contribute/translation.mdx b/content/docs/contribute/translation.mdx index 6e0ba7e..fd52fa2 100644 --- a/content/docs/contribute/translation.mdx +++ b/content/docs/contribute/translation.mdx @@ -57,7 +57,7 @@ Crowdin allows you to track the progress of the translation project and stay upd - [Zen Browser Translation Project on Crowdin](https://crowdin.com/project/zen-browser) - [Crowdin Documentation](https://support.crowdin.com/) -- [Contribution Guidelines](/contribute/contributing) +- [Contribution Guidelines](/contribute) - [Code of Conduct](/contribute/code-of-conduct) --- diff --git a/content/docs/contribute/www.mdx b/content/docs/contribute/www.mdx index 1197913..07fea92 100644 --- a/content/docs/contribute/www.mdx +++ b/content/docs/contribute/www.mdx @@ -108,7 +108,7 @@ Your pull request will be reviewed by the maintainers, and you may be asked to m ## Additional Resources - [Zen Browser Homepage Repository](https://github.com/zen-browser/www) -- [Contribution Guidelines](/contribute/contributing) +- [Contribution Guidelines](/contribute) - [Code of Conduct](/contribute/code-of-conduct) --- diff --git a/content/docs/index.mdx b/content/docs/index.mdx index bff9609..ff4f199 100644 --- a/content/docs/index.mdx +++ b/content/docs/index.mdx @@ -63,7 +63,7 @@ Welcome to **Zen Browser's Documentation!** Here, you'll find everything you nee } title="Contribute" - href="/contribute/contributing" + href="/contribute" description="How to contribute to the project" /> diff --git a/src/app/(docs)/(redirects)/contribute/contributing/page.tsx b/src/app/(docs)/(redirects)/contribute/contributing/page.tsx new file mode 100644 index 0000000..f373348 --- /dev/null +++ b/src/app/(docs)/(redirects)/contribute/contributing/page.tsx @@ -0,0 +1,5 @@ +import Redirect from "@/components/Redirect"; + +export default function BuildingRedirect() { + return ; +} diff --git a/src/app/(docs)/(redirects)/guides/building/page.tsx b/src/app/(docs)/(redirects)/guides/building/page.tsx new file mode 100644 index 0000000..eb17225 --- /dev/null +++ b/src/app/(docs)/(redirects)/guides/building/page.tsx @@ -0,0 +1,5 @@ +import Redirect from "@/components/Redirect"; + +export default function BuildingRedirect() { + return ; +} diff --git a/src/app/guides/building/page.tsx b/src/app/guides/building/page.tsx deleted file mode 100644 index 6059b93..0000000 --- a/src/app/guides/building/page.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import Link from 'next/link'; - -export default function BuildingRedirect() { - return ( - <> - - -

Redirecting to new documentation location...

- - ); -} diff --git a/src/components/Redirect.tsx b/src/components/Redirect.tsx new file mode 100644 index 0000000..300baf7 --- /dev/null +++ b/src/components/Redirect.tsx @@ -0,0 +1,19 @@ +import Link from "next/link"; + +interface RedirectProps { + to: string; + message?: string; +} + +export default function Redirect({ to, message }: RedirectProps) { + return ( + <> + + +

+ {message || "Redirecting to"}{" "} + new documentation location... +

+ + ); +}