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"); import { defaultTheme, defineUserConfig } from "vuepress";
const { searchPlugin } = require("@vuepress/plugin-search"); import { searchPlugin } from "@vuepress/plugin-search";
const { shikiPlugin } = require("@vuepress/plugin-shiki"); import { shikiPlugin } from "@vuepress/plugin-shiki";
const { import {
activeHeaderLinksPlugin, activeHeaderLinksPlugin,
} = require("@vuepress/plugin-active-header-links"); } from "@vuepress/plugin-active-header-links";
const navbar = require("./navbar"); import navbar from "./navbar";
const sidebar = require("./sidebar"); import sidebar from "./sidebar";
module.exports = { export default defineUserConfig({
base: "/", base: "/",
head: [], head: [],
locales: { locales: {
@ -84,4 +84,4 @@ module.exports = {
theme: "monokai", 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}'" "format": "npx -y prettier --write '{.vuepress/{config,navbar,sidebar}.js,./**/*.md}'"
}, },
"devDependencies": { "devDependencies": {
"@vuepress/plugin-active-header-links": "^2.0.0-beta.48", "@vuepress/plugin-active-header-links": "^2.0.0-beta.51",
"@vuepress/plugin-search": "^2.0.0-beta.49", "@vuepress/plugin-search": "^2.0.0-beta.51",
"@vuepress/plugin-shiki": "^2.0.0-beta.49", "@vuepress/plugin-shiki": "^2.0.0-beta.51",
"vuepress": "^2.0.0-beta.49" "vuepress": "^2.0.0-beta.51"
} }
} }