chore: bump docs deps & use esm format (#1326)

This commit is contained in:
James Hegedus 2022-08-31 01:08:54 +10:00 committed by GitHub
parent 3208e2e75a
commit 733980f559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1661 additions and 1059 deletions

View File

@ -1,14 +1,14 @@
const { defaultTheme } = require("vuepress");
const { searchPlugin } = require("@vuepress/plugin-search");
const { shikiPlugin } = require("@vuepress/plugin-shiki");
const {
import { defaultTheme, defineUserConfig } from "vuepress";
import { searchPlugin } from "@vuepress/plugin-search";
import { shikiPlugin } from "@vuepress/plugin-shiki";
import {
activeHeaderLinksPlugin,
} = require("@vuepress/plugin-active-header-links");
} from "@vuepress/plugin-active-header-links";
const navbar = require("./navbar");
const sidebar = require("./sidebar");
import navbar from "./navbar";
import sidebar from "./sidebar";
module.exports = {
export default defineUserConfig({
base: "/",
head: [],
locales: {
@ -84,4 +84,4 @@ module.exports = {
theme: "monokai",
}),
],
};
});

View File

@ -379,4 +379,4 @@ const zh_hans = [
},
];
module.exports = { en, pt_br, zh_hans };
export default { en, pt_br, zh_hans };

View File

@ -317,4 +317,4 @@ const zh_hans = {
],
};
module.exports = { en, pt_br, zh_hans };
export default { en, pt_br, zh_hans };

2690
docs/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,9 +5,9 @@
"format": "npx -y prettier --write '{.vuepress/{config,navbar,sidebar}.js,./**/*.md}'"
},
"devDependencies": {
"@vuepress/plugin-active-header-links": "^2.0.0-beta.48",
"@vuepress/plugin-search": "^2.0.0-beta.49",
"@vuepress/plugin-shiki": "^2.0.0-beta.49",
"vuepress": "^2.0.0-beta.49"
"@vuepress/plugin-active-header-links": "^2.0.0-beta.51",
"@vuepress/plugin-search": "^2.0.0-beta.51",
"@vuepress/plugin-shiki": "^2.0.0-beta.51",
"vuepress": "^2.0.0-beta.51"
}
}