Skip to content

Commit 359f3c0

Browse files
committed
Update: fix VuePress configuration
1 parent 0d99903 commit 359f3c0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/.vuepress/config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default defineUserConfig({
1010
base: "/modern-cpp-primer/",
1111

1212
locales: {
13+
"/": {}, // 绕过vuepress的bug
1314
"/en/": {
1415
lang: "en-US",
1516
title: "Modern C++ Primer",
@@ -24,10 +25,13 @@ export default defineUserConfig({
2425
registerComponentsPlugin({
2526
components: {
2627
Choices: path.resolve(__dirname, "./components/Choices.vue"),
27-
ShikiRenderer: path.resolve(__dirname, "./components/ShikiRenderer.vue"),
28+
ShikiRenderer: path.resolve(
29+
__dirname,
30+
"./components/ShikiRenderer.vue"
31+
),
2832
DecOctHex: path.resolve(__dirname, "./components/DecOctHex.vue"),
2933
Binary32: path.resolve(__dirname, "./components/Binary32.vue"),
30-
}
34+
},
3135
}),
32-
]
36+
],
3337
});

0 commit comments

Comments
 (0)