Skip to content

Commit 629db28

Browse files
committed
Enable Clean URLs to remove index and .html from paths
1 parent f8b6563 commit 629db28

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/_meta.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
},
77
{
88
"text": "Config",
9-
"link": "/config/",
9+
"link": "/config",
1010
"activeMatch": "/config"
1111
},
1212
{
1313
"text": "ADR",
14-
"link": "/adr/index",
14+
"link": "/adr",
1515
"activeMatch": "/adr"
1616
},
1717
{
1818
"text": "Blog",
19-
"link": "/blog/index",
19+
"link": "/blog",
2020
"activeMatch": "/blog"
2121
},
2222
{
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"text": "Contribute",
29-
"link": "/contribute/index",
29+
"link": "/contribute",
3030
"activeMatch": "/contribute"
3131
}
3232
]

rspress.config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export default defineConfig({
1111
light: "/logo-long-light.png",
1212
dark: "/logo-long-dark.png",
1313
},
14+
route: {
15+
cleanUrls: true,
16+
},
1417
themeConfig: {
1518
outlineTitle: "Table of Contents",
1619
lastUpdated: true,

0 commit comments

Comments
 (0)