From 4a638fce77626adf5a099dd811adbd6d8cd43305 Mon Sep 17 00:00:00 2001 From: Sakana Date: Mon, 27 Jan 2025 22:48:30 +0800 Subject: [PATCH] docs(github_releases): update docs --- docs/guide/drivers/github_releases.md | 131 +++++++++++++++++++++++ docs/zh/guide/drivers/github_releases.md | 129 ++++++++++++++++++++++ 2 files changed, 260 insertions(+) create mode 100644 docs/guide/drivers/github_releases.md create mode 100644 docs/zh/guide/drivers/github_releases.md diff --git a/docs/guide/drivers/github_releases.md b/docs/guide/drivers/github_releases.md new file mode 100644 index 0000000000..d0476f04a5 --- /dev/null +++ b/docs/guide/drivers/github_releases.md @@ -0,0 +1,131 @@ +--- +# This is the icon of the page +icon: iconfont icon-state +# This control sidebar order +order: 41 +# A page can have multiple categories +category: + - Guide +# A page can have multiple tags +tag: + - Storage + - Guide + - "302" +# this page is sticky in article list +sticky: true +# this page will appear in starred articles +star: true +--- +# GitHub Releases + +:::tip +GitHub API rate limits: The primary rate limit for unauthenticated requests is 60 requests per hour. Making API requests using a personal access token counts toward your personal rate limit of 5,000 requests per hour. +::: + +## Repo Structure + +:::tabs#UrlTree +@tab 1 + +The simplest usage is to directly write `owner/repository`, only one can be filled in. + +##### Input + +``` +alistGo/alist +``` + +The effect is the same as the following: +``` +/:alistGo/alist +``` + +@tab 2 + +Mount to a subdirectory, you can mount multiple repositories + +##### Input + +``` +/alist-gh:alistGo/alist +/alist-web-gh:alistGo/alist-web +``` + +The leading `/` can be omitted: + +``` +alist-gh:alistGo/alist +alist-web-gh:alistGo/alist-web +``` + +::: + +## Show README file + +Off switch: +``` +alist/ +├── alist-linux-amd64.tar.gz +└── alist-windows-amd64.zip +``` + +On switch: +``` +alist/ +├── alist-linux-amd64.tar.gz +├── alist-windows-amd64.zip +├── README.md +├── README_cn.md +└── LICENSE +``` + +If enabled, the total size and modification time of the folder will not be displayed. + +## Token + +Required when accessing private repositories, and can also reduce the impact of rate limits. + +Log in GitHub and visit: + +## Show all version + +Off switch: +``` +alist/ +├── alist-linux-amd64.tar.gz +└── alist-windows-amd64.zip +``` + +On switch: +``` +alist/ +├── v3.41.0/ +│ ├── alist-linux-amd64.tar.gz +│ └── alist-windows-amd64.zip +├── v3.40.0/ +│ ├── alist-linux-amd64.tar.gz +│ └── alist-windows-amd64.zip +└── v3.39.4/ + ├── alist-linux-amd64.tar.gz + └── alist-windows-amd64.zip +``` + +### **The default download method used** + +```mermaid +--- +title: Which download method is used by default? +--- +flowchart TB + style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff + style a2 fill:#ff7575,stroke:#333,stroke-width:4px + subgraph ide1 [ ] + a1 + end + a1[302]:::someclass====|default|a2[user equipment] + classDef someclass fill:#f96 + c1[local proxy]-.alternative.->a2[user equipment] + click a1 "../drivers/common.html#webdav-policy" + click b1 "../drivers/common.html#webdav-policy" +``` + diff --git a/docs/zh/guide/drivers/github_releases.md b/docs/zh/guide/drivers/github_releases.md new file mode 100644 index 0000000000..4eb7f1d773 --- /dev/null +++ b/docs/zh/guide/drivers/github_releases.md @@ -0,0 +1,129 @@ +--- +# This is the icon of the page +icon: iconfont icon-state +# This control sidebar order +order: 41 +# A page can have multiple categories +category: + - Guide +# A page can have multiple tags +tag: + - Storage + - Guide + - "302" +# this page is sticky in article list +sticky: true +# this page will appear in starred articles +star: true +--- +# GitHub Releases + +:::tip +GitHub API 速率限制:未经身份验证的请求的主要速率限制为每小时 60 个请求。使用个人访问令牌发出 API 请求计入您每小时 5000 个请求的个人速率限制。 +::: + +## 仓库结构 + +:::tabs#UrlTree +@tab 1 + +最简单的用法,直接写 `所有者/仓库`,只能填一个 + +##### 输入 + +``` +alistGo/alist +``` + +与下面的写法效果一致: +``` +/:alistGo/alist +``` + +@tab 2 + +挂载到子目录,可以挂多个仓库 + +##### 输入 + +``` +/alist-gh:alistGo/alist +/alist-web-gh:alistGo/alist-web +``` + +最前面的 `/` 可以省略: + +``` +alist-gh:alistGo/alist +alist-web-gh:alistGo/alist-web +``` + +::: + +## 显示 README、LICENSE 文件 + +开启前: +``` +alist/ +├── alist-linux-amd64.tar.gz +└── alist-windows-amd64.zip +``` + +开启后: +``` +alist/ +├── alist-linux-amd64.tar.gz +├── alist-windows-amd64.zip +├── README.md +├── README_cn.md +└── LICENSE +``` + +开启后,不显示文件夹总大小和修改时间。 + +## 令牌 + +访问私有仓库时需要,也可减少速率访问限制的影响。访问: + +## 显示所有版本 + +开启前: +``` +alist/ +├── alist-linux-amd64.tar.gz +└── alist-windows-amd64.zip +``` + +开启后: +``` +alist/ +├── v3.41.0/ +│ ├── alist-linux-amd64.tar.gz +│ └── alist-windows-amd64.zip +├── v3.40.0/ +│ ├── alist-linux-amd64.tar.gz +│ └── alist-windows-amd64.zip +└── v3.39.4/ + ├── alist-linux-amd64.tar.gz + └── alist-windows-amd64.zip +``` + +### **默认使用的下载方式** + +```mermaid +--- +title: 默认使用的哪种下载方式? +--- +flowchart TB + style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff + style a2 fill:#ff7575,stroke:#333,stroke-width:4px + subgraph ide1 [ ] + a1 + end + a1[302]:::someclass====|默认|a2[用户设备] + classDef someclass fill:#f96 + c1[本机代理]-.备选.->a2[用户设备] + click a1 "../drivers/common.html#webdav-策略" + click b1 "../drivers/common.html#webdav-策略" +``` +