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 5d1bee7
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import { sidebar as sidebarZh } from "./locale/zh";
import * as path from "path";

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

locales: {
root: {
label: "English",
Expand Down Expand Up @@ -51,13 +57,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 5d1bee7

Please sign in to comment.