Skip to content

Commit 276874b

Browse files
authored
docs(webdav): fix typos and perform formatting (#317)
* docs(webdav): fix typos and perform formatting * Fix typos
1 parent 2601d13 commit 276874b

1 file changed

Lines changed: 38 additions & 31 deletions

File tree

pages/guide/drivers/webdav.md

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,57 +11,62 @@ categories:
1111
- drivers
1212
---
1313

14-
## 地址 { lang="zh-CN" }
15-
1614
## Address { lang="en" }
1715

16+
## 地址 { lang="zh-CN" }
17+
1818
::: en
1919
WebDAV root address
2020
:::
21+
2122
::: zh-CN
2223
WebDAV 根地址
2324
:::
2425

25-
## 用户名 { lang="zh-CN" }
26-
2726
## Username { lang="en" }
2827

28+
## 用户名 { lang="zh-CN" }
29+
2930
::: en
3031
username
3132
:::
33+
3234
::: zh-CN
3335
用户名
3436
:::
3537

36-
## 密码 { lang="zh-CN" }
37-
3838
## Password { lang="en" }
3939

40+
## 密码 { lang="zh-CN" }
41+
4042
::: en
4143
password
4244
:::
45+
4346
::: zh-CN
4447
密码
4548
:::
4649

47-
## 根文件夹ID { lang="zh-CN" }
48-
4950
## Root folder path { lang="en" }
5051

52+
## 根文件夹ID { lang="zh-CN" }
53+
5154
::: en
5255
The path of fodler you want to mount, same as join in address
5356
:::
57+
5458
::: zh-CN
5559
要挂载的文件夹路径,与加入地址相同
5660
:::
5761

58-
## Tls insecure skip verify { lang="zh-CN" }
62+
## Tls insecure skip verify { lang="en" }
5963

6064
## 跳过 SSL 证书验证 { lang="zh-CN" }
6165

6266
::: en
6367
Whether to skip SSL certificate verification. If your WebDAV server uses a self-signed certificate, you may need to enable this option. Enabling it will reduce security, please use it with caution.
6468
:::
69+
6570
::: zh-CN
6671
是否跳过 SSL 证书验证。如果你的 WebDAV 服务器使用自签名证书,可能需要启用此选项。启用后会降低安全性,请谨慎使用。
6772
:::
@@ -70,20 +75,6 @@ Whether to skip SSL certificate verification. If your WebDAV server uses a self-
7075

7176
## 支持 302 重定向 { lang="zh-CN" }
7277

73-
::: zh-CN
74-
75-
通常情况下,WebDAV 服务器会直接返回文件内容,由于需要授权,只能代理下载。但一些服务器会重定向到实际的文件地址,如 OpenList `WebDav 策略``302 重定向`
76-
77-
WebDAV 存储设置的 `Web 代理` 选项默认为开启状态,如果关闭,OpenList 将会尝试获取重定向后的地址,然后将该地址返回给用户设备直接下载。
78-
79-
前提条件:
80-
81-
1. WebDAV 服务器必须支持返回 302,如果返回 200,则无法使用此功能,关闭 Web 代理将无法使用。
82-
2. 返回的 302 地址必须是公开可访问的地址,不得需要授权信息,否则用户设备无法下载。
83-
3. 在存储设置中关闭 `Web 代理` 选项。
84-
85-
:::
86-
8778
::: en
8879

8980
In general, WebDAV servers return the file content directly. Due to the need for authorization, only proxy downloads are possible. However, some servers redirect to the actual file address, such as OpenList `WebDav Policy`'s `302 Redirect`.
@@ -98,29 +89,44 @@ Prerequisites:
9889

9990
:::
10091

101-
## OneDrive/SharePoint { lang="zh-CN" }
92+
::: zh-CN
93+
94+
通常情况下,WebDAV 服务器会直接返回文件内容,由于需要授权,只能代理下载。但一些服务器会重定向到实际的文件地址,如 OpenList `WebDav 策略``302 重定向`
95+
96+
WebDAV 存储设置的 `Web 代理` 选项默认为开启状态,如果关闭,OpenList 将会尝试获取重定向后的地址,然后将该地址返回给用户设备直接下载。
97+
98+
前提条件:
99+
100+
1. WebDAV 服务器必须支持返回 302,如果返回 200,则无法使用此功能,关闭 Web 代理将无法使用。
101+
2. 返回的 302 地址必须是公开可访问的地址,不得需要授权信息,否则用户设备无法下载。
102+
3. 在存储设置中关闭 `Web 代理` 选项。
103+
104+
:::
102105

103106
## OneDrive/SharePoint { lang="en" }
104107

108+
## OneDrive/SharePoint { lang="zh-CN" }
109+
105110
::: en
106111
Select the vendor as sharepoint, and support the international version/21Vianet.
107112

108-
For OneDrive/SharePoint, you can obtain the webdav root address through [this tool](https://tool.example.com/onedrive/webdav). If you want to mount the specified directory, you can join it later.
113+
For OneDrive/SharePoint, you can obtain the WebDAV root address through [this tool](https://tool.example.com/onedrive/webdav). If you want to mount the specified directory, you can join it later.
109114

110115
The username is the OneDrive account email, and the password is the OneDrive account password.
111116
:::
117+
112118
::: zh-CN
113119
选择 vendor 为 sharepoint,支持国际版/世纪互联。
114120

115-
你可以通过[这个工具](https://alist.example.com/tool/onedrive/webdav.html)获取 WebdAV 根地址,如果要挂载指定的目录,在后面拼接即可。
121+
你可以通过[这个工具](https://alist.example.com/tool/onedrive/webdav.html)获取 WebDAV 根地址,如果要挂载指定的目录,在后面拼接即可。
116122

117123
用户名为 OneDrive 账号邮箱,密码即为 OneDrive 账号密码。
118124
:::
119125

120-
## 错误提示 { lang="zh-CN" }
121-
122126
## Error message { lang="en" }
123127

128+
## 错误提示 { lang="zh-CN" }
129+
124130
::: en
125131

126132
- **failed get objs: failed to list objs: PROPFIND/根目录:403**
@@ -138,6 +144,7 @@ The username is the OneDrive account email, and the password is the OneDrive acc
138144
This error indicates that the WebDAV server does not support 302 redirects. You need to enable the `Web Proxy` option in the storage settings to use proxy downloads.
139145

140146
:::
147+
141148
::: zh-CN
142149

143150
- **failed get objs: failed to list objs: PROPFIND/根目录:403**
@@ -148,18 +155,18 @@ The username is the OneDrive account email, and the password is the OneDrive acc
148155

149156
![webdav](/img/drivers/webdav/webdav_Security.png)
150157

151-
另外一种情况是对应的 OneDrive 账号太长时间没有操作也会提示这个问题,尝试从 OneDrive 网页端重新登录账号,系统会提示要求更改密码,更新密码后,使用更改后的密码再次尝试即可
158+
另外一种情况是对应的 OneDrive 账号太长时间没有操作也会提示这个问题,尝试从 OneDrive 网页端重新登录账号,系统会提示要求更改密码,更新密码后,使用更改后的密码再次尝试即可
152159

153160
- **failed link: failed get link: redirect failed, status: 200**
154161

155162
此错误表示 WebDAV 服务器不支持 302 重定向,需要在存储设置中启用 `Web 代理` 选项以使用代理下载。
156163

157164
:::
158165

159-
## 默认使用的下载方式 { lang="zh-CN" }
160-
161166
## The default download method used { lang="en" }
162167

168+
## 默认使用的下载方式 { lang="zh-CN" }
169+
163170
::: en
164171

165172
```mermaid

0 commit comments

Comments
 (0)