From 28c591be853ea196a1b781975f6c1047e04a42a6 Mon Sep 17 00:00:00 2001 From: moqsien Date: Tue, 1 Oct 2024 15:15:47 +0800 Subject: [PATCH] docs --- astro.config.mjs | 8 ++++++++ src/content/docs/guides/conda.mdx | 23 +++++++++++++++++++++++ src/content/docs/starts/sdklist.mdx | 3 +++ src/content/docs/zh-cn/guides/conda.mdx | 23 +++++++++++++++++++++++ src/content/docs/zh-cn/starts/sdklist.mdx | 3 +++ 5 files changed, 60 insertions(+) create mode 100644 src/content/docs/guides/conda.mdx create mode 100644 src/content/docs/zh-cn/guides/conda.mdx diff --git a/astro.config.mjs b/astro.config.mjs index e7744d4..597cf58 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -82,6 +82,14 @@ export default defineConfig({ "en":"Docs For CLI", }, }, + { + label:"CondaDocs", + link:"/guides/conda/", + translations:{ + "zh-CN":"Conda相关", + "en":"Conda Related", + }, + }, { label:"FAQs", link:"/guides/faq/", diff --git a/src/content/docs/guides/conda.mdx b/src/content/docs/guides/conda.mdx new file mode 100644 index 0000000..5054109 --- /dev/null +++ b/src/content/docs/guides/conda.mdx @@ -0,0 +1,23 @@ +--- +title: Docs for Conda Mode +description: Installs SDK through Conda. +--- + +import {Aside } from '@astrojs/starlight/components'; + + + +## Search versions through Conda + +```bash +vmr search -c sdk-name +``` + +## Install a version through Conda + +```bash +vmr use -c sdk-name@version +``` diff --git a/src/content/docs/starts/sdklist.mdx b/src/content/docs/starts/sdklist.mdx index 6662165..421c12b 100644 --- a/src/content/docs/starts/sdklist.mdx +++ b/src/content/docs/starts/sdklist.mdx @@ -113,4 +113,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components'; + + + diff --git a/src/content/docs/zh-cn/guides/conda.mdx b/src/content/docs/zh-cn/guides/conda.mdx new file mode 100644 index 0000000..44099c7 --- /dev/null +++ b/src/content/docs/zh-cn/guides/conda.mdx @@ -0,0 +1,23 @@ +--- +title: Conda方式教程 +description: 在命令行模式下直接使用Conda安装SDK. +--- + +import {Aside } from '@astrojs/starlight/components'; + + + +## 通过Conda搜索可安装版本 + +```bash +vmr search -c sdk-name +``` + +## 通过Conda安装VMR为支持的SDK + +```bash +vmr use -c sdk-name@version +``` diff --git a/src/content/docs/zh-cn/starts/sdklist.mdx b/src/content/docs/zh-cn/starts/sdklist.mdx index 17510f5..e0d42c7 100644 --- a/src/content/docs/zh-cn/starts/sdklist.mdx +++ b/src/content/docs/zh-cn/starts/sdklist.mdx @@ -112,4 +112,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components'; + + +