Skip to content

Commit ef5780e

Browse files
committed
feat(website): add changelog section and update navigation links
1 parent 626332b commit ef5780e

File tree

4 files changed

+1350
-7
lines changed

4 files changed

+1350
-7
lines changed

scripts/update-website.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import fs from "node:fs";
2+
3+
const changelog = fs.readFileSync("CHANGELOG.md", "utf-8");
4+
5+
const changelogWithFrontmatter = [
6+
"---",
7+
"title: Changelog",
8+
"---",
9+
"",
10+
changelog,
11+
].join("\n");
12+
13+
fs.writeFileSync("website/content/docs/changelog.md", changelogWithFrontmatter);

website/app/layout.config.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export const baseOptions: BaseLayoutProps = {
2222
},
2323
links: [
2424
{
25-
text: "Documentation",
26-
url: "/docs",
25+
text: "Getting Started",
26+
url: "/docs/getting-started",
2727
active: "nested-url",
2828
},
2929
{
@@ -36,14 +36,14 @@ export const baseOptions: BaseLayoutProps = {
3636
url: "/docs/presets",
3737
active: "nested-url",
3838
},
39+
{
40+
text: "Changelog",
41+
url: "https://github.com/Rel1cx/eslint-react/releases",
42+
},
3943
{
4044
text: "Roadmap",
4145
url: "/docs/roadmap",
4246
active: "nested-url",
4347
},
44-
{
45-
text: "GitHub",
46-
url: "https://github.com/Rel1cx/eslint-react",
47-
},
4848
],
4949
};

0 commit comments

Comments
 (0)