Skip to content

Commit 4d0fa4f

Browse files
authored
Restructure contribute documentation and redirects (#213)
1 parent 163a31e commit 4d0fa4f

File tree

10 files changed

+33
-16
lines changed

10 files changed

+33
-16
lines changed

content/docs/contribute/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Your pull request will be reviewed by the maintainers, and you may be asked to m
118118

119119
- [Zen Browser Documentation Repository](https://github.com/zen-browser/docs)
120120
- [Fumadocs Documentation](https://fumadocs.vercel.app/docs/ui)
121-
- [Contribution Guidelines](/contribute/contributing)
121+
- [Contribution Guidelines](/contribute)
122122
- [Code of Conduct](/contribute/code-of-conduct)
123123
- [Editing with VS Code](/contribute/docs/editing-with-vscode)
124124

File renamed without changes.

content/docs/contribute/meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "Contribute",
33
"icon": "GitMerge",
44
"pages": [
5-
"contributing",
65
"..."
76
]
87
}

content/docs/contribute/translation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Crowdin allows you to track the progress of the translation project and stay upd
5757

5858
- [Zen Browser Translation Project on Crowdin](https://crowdin.com/project/zen-browser)
5959
- [Crowdin Documentation](https://support.crowdin.com/)
60-
- [Contribution Guidelines](/contribute/contributing)
60+
- [Contribution Guidelines](/contribute)
6161
- [Code of Conduct](/contribute/code-of-conduct)
6262

6363
---

content/docs/contribute/www.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Your pull request will be reviewed by the maintainers, and you may be asked to m
108108
## Additional Resources
109109

110110
- [Zen Browser Homepage Repository](https://github.com/zen-browser/www)
111-
- [Contribution Guidelines](/contribute/contributing)
111+
- [Contribution Guidelines](/contribute)
112112
- [Code of Conduct](/contribute/code-of-conduct)
113113

114114
---

content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Welcome to **Zen Browser's Documentation!** Here, you'll find everything you nee
6363
<Card
6464
icon={<HeartIcon />}
6565
title="Contribute"
66-
href="/contribute/contributing"
66+
href="/contribute"
6767
description="How to contribute to the project"
6868
/>
6969
</Cards>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Redirect from "@/components/Redirect";
2+
3+
export default function BuildingRedirect() {
4+
return <Redirect to="/contribute" />;
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Redirect from "@/components/Redirect";
2+
3+
export default function BuildingRedirect() {
4+
return <Redirect to="/contribute/desktop" />;
5+
}

src/app/guides/building/page.tsx

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/components/Redirect.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import Link from "next/link";
2+
3+
interface RedirectProps {
4+
to: string;
5+
message?: string;
6+
}
7+
8+
export default function Redirect({ to, message }: RedirectProps) {
9+
return (
10+
<>
11+
<meta httpEquiv="refresh" content={`2;url=${to}`} />
12+
<link rel="canonical" href={to} />
13+
<p className="m-auto">
14+
{message || "Redirecting to"}{" "}
15+
<Link href={to}>new documentation location</Link>...
16+
</p>
17+
</>
18+
);
19+
}

0 commit comments

Comments
 (0)