doc: update docs/uv.md #972 #967

This commit is contained in:
小弟调调
2025-06-06 23:02:26 +08:00
parent e97857cb7e
commit b833cb0981
3 changed files with 14 additions and 11 deletions

View File

@ -193,6 +193,7 @@ Quick Reference
[.NET CLI](./docs/dotnet-cli.md)<!--rehype:style=background: rgb(16 185 129);&class=contributing tag&data-lang=#C-->
[Find](./docs/find.md)<!--rehype:style=background: rgb(16 185 129);-->
[FFmpeg](./docs/ffmpeg.md)<!--rehype:style=background: rgb(0 193 9);&class=contributing-->
[FTP](./docs/ftp.md)<!--rehype:style=background: rgb(99 99 99);-->
[Gdb](./docs/gdb.md)<!--rehype:style=background: rgb(215 89 62);-->
[Glances](./docs/glances.md)<!--rehype:style=background: rgb(16 185 129);-->
[Grep](./docs/grep.md)<!--rehype:style=background: rgb(16 185 129);-->
@ -217,7 +218,7 @@ Quick Reference
[tar](./docs/tar.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=解压缩-->
[Yazi](./docs/yazi.md)<!--rehype:style=background: rgb(255 165 0);&class=tag&data-lang=文件管理器;&class=contributing-->
[Zip](./docs/zip.md)<!--rehype:style=background: rgb(99 99 99);&class=tag&data-lang=解压缩-->
[FTP](./docs/ftp.md)<!--rehype:style=background: rgb(99 99 99);-->
[uv](./docs/uv.md)<!--rehype:style=background: rgb(99 99 99);&class=tag&data-lang=解压缩-->
<!--rehype:class=home-card-->
## 工具

View File

@ -1,3 +1,3 @@
<svg width="41" height="41" viewBox="0 0 41 41" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M-5.28619e-06 0.168629L0.0843098 20.1685L0.151762 36.1683C0.161075 38.3774 1.95947 40.1607 4.16859 40.1514L20.1684 40.084L30.1684 40.0418L31.1852 40.0375C33.3877 40.0282 35.1683 38.2026 35.1683 36V36L37.0003 36L37.0003 39.9992L40.1683 39.9996L39.9996 -9.94653e-07L21.5998 0.0775689L21.6774 16.0185L21.6774 25.9998L20.0774 25.9998L18.3998 25.9998L18.4774 16.032L18.3998 0.0910593L-5.28619e-06 0.168629Z" fill="#DE5FE9"/>
<path d="M-5.28619e-06 0.168629L0.0843098 20.1685L0.151762 36.1683C0.161075 38.3774 1.95947 40.1607 4.16859 40.1514L20.1684 40.084L30.1684 40.0418L31.1852 40.0375C33.3877 40.0282 35.1683 38.2026 35.1683 36V36L37.0003 36L37.0003 39.9992L40.1683 39.9996L39.9996 -9.94653e-07L21.5998 0.0775689L21.6774 16.0185L21.6774 25.9998L20.0774 25.9998L18.3998 25.9998L18.4774 16.032L18.3998 0.0910593L-5.28619e-06 0.168629Z" fill="currentColor" />
</svg>

Before

Width:  |  Height:  |  Size: 531 B

After

Width:  |  Height:  |  Size: 537 B

View File

@ -7,6 +7,7 @@ uv 备忘清单
---
### 使用独立安装程序安装
<!--rehype:wrap-class=col-span-2-->
#### macOS or Linux
@ -51,19 +52,20 @@ uv init
```sh
.
├── .venv # 项目的虚拟环境
│ ├── bin
│ ├── lib
│ └── pyvenv.cfg
├── .python-version # 项目的 Python 版本
├── README.md
├── main.py
├── pyproject.toml # 项目的元数据
└── uv.lock # 项目的锁定文件, 用于锁定依赖版本,不应手动编辑
├── .venv/ # 虚拟环境目录
│ ├── bin/ # 可执行文件
│ ├── lib/ # 安装的库
│ └── pyvenv.cfg # 虚拟环境配置
├── .python-version # 指定 Python 版本
├── README.md # 项目说明文档
├── main.py # 主程序入口
├── pyproject.toml # 项目配置与依赖声明
└── uv.lock # 依赖锁定文件(自动生成)
```
### 管理项目依赖
<!--rehype:wrap-class=row-span-2-->
#### 添加依赖
```sh