Skip to content

Commit

Permalink
clean url
Browse files Browse the repository at this point in the history
fix vercel
  • Loading branch information
Bluemangoo committed Feb 7, 2024
1 parent d62c38f commit e6ab63b
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import { sidebar as sidebarZh } from "./locale/zh";
import * as path from "path";

export default defineConfig({
rewrites: {
"file(.*)/index.md": ":file/index.md",
":file(.*).md": ":file/index.md"
},

locales: {
root: {
label: "English",
Expand Down Expand Up @@ -51,13 +56,18 @@ export default defineConfig({

markdown: {
math: true,
languages: [{
id: "whirlscript",
scopeName: "source.whirlscript",
displayName: "WhirlScript",
aliases: ["wrs"],
path: path.resolve(__dirname, "extension/languages/whirlscript.tmLanguage.json")
}]
languages: [
{
id: "whirlscript",
scopeName: "source.whirlscript",
displayName: "WhirlScript",
aliases: ["wrs"],
path: path.resolve(
__dirname,
"extension/languages/whirlscript.tmLanguage.json"
)
}
]
},

sitemap: {
Expand Down

0 comments on commit e6ab63b

Please sign in to comment.