Skip to content

Commit

Permalink
fix more error (#10)
Browse files Browse the repository at this point in the history
* fix more error

* Update preview.md

Co-authored-by: Noah Hsu <i@nn.ci>
  • Loading branch information
flower-elf and xhofe authored Sep 13, 2022
1 parent a9a6ceb commit f387891
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion docs/config/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ The temporary directory, default `data/temp`

### log

The log configuration, if you want to setup the log, you can set this field.
The log configuration, if you want to setup the log level, you can set this field.
2 changes: 1 addition & 1 deletion docs/faq/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ For docker user, just remove the old container and pull the new image then run i

Add a [meta](../guide/advanced/meta.md) record, and open `write` field.

### How to remove `powered_by` at the bottom?​
### How to remove `powered_by Alist` at the bottom?​

Please respect the developer's labor, thank you. If you really want to remove it, you can use customize css to hide it.

Expand Down
6 changes: 3 additions & 3 deletions docs/zh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ features:

- title: 支持WebDav
icon: waline
details: Alist 支持所有存储 WebDav,这是一种用于访问文件的标准。
details: Alist 支持所有 WebDav 存储 ,这是一种用于访问文件的标准。

- title: 黑暗模式
icon: contrast
Expand All @@ -36,11 +36,11 @@ features:

- title: 文件预览
icon: preview
details: 支持视频、音频、office、pdf、代码、图片预览等,甚至是ipa安装
details: 支持视频、音频、office、pdf、代码、图片预览等,甚至支持ipa安装

- title: 打包下载
icon: cache
details: 使用浏览器的stream api支持包下载,无需使用服务器
details: 使用浏览器的stream api支持打包下载,无需使用服务器

- title: 更多新功能
icon: more
Expand Down
12 changes: 6 additions & 6 deletions docs/zh/config/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ star: true

### force

程序会优先从环境变量中读取配置,设置`force``true`强制程序读取配置文件
程序会优先从环境变量中读取配置,设置`force``true`会使程序忽略环境变量强制读取配置文件

### address

Expand All @@ -75,8 +75,8 @@ star: true

### cdn

CDN地址,如果要使用CDN,可以设置该字段,`$version`会被替换为`alist-web`的真实版本
这是动态的和多变的。 现有的 dist 资源托管在 npm 和 GitHub 上,它们的位置是:
CDN地址,如果要使用CDN,可以设置该字段,`$version`会被替换为`alist-web`的实际版本
这是动态的。 现有的 dist 资源托管在 npm 和 GitHub 上,它们的位置是:

- https://www.npmjs.com/package/alist-web
- https://github.com/alist-org/web-dist
Expand All @@ -89,7 +89,7 @@ CDN地址,如果要使用CDN,可以设置该字段,`$version`会被替换
- https://cdn1.tianli0.top/npm/alist-web@$version/dist/
- https://cdn1.tianli0.top/gh/alist-org/web-dist@$version/dist/

您也可以将其保留为空以使用本地 dist。
您也可以将其设置为空以使用本地 dist。

### database

Expand All @@ -101,8 +101,8 @@ CDN地址,如果要使用CDN,可以设置该字段,`$version`会被替换

### temp_dir

临时目录,默认 `data/temp`
程序临时目录,默认 `data/temp`

### log

日志配置,如果要设置日志,可以设置该字段。
日志配置,如果要查看详细日志(或禁用它),可以设置该字段。
12 changes: 6 additions & 6 deletions docs/zh/config/global.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@ star: true

### 打包下载

是否开启包下载,默认为true。
是否开启文件打包下载,默认为true。

### 自定义头部

您想要的任何内容都会自动放置在网页头部的开头
在此处设置的任何内容都会自动放置在网页头部的开头

### 自定义body

您想要的任何内容都会自动放置在网页正文的末尾
在此处设置的任何内容都会自动放置在网页正文的末尾

### 链接过期时间

直接链接的过期时间,以小时为单位。如果等于 0,则不会过期。默认值为 0。
直接链接的过期时间,以小时为单位。如果为 0,则不会过期。默认值为 0。
::: warning
只有加了密码的路径的直链才会有过期时间,否则不会过期。因为过期时间是加到sign查询参数中的,没有加密码的路径是不会检查sign的。
:::

### 隐私正则表达式

您不想在错误消息中显示的内容,每行一个正则表达式(在 `Golang` 中)。匹配的内容将被替换为对应长度的*
不想在错误消息中显示的内容,每行一个正则表达式(在 `Golang` 中)。匹配的内容将被替换为对应长度的*

### ocr api

用于识别验证码。你可以自己部署:https://hub.docker.com/r/xhofe/ddddocr_server 默认ocr api部署在[koyeb](https://app.koyeb.com/)上,不建议在生产环境中使用。
用于识别验证码。你可以自己部署:https://hub.docker.com/r/xhofe/ddddocr_server 默认的ocr api部署在[koyeb](https://app.koyeb.com/)上,不建议在生产环境中使用。
2 changes: 1 addition & 1 deletion docs/zh/config/other.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ star: true

### Token

可用于访问所有 API 的令牌。
可用于访问程序所有 API 的令牌。
16 changes: 8 additions & 8 deletions docs/zh/config/preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ star: true

### 文本类型

要预览为文本的文件的扩展名,用`,`分隔,例如`txt,md,go,tsx`
要作为文本预览的文件扩展名,用`,`分隔,例如`txt,md,go,tsx`

### 音频类型

您要作为音频预览的文件的扩展名,以`,`分隔,例如`mp3,wav,m4a`
要作为音频预览的文件扩展名,以`,`分隔,例如`mp3,wav,m4a`

### 视频类型

要预览为视频的文件的扩展名,以`,`分隔,例如`mp4,webm,ogg`
要作为视频预览的文件扩展名,以`,`分隔,例如`mp4,webm,ogg`

### 图像类型
### 图片类型

要预览为图像的文件的扩展名,以`,`分隔,例如`jpg,jpeg,png,gif,webp`
要作为图像预览的文件扩展名,以`,`分隔,例如`jpg,jpeg,png,gif,webp`

### 代理类型

您要单独设置通过代理下载的文件的扩展名
要通过程序代理下载的文件扩展名

### 外部预览

Expand Down Expand Up @@ -94,12 +94,12 @@ interface {

### 音频封面

默认音频封面
歌曲无播放封面时显示的默认封面

### 音频自动播放

是否自动播放音频文件。

### 视频自动播放

是否自动播放视频文件。
是否自动播放视频文件。
4 changes: 2 additions & 2 deletions docs/zh/config/site.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ star: true

### 基本路径

默认`/`如果你想反向代理与子目录(详见[带有子目录的反向代理](../faq/howto.md#how-to-reverse-proxy-with-sub-directory)),比如`https://pan.nn.ci/alist`,需要设置该字段为`alist`,同时需要设置`Api url``https://pan.nn.ci/alist`
默认`/`如果你想反向代理子目录(详见[带有子目录的反向代理](../faq/howto.md#how-to-reverse-proxy-with-sub-directory)),需要设置该字段为`alist`比如`https://pan.nn.ci/alist`,同时需要设置`Api url``https://pan.nn.ci/alist`

### 网站标题

Expand All @@ -47,4 +47,4 @@ star: true

### 默认每页文件数量

`alist` 的默认每页文件数量,当 `Pagination type` 没有设置为 `All`,例如 `20`
`alist` 的默认每页文件数量,当 `Pagination type` 没有被设置为 `All` 时生效,例如 `20`
10 changes: 5 additions & 5 deletions docs/zh/config/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ star: true

favicon 显示在浏览器选项卡中。 默认为“AList 徽标”。

### 主色
### 主色调

主要颜色用于页面上。 默认值为`#1890ff`
全站页面的主要颜色。 默认值为`#1890ff`

### 主页图标

主页图标显示在导航栏的左侧。 默认是`🏠`

### 家庭容器
### Hope容器

- 最大 980px:主宽度将设置为 `min(99%, 980px)`
- 希望容器:设置内容的最大宽度以匹配当前断点的最小宽度,参考 https://hope-ui.com/docs/layout/container。
- Max 980px:主宽度将设置为 `min(99%, 980px)`
- Hope容器:设置内容的最大宽度以匹配当前断点的最小宽度,参考 https://hope-ui.com/docs/layout/container。
4 changes: 2 additions & 2 deletions docs/zh/faq/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ star: true

添加 [meta](../guide/advanced/meta.md) 记录。

### 如何使用子目录进行反向代理
### 如何对子目录进行反向代理

使用 nginx 反向代理到 https://nn.ci/alist 的示例:

Expand Down Expand Up @@ -62,7 +62,7 @@ location /alist/ {

添加一个 [meta](../guide/advanced/meta.md) 记录,并打开 `write` 字段。

### 如何去掉底部的`powered_by`?​
### 如何去掉底部的`powered_by Alist`?​

请尊重开发者的劳动,谢谢。如果你真的想删除它,你可以使用自定义 css 来隐藏它。

Expand Down
4 changes: 2 additions & 2 deletions docs/zh/faq/why.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ star: true

特别是对于 Safari:

- 对于跨域媒体,content-type 必须是媒体类型,而不是通用的 application/octet-stream。所以如果直接链接返回的content-type是application/octet-stream,那么Safari就无法播放了。(PS:为什么AliyunDirve可以在Safari中播放?因为官网的视频播放不是使用的下载链接,是经过 AliyunDirve 转码后的)
- 对于跨域媒体,content-type 必须是媒体类型,而不是通用的 application/octet-stream。所以如果直链返回的content-type是application/octet-stream,那么Safari就无法播放了。(PS:为什么AliyunDrive可以在Safari中播放?因为官网的视频播放不是使用的下载链接,是经过 AliyunDrive 转码后的)

### 为什么我不能预览office文件?

Expand All @@ -55,7 +55,7 @@ star: true
### 为什么我不能预览 PDF 文件?

- 我们使用 `pdf.js` 作为默认的 PDF 预览器。所以它需要https + cors。
- https需要自行打开,使用反向代理或在配置文件中提供证书
- https需要自行打开,可以使用反向代理或在配置文件中提供证书
- cors由相关云盘提供支持,不能自行修改,除非开启代理功能,使用程序传输

### 为什么无法打包下载?
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/advanced/2fa.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ star: true

# 2FA

要启用 2 因素身份验证,您需要安装支持 2FA 的应用程序(例如 [Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2)) 在您的手机上。
要启用双因素身份验证,您需要安装支持 2FA 的应用程序(例如 [Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2)) 在您的手机上。

然后登录ALIST管理并进入“个人资料”页面,点击“启用2FA”按钮,用你的2FA应用扫描二维码,输入你的2FA应用生成的代码。

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/advanced/balance.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ star: true

### 如何使用​

一个storage可以正常添加,另外一个storage可以以`第一个个storage 挂载路径 + .balance +任何其他内容`为挂载路径添加。
一个storage可以正常添加,另外一个storage可以以`第一个storage 挂载路径 + .balance +任何其他内容`为挂载路径添加。
例如:

- 存储1:测试
Expand Down
8 changes: 4 additions & 4 deletions docs/zh/guide/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ star: true
# 社区

### Telegram 群组
Click the link: https://t.me/alist_chat
使用此链接: https://t.me/alist_chat

### Discussions​
Welcome to visit https://github.com/Xhofe/alist/discussions to discuss.
欢迎至 https://github.com/Xhofe/alist/discussions 参与项目讨论.

### QQ 群
Click the link: https://jq.qq.com/?_wv=1027&k=YJJj2Gwb , or search `938287703`.
使用此链接: https://jq.qq.com/?_wv=1027&k=YJJj2Gwb , 或者搜索 `938287703`.

欢迎加入社区,在提问之前,请确保您在此处找不到答案。 提问前请阅读“提问的智慧”,也许这样可以更快地解决问题。
欢迎加入社区,在开始提问之前,请确保您在此处找不到答案。并且Google/百度也不能解决问题时再提问。 提问前请先阅读“提问的智慧”,也许这样可以更快地帮助你解决问题。同时减轻各位的负担
2 changes: 1 addition & 1 deletion docs/zh/guide/install/source.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ star: true

### 环境准备

首先,你需要有一个`git``nodejs``pnpm``golang>=1.18``gcc`的环境
首先,你需要一个有`git``nodejs``pnpm``golang>=1.18``gcc`的环境

### 构建前端

Expand Down

0 comments on commit f387891

Please sign in to comment.