Skip to content

Commit

Permalink
📝 docs: update some contents
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Feb 3, 2025
1 parent c826f96 commit 5f8ded3
Show file tree
Hide file tree
Showing 14 changed files with 431 additions and 202 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint-and-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,31 @@ jobs:
working-directory: packages/biliass/rust
run: |
cargo clippy --all-targets --all-features -- -D warnings
lint-and-fmt-docs:
name: Lint and Format (Docs)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Lint and Format' step
Uses Step
uses 'pnpm/action-setup' with ref 'v2', not a pinned commit hash
with:
package_json_file: "docs/package.json"
version: "latest"

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
cache: "pnpm"
cache-dependency-path: "docs/pnpm-lock.yaml"

- name: Install dependencies
working-directory: ./docs
run: pnpm i --frozen-lockfile

- name: Format check
working-directory: ./docs
run: pnpm fmt:check

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
2 changes: 1 addition & 1 deletion .github/workflows/vitepress-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
node-version: "22"
cache: "pnpm"
cache-dependency-path: "docs/pnpm-lock.yaml"

Expand Down
74 changes: 68 additions & 6 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,31 +1,89 @@
import { defineConfig } from 'vitepress'

export default defineConfig({
lang: 'zh-CN',
title: 'yutto',
description: 'yutto docs',
description: '🧊 yutto,一个可爱且任性的 B 站下载器(CLI)',
cleanUrls: true,
themeConfig: {
nav: [
{ text: '首页', link: '/' },
{ text: '指引', link: '/guide/quick-start.html' },
{ text: '指南', link: '/guide/quick-start' },
{ text: '参考', link: '/reference/cli' },
{ text: '迁移', link: '/migration/' },
{
text: '支持我',
items: [
{ text: '赞助', link: '/sponsor' },
{
text: '参与贡献',
link: 'https://github.com/yutto-dev/yutto/blob/main/CONTRIBUTING.md',
},
],
},
],

sidebar: {
'/guide': [
{
text: '',
text: '开始',
items: [
{
text: '快速开始',
link: '/guide/quick-start.html',
link: '/guide/quick-start',
},
{
text: '支持的链接',
link: '/guide/supported-links.html',
link: '/guide/supported-links',
},
],
collapsed: false,
},
{
text: 'FAQ',
link: '/guide/faq',
},
{
text: '交流和反馈',
link: '/guide/feedback',
},
{
text: '注意事项',
link: '/guide/notice',
},
{
text: '特别感谢',
link: '/guide/thanks',
},
],
'/reference': [
{
text: '参考',
items: [
{
text: '命令行参数',
link: '/guide/cli.html',
link: '/reference/cli',
},
{
text: '配置',
link: '/reference/config',
},
{
text: '详细参数',
items: [
{
text: '基础参数',
link: '/reference/arguments-basic',
},
{
text: '批量参数',
link: '/reference/arguments-batch',
},
{
text: '弹幕参数',
link: '/reference/arguments-danmaku',
},
],
},
],
},
Expand All @@ -46,5 +104,9 @@ export default defineConfig({
{ icon: 'github', link: 'https://github.com/yutto-dev/yutto' },
{ icon: 'discord', link: 'https://discord.gg/5cQGyFwsqC' },
],

search: {
provider: 'local',
},
},
})
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--vp-c-brand-1: #31b1b1;
--vp-c-brand-2: #29c5ca;
--vp-c-brand-3: #67e8e2;
--vp-c-brand-soft:#29c9cf33;
--vp-c-brand-soft: #29c9cf33;
}

/**
Expand Down
82 changes: 41 additions & 41 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,44 @@

## 内容规划<sup>WIP</sup>

- 主页

- 引导 button 主要是分为「从零开始」和「从 bilili 迁移」,未来可能添加 GitHub button
- features

- 指引

- 引导页 引导到
- 安装
- 参数
- 迁移
- 下载安装
- 安装引导,使用 button 引导三种主要的安装方式,注意,要更加详细,安装这一步应当确保大家都做好
- 包管理器安装
- docker 安装
- pip 安装
- 源码安装
- 使用
- 基础运作方式(并简单引导如何使用参数),链接到参数详情页
- 支持的链接
- FAQ
- 交流和反馈
- 注意事项
- 特别感谢

- 参数专用页

- 类似 Vue new docs 的 API page,引导页对各种内容进行罗列,分为「通用参数」……
- 各个子页面

- 从 bilili 迁移

- 比当前 README 里更细致,详细说明引导 + 示例

- 前往
- V1
- 画外音(这里是创作 bilili 及 yutto 的一些历程吧,以我自己的口吻叙述,也为可能是最后的 yutto 作结)
- 奇妙的轮回(bilili 与 download-webhook)
- 支持我
- 贡献
- 赞助
- 主页

- 引导 button 主要是分为「从零开始」和「从 bilili 迁移」,未来可能添加 GitHub button
- features

- 指引

- 引导页 引导到
- 安装
- 参数
- 迁移
- 下载安装
- 安装引导,使用 button 引导三种主要的安装方式,注意,要更加详细,安装这一步应当确保大家都做好
- 包管理器安装
- docker 安装
- pip 安装
- 源码安装
- 使用
- 基础运作方式(并简单引导如何使用参数),链接到参数详情页
- 支持的链接
- FAQ
- 交流和反馈
- 注意事项
- 特别感谢

- 参数专用页

- 类似 Vue new docs 的 API page,引导页对各种内容进行罗列,分为「通用参数」……
- 各个子页面

- 从 bilili 迁移

- 比当前 README 里更细致,详细说明引导 + 示例

- 前往
- V1
- 画外音(这里是创作 bilili 及 yutto 的一些历程吧,以我自己的口吻叙述,也为可能是最后的 yutto 作结)
- 奇妙的轮回(bilili 与 download-webhook)
- 支持我
- 贡献
- 赞助
Empty file added docs/guide/config.md
Empty file.
Loading

0 comments on commit 5f8ded3

Please sign in to comment.