-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-plugin-location
- Loading branch information
Showing
50 changed files
with
1,551 additions
and
5,725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# VitePress build output & cache directory | ||
.vitepress/cache | ||
.vitepress/dist | ||
node_modules | ||
package.json | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nodejs 18.12.1 | ||
nodejs 20.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { defineConfig } from "vitepress"; | ||
import * as navbars from "./navbars"; | ||
import * as sidebars from "./sidebars"; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: "asdf", | ||
description: "Manage multiple runtime versions with a single CLI tool", | ||
lastUpdated: true, | ||
locales: { | ||
root: { | ||
label: "English", | ||
lang: "en-US", | ||
themeConfig: { | ||
nav: navbars.en, | ||
sidebar: sidebars.en, | ||
}, | ||
}, | ||
"pt-br": { | ||
label: "Brazilian Portuguese", | ||
lang: "pr-br", | ||
themeConfig: { | ||
nav: navbars.pt_br, | ||
sidebar: sidebars.pt_br, | ||
}, | ||
}, | ||
"zh-hans": { | ||
label: "简体中文", | ||
lang: "zh-hans", | ||
themeConfig: { | ||
nav: navbars.zh_hans, | ||
sidebar: sidebars.zh_hans, | ||
}, | ||
}, | ||
}, | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
search: { | ||
provider: "local", | ||
}, | ||
socialLinks: [ | ||
{ icon: "github", link: "https://github.com/asdf-vm/asdf" }, | ||
// { icon: "twitter", link: "https://twitter.com/asdf_vm" }, | ||
], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import path from "path"; | ||
import fs from "fs"; | ||
import process from "process"; | ||
|
||
export const getVersion = () => { | ||
const versionFilepath = path.join(__dirname, "../../version.txt"); | ||
try { | ||
const version = fs.readFileSync(versionFilepath, "utf8").trim(); | ||
console.log(`Found version ${version} from ${versionFilepath}`); | ||
return version; | ||
} catch (error) { | ||
console.error(`Failed to find version from file ${versionFilepath}`, error); | ||
process.exit(1); | ||
} | ||
}; | ||
|
||
const en = [ | ||
{ text: "Guide", link: "/guide/getting-started" }, | ||
{ | ||
text: "Reference", | ||
link: "/manage/configuration", | ||
}, | ||
{ | ||
text: getVersion(), | ||
items: [ | ||
{ | ||
text: "Changelog", | ||
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md", | ||
}, | ||
{ text: "Contribute", link: "/contribute/core" }, | ||
], | ||
}, | ||
]; | ||
|
||
const pt_br = [ | ||
{ text: "Guia", link: "/pt-br/guide/getting-started" }, | ||
{ | ||
text: "Referência", | ||
link: "/pt-br/manage/configuration", | ||
}, | ||
{ | ||
text: getVersion(), | ||
items: [ | ||
{ | ||
text: "Changelog", | ||
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md", | ||
}, | ||
{ text: "Contribute", link: "/pt-br/contribute/core" }, | ||
], | ||
}, | ||
]; | ||
|
||
const zh_hans = [ | ||
{ text: "指导", link: "/zh-hans/guide/getting-started" }, | ||
{ | ||
text: "参考", | ||
link: "/zh-hans/manage/configuration", | ||
}, | ||
{ | ||
text: getVersion(), | ||
items: [ | ||
{ | ||
text: "Changelog", | ||
link: "https://github.com/asdf-vm/asdf/blob/master/CHANGELOG.md", | ||
}, | ||
{ text: "如何贡献", link: "/zh-hans/contribute/core" }, | ||
], | ||
}, | ||
]; | ||
|
||
export { en, pt_br, zh_hans }; |
Oops, something went wrong.