Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Oct 1, 2024
1 parent dd90591 commit 28c591b
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
8 changes: 8 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
23 changes: 23 additions & 0 deletions src/content/docs/guides/conda.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: Docs for Conda Mode
description: Installs SDK through Conda.
---

import {Aside } from '@astrojs/starlight/components';

<Aside type="caution" title="Note">
When an SDK is not supported by VMR, but available in [Conda-Forge](https://conda-forge.org/packages/),
You can install the SDK using commands below. But you need to add Envs manually according to the hints from VMR.
</Aside>

## Search versions through Conda

```bash
vmr search -c sdk-name
```

## Install a version through Conda

```bash
vmr use -c sdk-name@version
```
3 changes: 3 additions & 0 deletions src/content/docs/starts/sdklist.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
<LinkCard title="typst-preview" href="https://enter-tainer.github.io/typst-preview/" />
<LinkCard title="upx" href="https://upx.github.io/" />
<LinkCard title="vhs" href="https://github.com/charmbracelet/vhs" />
<LinkCard title="vhs" href="https://wasmedge.org/" />
<LinkCard title="vhs" href="https://wasmer.io/" />
<LinkCard title="vhs" href="https://wasmtime.dev/" />
</CardGrid>
23 changes: 23 additions & 0 deletions src/content/docs/zh-cn/guides/conda.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: Conda方式教程
description: 在命令行模式下直接使用Conda安装SDK.
---

import {Aside } from '@astrojs/starlight/components';

<Aside type="caution" title="Note">
当VMR不支持某个SDK,而[Conda-Forge](https://conda-forge.org/packages/)支持了该SDK时,使用本方法可以进行该SDK的版本安装和管理。
但无法自动添加环境变量。用户可以根据提示,手动添加环境变量到vmr.sh。
</Aside>

## 通过Conda搜索可安装版本

```bash
vmr search -c sdk-name
```

## 通过Conda安装VMR为支持的SDK

```bash
vmr use -c sdk-name@version
```
3 changes: 3 additions & 0 deletions src/content/docs/zh-cn/starts/sdklist.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
<LinkCard title="typst-preview" href="https://enter-tainer.github.io/typst-preview/" />
<LinkCard title="upx" href="https://upx.github.io/" />
<LinkCard title="vhs" href="https://github.com/charmbracelet/vhs" />
<LinkCard title="vhs" href="https://wasmedge.org/" />
<LinkCard title="vhs" href="https://wasmer.io/" />
<LinkCard title="vhs" href="https://wasmtime.dev/" />
</CardGrid>

0 comments on commit 28c591b

Please sign in to comment.