chore: bump vuepress to latest beta (#1272)

* chore: bump nodejs version in tool-versions
* docs: bump vuepress to latest beta
This commit is contained in:
James Hegedus 2022-06-24 20:52:59 +10:00 committed by GitHub
parent a953095f14
commit f2d5d4890b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1634 additions and 3492 deletions

View File

@ -1 +1 @@
nodejs 16.4.2
nodejs 16.15.1

View File

@ -1,3 +1,10 @@
const { defaultTheme } = require("vuepress");
const { searchPlugin } = require("@vuepress/plugin-search");
const { shikiPlugin } = require("@vuepress/plugin-shiki");
const {
activeHeaderLinksPlugin,
} = require("@vuepress/plugin-active-header-links");
const navbar = require("./navbar");
const sidebar = require("./sidebar");
@ -8,21 +15,21 @@ module.exports = {
"/": {
lang: "en-US",
title: "asdf",
description: "Manage multiple runtime versions with a single CLI tool"
description: "Manage multiple runtime versions with a single CLI tool",
},
"/pt-br/": {
lang: "pt-br",
title: "asdf",
description: "Gerencie múltiplas versões com um simples CLI"
description: "Gerencie múltiplas versões com um simples CLI",
},
"/zh-hans/": {
lang: "zh-CN",
title: "asdf",
description: "管理多个运行环境版本的简单命令行工具"
}
description: "管理多个运行环境版本的简单命令行工具",
},
},
themeConfig: {
theme: defaultTheme({
// logo: "https://vuejs.org/images/logo.png",
repo: "asdf-vm/asdf",
docsBranch: "master",
@ -32,7 +39,7 @@ module.exports = {
selectLanguageName: "English",
sidebar: sidebar.en,
navbar: navbar.en,
editLinkText: "Edit this page"
editLinkText: "Edit this page",
},
"/pt-br/": {
selectLanguageName: "Brazilian Portuguese",
@ -42,7 +49,7 @@ module.exports = {
// 404 page
notFound: ["Parece que estamos perdido!"],
backToHome: "Voltar para a página inicial"
backToHome: "Voltar para a página inicial",
},
"/zh-hans/": {
selectLanguageName: "简体中文",
@ -53,28 +60,28 @@ module.exports = {
// 404 page
notFound: ["抱歉,您访问的页面不存在!"],
backToHome: "返回首页"
}
}
},
backToHome: "返回首页",
},
},
}),
plugins: [
[
"@vuepress/plugin-search",
{
locales: {
"/": {
placeholder: "Search"
},
"/pt-br/": {
placeholder: "Search"
},
"/zh-hans/": {
placeholder: "搜索"
}
}
}
],
["@vuepress/plugin-shiki", { theme: "monokai" }]
]
activeHeaderLinksPlugin(),
searchPlugin({
locales: {
"/": {
placeholder: "Search",
},
"/pt-br/": {
placeholder: "Search",
},
"/zh-hans/": {
placeholder: "搜索",
},
},
}),
shikiPlugin({
theme: "monokai",
}),
],
};

View File

@ -2,7 +2,7 @@ const en = [
{
text: "Getting Started",
link: "/guide/getting-started.html",
activeMatch: "/guide/"
activeMatch: "/guide/",
},
{
text: "Reference",
@ -17,11 +17,11 @@ const en = [
"/manage/commands.md",
{
text: "Changelog",
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md"
}
]
}
]
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md",
},
],
},
],
},
{
text: "Plugins",
@ -32,71 +32,71 @@ const en = [
"/plugins/create.md",
{
text: "GitHub Plugin Template",
link: "https://github.com/asdf-vm/asdf-plugin-template"
}
]
link: "https://github.com/asdf-vm/asdf-plugin-template",
},
],
},
{
text: "First Party Plugins",
children: [
{
text: "Elixir",
link: "https://github.com/asdf-vm/asdf-elixir"
link: "https://github.com/asdf-vm/asdf-elixir",
},
{
text: "Erlang",
link: "https://github.com/asdf-vm/asdf-erlang"
link: "https://github.com/asdf-vm/asdf-erlang",
},
{
text: "Node.js",
link: "https://github.com/asdf-vm/asdf-nodejs"
link: "https://github.com/asdf-vm/asdf-nodejs",
},
{
text: "Ruby",
link: "https://github.com/asdf-vm/asdf-ruby"
}
]
link: "https://github.com/asdf-vm/asdf-ruby",
},
],
},
{
text: "Community Plugins",
children: [
{
text: "asdf-community",
link: "https://github.com/asdf-community"
link: "https://github.com/asdf-community",
},
{
text: "GitHub Topics Search",
link: "https://github.com/topics/asdf-plugin"
}
]
link: "https://github.com/topics/asdf-plugin",
},
],
},
{
text: "Reference",
children: [
{
text: "Plugin Shortname Index",
link: "https://github.com/asdf-vm/asdf-plugins"
}
]
}
]
link: "https://github.com/asdf-vm/asdf-plugins",
},
],
},
],
},
{
text: "Contribute",
children: [
{
text: "Core",
children: ["/contribute/core.md", "/contribute/documentation.md"]
children: ["/contribute/core.md", "/contribute/documentation.md"],
},
{
text: "Plugins",
children: ["/contribute/first-party-plugins.md"]
children: ["/contribute/first-party-plugins.md"],
},
{
text: "CICD",
children: ["/contribute/github-actions.md"]
}
]
children: ["/contribute/github-actions.md"],
},
],
},
{
text: "Learn More",
@ -107,27 +107,27 @@ const en = [
"/learn-more/faq.md",
{
text: "GitHub Issues",
link: "https://github.com/asdf-vm/asdf/issues"
link: "https://github.com/asdf-vm/asdf/issues",
},
{
text: "StackOverflow Tag",
link: "https://stackoverflow.com/questions/tagged/asdf-vm"
}
]
link: "https://stackoverflow.com/questions/tagged/asdf-vm",
},
],
},
{
text: "Resources",
children: ["/learn-more/thanks.md"]
}
]
}
children: ["/learn-more/thanks.md"],
},
],
},
];
const pt_br = [
{
text: "Getting Started",
link: "/pt-br/guide/getting-started.html",
activeMatch: "/pt-br/guide/"
activeMatch: "/pt-br/guide/",
},
{
text: "Reference",
@ -142,11 +142,11 @@ const pt_br = [
"/pt-br/manage/commands.md",
{
text: "Alterações",
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md"
}
]
}
]
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md",
},
],
},
],
},
{
text: "Plugins",
@ -157,54 +157,54 @@ const pt_br = [
"/pt-br/plugins/create.md",
{
text: "GitHub Plugin Template",
link: "https://github.com/asdf-vm/asdf-plugin-template"
}
]
link: "https://github.com/asdf-vm/asdf-plugin-template",
},
],
},
{
text: "First Party Plugins",
children: [
{
text: "Elixir",
link: "https://github.com/asdf-vm/asdf-elixir"
link: "https://github.com/asdf-vm/asdf-elixir",
},
{
text: "Erlang",
link: "https://github.com/asdf-vm/asdf-erlang"
link: "https://github.com/asdf-vm/asdf-erlang",
},
{
text: "Node.js",
link: "https://github.com/asdf-vm/asdf-nodejs"
link: "https://github.com/asdf-vm/asdf-nodejs",
},
{
text: "Ruby",
link: "https://github.com/asdf-vm/asdf-ruby"
}
]
link: "https://github.com/asdf-vm/asdf-ruby",
},
],
},
{
text: "Community Plugins",
children: [
{
text: "asdf-community",
link: "https://github.com/asdf-community"
link: "https://github.com/asdf-community",
},
{
text: "GitHub Topics Search",
link: "https://github.com/topics/asdf-plugin"
}
]
link: "https://github.com/topics/asdf-plugin",
},
],
},
{
text: "Reference",
children: [
{
text: "Plugin Shortname Index",
link: "https://github.com/asdf-vm/asdf-plugins"
}
]
}
]
link: "https://github.com/asdf-vm/asdf-plugins",
},
],
},
],
},
{
text: "Contribute",
@ -213,18 +213,18 @@ const pt_br = [
text: "Core",
children: [
"/pt-br/contribute/core.md",
"/pt-br/contribute/documentation.md"
]
"/pt-br/contribute/documentation.md",
],
},
{
text: "Plugins",
children: ["/pt-br/contribute/first-party-plugins.md"]
children: ["/pt-br/contribute/first-party-plugins.md"],
},
{
text: "CICD",
children: ["/pt-br/contribute/github-actions.md"]
}
]
children: ["/pt-br/contribute/github-actions.md"],
},
],
},
{
text: "Learn More",
@ -235,27 +235,27 @@ const pt_br = [
"/pt-br/learn-more/faq.md",
{
text: "GitHub Issues",
link: "https://github.com/asdf-vm/asdf/issues"
link: "https://github.com/asdf-vm/asdf/issues",
},
{
text: "StackOverflow Tag",
link: "https://stackoverflow.com/questions/tagged/asdf-vm"
}
]
link: "https://stackoverflow.com/questions/tagged/asdf-vm",
},
],
},
{
text: "Resources",
children: ["/pt-br/learn-more/thanks.md"]
}
]
}
children: ["/pt-br/learn-more/thanks.md"],
},
],
},
];
const zh_hans = [
{
text: "快速上手",
link: "/zh-hans/guide/getting-started.html",
activeMatch: "/zh-hans/guide/"
activeMatch: "/zh-hans/guide/",
},
{
text: "参考",
@ -270,11 +270,11 @@ const zh_hans = [
"/zh-hans/manage/commands.md",
{
text: "更新日志",
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md"
}
]
}
]
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md",
},
],
},
],
},
{
text: "插件",
@ -285,54 +285,54 @@ const zh_hans = [
"/zh-hans/plugins/create.md",
{
text: "插件模板",
link: "https://github.com/asdf-vm/asdf-plugin-template"
}
]
link: "https://github.com/asdf-vm/asdf-plugin-template",
},
],
},
{
text: "官方插件",
children: [
{
text: "Elixir",
link: "https://github.com/asdf-vm/asdf-elixir"
link: "https://github.com/asdf-vm/asdf-elixir",
},
{
text: "Erlang",
link: "https://github.com/asdf-vm/asdf-erlang"
link: "https://github.com/asdf-vm/asdf-erlang",
},
{
text: "Node.js",
link: "https://github.com/asdf-vm/asdf-nodejs"
link: "https://github.com/asdf-vm/asdf-nodejs",
},
{
text: "Ruby",
link: "https://github.com/asdf-vm/asdf-ruby"
}
]
link: "https://github.com/asdf-vm/asdf-ruby",
},
],
},
{
text: "社区插件",
children: [
{
text: "asdf-community",
link: "https://github.com/asdf-community"
link: "https://github.com/asdf-community",
},
{
text: "GitHub 主题搜索",
link: "https://github.com/topics/asdf-plugin"
}
]
link: "https://github.com/topics/asdf-plugin",
},
],
},
{
text: "参考",
children: [
{
text: "插件缩写索引",
link: "https://github.com/asdf-vm/asdf-plugins"
}
]
}
]
link: "https://github.com/asdf-vm/asdf-plugins",
},
],
},
],
},
{
text: "如何贡献",
@ -341,18 +341,18 @@ const zh_hans = [
text: "核心",
children: [
"/zh-hans/contribute/core.md",
"/zh-hans/contribute/documentation.md"
]
"/zh-hans/contribute/documentation.md",
],
},
{
text: "插件",
children: ["/zh-hans/contribute/first-party-plugins.md"]
children: ["/zh-hans/contribute/first-party-plugins.md"],
},
{
text: "持续集成/持续部署",
children: ["/zh-hans/contribute/github-actions.md"]
}
]
children: ["/zh-hans/contribute/github-actions.md"],
},
],
},
{
text: "了解更多",
@ -363,20 +363,20 @@ const zh_hans = [
"/zh-hans/learn-more/faq.md",
{
text: "GitHub Issues",
link: "https://github.com/asdf-vm/asdf/issues"
link: "https://github.com/asdf-vm/asdf/issues",
},
{
text: "StackOverflow Tag",
link: "https://stackoverflow.com/questions/tagged/asdf-vm"
}
]
link: "https://stackoverflow.com/questions/tagged/asdf-vm",
},
],
},
{
text: "资源",
children: ["/zh-hans/learn-more/thanks.md"]
}
]
}
children: ["/zh-hans/learn-more/thanks.md"],
},
],
},
];
module.exports = { en, pt_br, zh_hans };

View File

@ -11,10 +11,10 @@ const en = {
"/manage/commands.md",
{
text: "Changelog",
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md"
}
]
}
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md",
},
],
},
],
"/plugins/": [
{
@ -23,49 +23,49 @@ const en = {
"/plugins/create.md",
{
text: "GitHub Plugin Template",
link: "https://github.com/asdf-vm/asdf-plugin-template"
}
]
link: "https://github.com/asdf-vm/asdf-plugin-template",
},
],
},
{
text: "First Party Plugins",
children: [
{
text: "Elixir",
link: "https://github.com/asdf-vm/asdf-elixir"
link: "https://github.com/asdf-vm/asdf-elixir",
},
{
text: "Erlang",
link: "https://github.com/asdf-vm/asdf-erlang"
link: "https://github.com/asdf-vm/asdf-erlang",
},
{
text: "Node.js",
link: "https://github.com/asdf-vm/asdf-nodejs"
link: "https://github.com/asdf-vm/asdf-nodejs",
},
{
text: "Ruby",
link: "https://github.com/asdf-vm/asdf-ruby"
}
]
link: "https://github.com/asdf-vm/asdf-ruby",
},
],
},
{
text: "Community Plugins",
children: [
{
text: "asdf-community",
link: "https://github.com/asdf-community/"
}
]
link: "https://github.com/asdf-community/",
},
],
},
{
text: "Reference",
children: [
{
text: "Plugin Shortname Index",
link: "https://github.com/asdf-vm/asdf-plugins"
}
]
}
link: "https://github.com/asdf-vm/asdf-plugins",
},
],
},
],
"/contribute/": [
{
@ -74,9 +74,9 @@ const en = {
"/contribute/core.md",
"/contribute/documentation.md",
"/contribute/first-party-plugins.md",
"/contribute/github-actions.md"
]
}
"/contribute/github-actions.md",
],
},
],
"/learn-more/": [
{
@ -86,25 +86,25 @@ const en = {
{
text: "GitHub Issues",
link: "https://github.com/asdf-vm/asdf/issues"
link: "https://github.com/asdf-vm/asdf/issues",
},
{
text: "StackOverflow Tag",
link: "https://stackoverflow.com/questions/tagged/asdf-vm"
}
]
link: "https://stackoverflow.com/questions/tagged/asdf-vm",
},
],
},
{
text: "Resources",
children: ["/learn-more/thanks.md"]
}
]
children: ["/learn-more/thanks.md"],
},
],
};
const pt_br = {
"/pt-br/guide/": [
"/pt-br/guide/introduction.md",
"/pt-br/guide/getting-started.md"
"/pt-br/guide/getting-started.md",
],
"/pt-br/manage/": [
{
@ -117,10 +117,10 @@ const pt_br = {
"/pt-br/manage/commands.md",
{
text: "Alterações",
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md"
}
]
}
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md",
},
],
},
],
"/pt-br/plugins/": [
{
@ -129,49 +129,49 @@ const pt_br = {
"/pt-br/plugins/create.md",
{
text: "GitHub Plugin Template",
link: "https://github.com/asdf-vm/asdf-plugin-template"
}
]
link: "https://github.com/asdf-vm/asdf-plugin-template",
},
],
},
{
text: "First Party Plugins",
children: [
{
text: "Elixir",
link: "https://github.com/asdf-vm/asdf-elixir"
link: "https://github.com/asdf-vm/asdf-elixir",
},
{
text: "Erlang",
link: "https://github.com/asdf-vm/asdf-erlang"
link: "https://github.com/asdf-vm/asdf-erlang",
},
{
text: "Node.js",
link: "https://github.com/asdf-vm/asdf-nodejs"
link: "https://github.com/asdf-vm/asdf-nodejs",
},
{
text: "Ruby",
link: "https://github.com/asdf-vm/asdf-ruby"
}
]
link: "https://github.com/asdf-vm/asdf-ruby",
},
],
},
{
text: "Community Plugins",
children: [
{
text: "asdf-community",
link: "https://github.com/asdf-community/"
}
]
link: "https://github.com/asdf-community/",
},
],
},
{
text: "Reference",
children: [
{
text: "Plugin Shortname Index",
link: "https://github.com/asdf-vm/asdf-plugins"
}
]
}
link: "https://github.com/asdf-vm/asdf-plugins",
},
],
},
],
"/pt-br/contribute/": [
{
@ -180,9 +180,9 @@ const pt_br = {
"/pt-br/contribute/core.md",
"/pt-br/contribute/documentation.md",
"/pt-br/contribute/first-party-plugins.md",
"/pt-br/contribute/github-actions.md"
]
}
"/pt-br/contribute/github-actions.md",
],
},
],
"/pt-br/learn-more/": [
{
@ -192,25 +192,25 @@ const pt_br = {
{
text: "GitHub Issues",
link: "https://github.com/asdf-vm/asdf/issues"
link: "https://github.com/asdf-vm/asdf/issues",
},
{
text: "StackOverflow Tag",
link: "https://stackoverflow.com/questions/tagged/asdf-vm"
}
]
link: "https://stackoverflow.com/questions/tagged/asdf-vm",
},
],
},
{
text: "Resources",
children: ["/pt-br/learn-more/thanks.md"]
}
]
children: ["/pt-br/learn-more/thanks.md"],
},
],
};
const zh_hans = {
"/zh-hans/guide/": [
"/zh-hans/guide/introduction.md",
"/zh-hans/guide/getting-started.md"
"/zh-hans/guide/getting-started.md",
],
"/zh-hans/manage/": [
{
@ -223,10 +223,10 @@ const zh_hans = {
"/zh-hans/manage/commands.md",
{
text: "更新日志",
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md"
}
]
}
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md",
},
],
},
],
"/zh-hans/plugins/": [
{
@ -235,53 +235,53 @@ const zh_hans = {
"/zh-hans/plugins/create.md",
{
text: "GitHub Plugin 模板",
link: "https://github.com/asdf-vm/asdf-plugin-template"
}
]
link: "https://github.com/asdf-vm/asdf-plugin-template",
},
],
},
{
text: "官方插件",
children: [
{
text: "Elixir",
link: "https://github.com/asdf-vm/asdf-elixir"
link: "https://github.com/asdf-vm/asdf-elixir",
},
{
text: "Erlang",
link: "https://github.com/asdf-vm/asdf-erlang"
link: "https://github.com/asdf-vm/asdf-erlang",
},
{
text: "Node.js",
link: "https://github.com/asdf-vm/asdf-nodejs"
link: "https://github.com/asdf-vm/asdf-nodejs",
},
{
text: "Ruby",
link: "https://github.com/asdf-vm/asdf-ruby"
}
]
link: "https://github.com/asdf-vm/asdf-ruby",
},
],
},
{
text: "社区插件",
children: [
{
text: "asdf-community",
link: "https://github.com/asdf-community/"
link: "https://github.com/asdf-community/",
},
{
text: "GitHub 主题搜索",
link: "https://github.com/topics/asdf-plugin"
}
]
link: "https://github.com/topics/asdf-plugin",
},
],
},
{
text: "参考",
children: [
{
text: "插件缩写索引",
link: "https://github.com/asdf-vm/asdf-plugins"
}
]
}
link: "https://github.com/asdf-vm/asdf-plugins",
},
],
},
],
"/zh-hans/contribute/": [
{
@ -290,9 +290,9 @@ const zh_hans = {
"/zh-hans/contribute/core.md",
"/zh-hans/contribute/documentation.md",
"/zh-hans/contribute/first-party-plugins.md",
"/zh-hans/contribute/github-actions.md"
]
}
"/zh-hans/contribute/github-actions.md",
],
},
],
"/zh-hans/learn-more/": [
{
@ -302,19 +302,19 @@ const zh_hans = {
{
text: "GitHub Issues",
link: "https://github.com/asdf-vm/asdf/issues"
link: "https://github.com/asdf-vm/asdf/issues",
},
{
text: "StackOverflow Tag",
link: "https://stackoverflow.com/questions/tagged/asdf-vm"
}
]
link: "https://stackoverflow.com/questions/tagged/asdf-vm",
},
],
},
{
text: "资源",
children: ["/zh-hans/learn-more/thanks.md"]
}
]
children: ["/zh-hans/learn-more/thanks.md"],
},
],
};
module.exports = { en, pt_br, zh_hans };

4634
docs/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,13 @@
{
"scripts": {
"dev": "vuepress-vite dev .",
"build": "vuepress-vite build .",
"dev": "vuepress dev .",
"build": "vuepress build .",
"format": "npx -y prettier --write '{.vuepress/{config,navbar,sidebar}.js,./**/*.md}'"
},
"devDependencies": {
"@vue/component-compiler-utils": "^3.2.2",
"@vuepress/plugin-back-to-top": "^2.0.0-beta.22",
"@vuepress/plugin-search": "^2.0.0-beta.22",
"@vuepress/plugin-shiki": "^2.0.0-beta.22",
"vuepress-vite": "^2.0.0-beta.22"
"@vuepress/plugin-active-header-links": "^2.0.0-beta.48",
"@vuepress/plugin-search": "^2.0.0-beta.48",
"@vuepress/plugin-shiki": "^2.0.0-beta.48",
"vuepress": "^2.0.0-beta.48"
}
}