|
1 |
| -import { defineUserConfig } from "vuepress"; |
2 |
| -import { path } from "@vuepress/utils"; |
3 |
| -import theme from "./theme.js"; |
| 1 | +import { defineUserConfig } from 'vuepress'; |
| 2 | +import { path } from '@vuepress/utils'; |
| 3 | +import theme from './theme.js'; |
4 | 4 |
|
5 | 5 | export default defineUserConfig({
|
6 |
| - base: "/leetcode-js/", |
7 |
| - lang: "zh-CN", |
8 |
| - title: "LeetCode-JS", |
9 |
| - description: "写给前端工程师的算法通关指南.", |
10 |
| - // locales: { |
11 |
| - // "/": { |
12 |
| - // lang: "zh-CN", |
13 |
| - // title: "LeetCode-JS", |
14 |
| - // description: "写给前端工程师的算法通关指南.", |
15 |
| - // }, |
16 |
| - // "/en/": { |
17 |
| - // lang: "en-US", |
18 |
| - // title: "LeetCode-JS", |
19 |
| - // description: "Know Your Game", |
20 |
| - // }, |
21 |
| - // }, |
| 6 | + base: '/leetcode-js/', |
| 7 | + lang: 'zh-CN', |
| 8 | + title: 'LeetCode-JS', |
| 9 | + description: '写给前端工程师的算法通关指南.', |
| 10 | + // locales: { |
| 11 | + // "/": { |
| 12 | + // lang: "zh-CN", |
| 13 | + // title: "LeetCode-JS", |
| 14 | + // description: "写给前端工程师的算法通关指南.", |
| 15 | + // }, |
| 16 | + // "/en/": { |
| 17 | + // lang: "en-US", |
| 18 | + // title: "LeetCode-JS", |
| 19 | + // description: "Know Your Game", |
| 20 | + // }, |
| 21 | + // }, |
22 | 22 |
|
23 |
| - theme, |
24 |
| - alias: { |
25 |
| - // 你可以在这里将别名定向到自己的组件 |
26 |
| - "@theme-hope/modules/navbar/components/Navbar": path.resolve( |
27 |
| - __dirname, |
28 |
| - "./components/Navbar.vue" |
29 |
| - ), |
30 |
| - }, |
| 23 | + theme, |
| 24 | + alias: { |
| 25 | + // 你可以在这里将别名定向到自己的组件 |
| 26 | + '@theme-hope/modules/navbar/components/Navbar': path.resolve( |
| 27 | + __dirname, |
| 28 | + './components/Navbar.vue' |
| 29 | + ) |
| 30 | + } |
31 | 31 |
|
32 |
| - // Enable it with pwa |
33 |
| - // shouldPrefetch: false, |
| 32 | + // Enable it with pwa |
| 33 | + // shouldPrefetch: false, |
34 | 34 | });
|
0 commit comments