Skip to content

Commit 8242e82

Browse files
anwen-anyixhofe
andauthored
Docs:update Theme version and Docs (#417)
* update * update * update Theme version and Docs * update Docs --------- Co-authored-by: Andy Hsu <[email protected]>
1 parent 2c59243 commit 8242e82

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+5462
-6265
lines changed

docs/.vuepress/components/HomeAds.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ const isApple = computed(() => {
8585
.vidhub {
8686
width: 100%;
8787
height: 150px;
88-
@media screen and (max-width: 700px) {
89-
height: 160px;
90-
}
9188
background-image: url(/img/ss/vidhub-bg.png);
9289
background-size: cover;
9390
background-position: right;
9491
border-radius: 14px;
9592
display: block;
9693
padding-right: 4px;
94+
@media screen and (max-width: 700px) {
95+
height: 160px;
96+
}
9797
div {
9898
display: flex;
9999
height: 100%;
@@ -122,6 +122,7 @@ const isApple = computed(() => {
122122
justify-content: flex-start;
123123
align-items: center;
124124
height: auto;
125+
padding-bottom: 5px;
125126
@media screen and (max-width: 700px) {
126127
font-size: medium;
127128
word-break: break-all;
@@ -136,7 +137,6 @@ const isApple = computed(() => {
136137
margin-left: 4px;
137138
white-space: nowrap;
138139
}
139-
padding-bottom: 5px;
140140
}
141141
.hero {
142142
height: auto;

docs/.vuepress/config.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import { defineUserConfig, viteBundler } from "vuepress";
2-
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
1+
import { defineUserConfig } from "vuepress";
2+
import { viteBundler } from '@vuepress/bundler-vite'
33
import { getDirname, path } from "@vuepress/utils";
44
import theme from "./theme.js";
55

66
const __dirname = getDirname(import.meta.url);
77

88
export default defineUserConfig({
9+
theme,
910
base: "/",
1011
head: [
1112
[
@@ -33,15 +34,6 @@ export default defineUserConfig({
3334
rel: "stylesheet"
3435
}
3536
],
36-
// [
37-
// "script",
38-
// {
39-
// type: "text/javascript",
40-
// charset: "UTF-8",
41-
// src: "/global.js",
42-
// async: true,
43-
// },
44-
// ],
4537
[
4638
"script",
4739
{},
@@ -85,14 +77,8 @@ export default defineUserConfig({
8577
level: [2, 3, 4, 5, 6]
8678
}
8779
},
88-
89-
theme,
9080
plugins: [
91-
docsearchPlugin({
92-
appId: "ECAR405NMH",
93-
apiKey: "ef408b6afab61e0362a93af95ad18150",
94-
indexName: "alist",
95-
}),
81+
9682
],
9783
bundler: viteBundler({
9884
viteOptions: {
7.61 KB
Loading
6.76 KB
Loading
30.2 KB
Loading

docs/.vuepress/styles/palette.scss

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,34 @@ $content-width: 1080px;
66

77
// image-preview
88
.image-preview {
9-
display: flex;
10-
justify-content: space-evenly;
11-
align-items: center;
12-
flex-wrap: wrap;
13-
}
9+
display: flex;
10+
justify-content: space-evenly;
11+
align-items: center;
12+
flex-wrap: wrap;
13+
}
1414

15-
.image-preview > img {
16-
box-sizing: border-box;
17-
width: 33.3% !important;
18-
padding: 9px;
19-
border-radius: 16px;
20-
}
15+
.image-preview>img {
16+
box-sizing: border-box;
17+
width: 33.3% !important;
18+
padding: 9px;
19+
border-radius: 16px;
20+
}
2121

22-
@media (max-width: 719px){
23-
.image-preview > img {
24-
width: 50% !important;
25-
}
22+
@media (max-width: 719px) {
23+
.image-preview>img {
24+
width: 50% !important;
2625
}
26+
}
2727

28-
@media (max-width: 419px){
29-
.image-preview > img {
30-
width: 100% !important;
31-
}
28+
@media (max-width: 419px) {
29+
.image-preview>img {
30+
width: 100% !important;
3231
}
32+
}
33+
34+
:root {
35+
--color-primary: #2196f3; /* 主色调 */
36+
--color-danger: #f26d6d; /* 错误/警告 */
37+
--color-success: #3eaf7c; /* 成功状态 */
38+
--color-warning: #fb9b5f; /* 提醒/警告 */
39+
}

docs/.vuepress/theme.ts

Lines changed: 99 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,23 @@ import * as sidebar from "./sidebar";
44

55
export default hopeTheme(
66
{
7+
docsDir: "docs",
8+
logo: "/logo.svg",
9+
repo: "alist-org/docs",
710
hostname: "https://alist.nn.ci",
8-
themeColor: {
9-
blue: "#2196f3",
10-
red: "#f26d6d",
11-
green: "#3eaf7c",
12-
orange: "#fb9b5f",
13-
},
11+
// 移动到 palette.scss 文件中
12+
// themeColor: {
13+
// blue: "#2196f3",
14+
// red: "#f26d6d",
15+
// green: "#3eaf7c",
16+
// orange: "#fb9b5f",
17+
// },
1418

1519
author: {
1620
name: "Andy Hsu",
1721
url: "https://i.nn.ci",
1822
},
1923

20-
// iconAssets: "iconfont",
21-
iconAssets: [
22-
"iconfont",
23-
"https://npm.elemecdn.com/[email protected]/css/fontawesome.min.css",
24-
"https://npm.elemecdn.com/[email protected]/css/all.min.css",
25-
],
26-
27-
logo: "/logo.svg",
28-
29-
repo: "alist-org/docs",
30-
31-
docsDir: "docs",
32-
3324
pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
3425

3526
locales: {
@@ -63,126 +54,113 @@ export default hopeTheme(
6354
displayFooter: true,
6455
},
6556
},
66-
67-
// encrypt: {
68-
// config: {
69-
// "/guide/encrypt.html": ["1234"],
70-
// "/zh/guide/encrypt.html": ["1234"],
71-
// },
72-
// },
73-
57+
markdown: {
58+
imgMark: true, //支持图片标记
59+
imgLazyload: true, //支持图片懒加载
60+
// figure: true, //支持图片描述
61+
imgSize: true, //支持图片大小
62+
tabs: true, //支持表格
63+
gfm: true, //支持完整的 GFM 语法
64+
tasklist: true, //支持任务列表
65+
include: true, //支持 include 语法
66+
align: true, //支持对齐
67+
mark: true, //支持标记
68+
sub: true, //支持下标
69+
sup: true, //支持上标
70+
flowchart: true, //支持流程图
71+
demo: true, //支持 demo
72+
mermaid: true, //支持 Mermaid
73+
chartjs: true, //支持 Chart.js
74+
echarts: true, //支持 ECharts
75+
plantuml: true, //支持 PlantUML
76+
codeTabs: true, //支持代码块分组
77+
// container: true,
78+
},
7479
plugins: {
75-
autoCatalog: {
80+
// 搜索从设置转移到主题
81+
docsearch:{
82+
appId: "ECAR405NMH",
83+
apiKey: "ef408b6afab61e0362a93af95ad18150",
84+
indexName: "alist",
85+
},
86+
// 目录的自动生成
87+
catalog: {
7688
frontmatter: () => ({
7789
toc: false,
7890
}),
7991
},
80-
// blog: {
81-
// autoExcerpt: true,
82-
// },
83-
84-
// If you don't need comment feature, you can remove following option
85-
// The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
86-
// To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
92+
//
93+
components: {
94+
components: ["ArtPlayer", "BiliBili", "Badge", "VPCard"],
95+
},
96+
// 图标
97+
icon: {
98+
assets: [
99+
"//at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css",
100+
"https://npm.elemecdn.com/[email protected]/css/fontawesome.min.css",
101+
"https://npm.elemecdn.com/[email protected]/css/all.min.css",
102+
]
103+
},
87104
comment: {
88105
/**
89-
* Using Giscus
106+
* Using Giscus 评论
90107
*/
91108
provider: "Giscus",
92109
repo: "AlistGo/docs",
93110
repoId: "R_kgDOHmaM-A",
94111
category: "Announcements",
95112
categoryId: "DIC_kwDOHmaM-M4CRRXl",
96113

97-
/**
98-
* Using Twikoo
99-
*/
100-
// provider: "Twikoo",
101-
// envId: "https://twikoo.ccknbc.vercel.app",
102-
103-
/**
104-
* Using Waline
105-
*/
106-
// provider: "Waline",
107-
// serverURL: "https://vuepress-theme-hope-comment.vercel.app",
108114
},
109-
110-
mdEnhance: {
111-
// enableAll: true,
112-
// presentation: {
113-
// plugins: ["highlight", "math", "search", "notes", "zoom"],
114-
// },
115-
container: true,
116-
checkLinks: {
117-
status: "dev",
115+
// 临时弹窗
116+
notice: [
117+
{
118+
path: "/",
119+
title: 'Kind tips',
120+
content: '<i class="fa-solid fa-light-emergency-on fa-bounce" style="color: #ff0000;"></i>&nbsp;<span style="color:rgb(255, 0, 0);font-weight:bold;">Please check the reminder content carefully</span><br/><br/>1.<span style="color:blue; font-weight:bold;">The new version v3.25.0 has updated the new password method, and the acquisition method has also been changed. For details, please refer to the documentation page of your own installation method</span><br/>2.v3.25.1 Aliyun_open can choose to mount the backup disk or resource library by itself, for details <a href="/guide/drivers/aliyundrive_open.html#drive-type">Click to view for details</a><br/>3.The new version of AList version greater than v3.22.1 adds single sign-on to automatically register as an AList account, click to view the <a href="/guide/advanced/sso.html#sso-automatically-registers-as-an-alist-account">detailed description</a><br/>4.<a href="/guide/drivers/139.html">139Cloud</a>and<a href="/guide/drivers/189.html">189Cloud</a>For details of changes, please view the document by yourself, respectively<br/>5.v3.20.1version Breaking Changes <a href="https://github.com/alist-org/alist/discussions/4702">View detailed description</a>, go to <a href="/config/configuration.html#scheme">Configure documentation page</a><br/>6. AList v3.30.0 will no longer support Win7/Server2008 because Go does not support it. <a href="https://github.com/golang/go/issues/64622">Click to view detailed instructions</a> .<br/>7.After adding the cloud disk, please configure [anti-theft/meta information] and other measures in time to prevent the account from being [frozen/disabled] due to malicious [access/sharing] by [crawlers/others].</span></span>',
121+
actions: [
122+
// {
123+
// text: "Aliyun open",
124+
// link: "/guide/drivers/aliyundrive_open",
125+
// type: "primary",
126+
// },
127+
// {
128+
// text: "GitHub",
129+
// link: "https://github.com/alist-org/alist/discussions/4572",
130+
// type: "primary",
131+
// },
132+
// {
133+
// text: "Config",
134+
// link: "/config/configuration",
135+
// type: "primary",
136+
// },
137+
],
138+
showOnce: true,
118139
},
119-
tabs: true,
120-
tasklist: true,
121-
gfm: true,
122-
flowchart: true,
123-
mark: true,
124-
mermaid: true,
125-
sub: true,
126-
sup: true,
127-
align: true,
128-
include: true,
129-
demo:true,
130-
// card: true,
131-
},
132-
components: {
133-
components: ["ArtPlayer", "BiliBili", "Badge","VPCard","Replit"],
134-
// 临时弹窗
135-
rootComponents: {
136-
notice: [
137-
{
138-
path: "/",
139-
title: 'Kind tips',
140-
content: '<i class="fa-solid fa-light-emergency-on fa-bounce" style="color: #ff0000;"></i>&nbsp;<span style="color:rgb(255, 0, 0);font-weight:bold;">Please check the reminder content carefully</span><br/><br/>1.<span style="color:blue; font-weight:bold;">The new version v3.25.0 has updated the new password method, and the acquisition method has also been changed. For details, please refer to the documentation page of your own installation method</span><br/>2.v3.25.1 Aliyun_open can choose to mount the backup disk or resource library by itself, for details <a href="/guide/drivers/aliyundrive_open.html#drive-type">Click to view for details</a><br/>3.The new version of AList version greater than v3.22.1 adds single sign-on to automatically register as an AList account, click to view the <a href="/guide/advanced/sso.html#sso-automatically-registers-as-an-alist-account">detailed description</a><br/>4.<a href="/guide/drivers/139.html">139Cloud</a>and<a href="/guide/drivers/189.html">189Cloud</a>For details of changes, please view the document by yourself, respectively<br/>5.v3.20.1version Breaking Changes <a href="https://github.com/alist-org/alist/discussions/4702">View detailed description</a>, go to <a href="/config/configuration.html#scheme">Configure documentation page</a><br/>6. AList v3.30.0 will no longer support Win7/Server2008 because Go does not support it. <a href="https://github.com/golang/go/issues/64622">Click to view detailed instructions</a> .<br/>7.After adding the cloud disk, please configure [anti-theft/meta information] and other measures in time to prevent the account from being [frozen/disabled] due to malicious [access/sharing] by [crawlers/others].</span></span>',
141-
actions: [
142-
// {
143-
// text: "Aliyun open",
144-
// link: "/guide/drivers/aliyundrive_open",
145-
// type: "primary",
146-
// },
147-
// {
148-
// text: "GitHub",
149-
// link: "https://github.com/alist-org/alist/discussions/4572",
150-
// type: "primary",
151-
// },
152-
// {
153-
// text: "Config",
154-
// link: "/config/configuration",
155-
// type: "primary",
156-
// },
157-
],
158-
showOnce: true,
159-
},
160-
{
161-
path: "/zh",
162-
title: '温馨提示',
163-
content: '<i class="fa-solid fa-light-emergency-on fa-bounce" style="color: #ff0000;"></i>&nbsp;<span style="color:rgb(255, 0, 0);font-weight:bold;">请仔细查看弹窗提示内容</span><br/><br/>1.<span style="color:blue; font-weight:bold;">v3.25.1新版更新了新的密码方式,获取方式也进行了更改,详细说明请看自己安装方式的文档页面内</span><br/>2.v3.25.1阿里云盘open可以自行选择挂载备份盘或者资源库,详情<a href="/zh/guide/drivers/aliyundrive_open.html#云盘类型">详情点击查看</a><br/>3.AList版本大于v3.22.1,新版本新增单点登录自动注册为AList账户,点击查看<a href="/zh/guide/advanced/sso.html#单点登录自动注册为alist帐号">详细说明</a><br/>4.<a href="/zh/guide/drivers/139.html">移动云盘</a>和<a href="/zh/guide/drivers/189.html">天翼云</a>分别有改动详情请自行查看文档<br/>5.v3.20.1的版本破坏性更新<a href="https://github.com/alist-org/alist/discussions/4702">查看详细说明</a>,前往<a href="/zh/config/configuration.html#scheme">配置文档页面</a><br/>6.AList v3.30.0版本开始将不再支持Win7/Server2008,因为Go不支持了,<a href="https://github.com/golang/go/issues/64622">点击查看详细说明</a>.<br/><span style="color:rgb(255, 0, 0);font-weight:bold;">7.添加云盘后请及时配置[防盗/元信息]等措施,防止被[爬虫/其他人]恶意[访问/分享]导致帐号被[冻结/禁用].</span></span>',
164-
actions: [
165-
// {
166-
// text: "阿里云open",
167-
// link: "/zh/guide/drivers/aliyundrive_open",
168-
// type: "primary",
169-
// },
170-
// {
171-
// text: "GitHub",
172-
// link: "https://github.com/alist-org/alist/discussions/4572",
173-
// type: "primary",
174-
// },
175-
// {
176-
// text: "配置",
177-
// link: "/zh/config/configuration",
178-
// type: "primary",
179-
// },
180-
],
181-
showOnce: true,
182-
},
140+
{
141+
path: "/zh",
142+
title: '温馨提示',
143+
content: '<i class="fa-solid fa-light-emergency-on fa-bounce" style="color: #ff0000;"></i>&nbsp;<span style="color:rgb(255, 0, 0);font-weight:bold;">请仔细查看弹窗提示内容</span><br/><br/>1.<span style="color:blue; font-weight:bold;">v3.25.1新版更新了新的密码方式,获取方式也进行了更改,详细说明请看自己安装方式的文档页面内</span><br/><br/>2.v3.25.1阿里云盘open可以自行选择挂载备份盘或者资源库,详情<a href="/zh/guide/drivers/aliyundrive_open.html#云盘类型">详情点击查看</a><br/><br/>3.AList版本大于v3.22.1,新版本新增单点登录自动注册为AList账户,点击查看<a href="/zh/guide/advanced/sso.html#单点登录自动注册为alist帐号">详细说明</a><br/><br/>4.<a href="/zh/guide/drivers/139.html">移动云盘</a>和<a href="/zh/guide/drivers/189.html">天翼云</a>分别有改动详情请自行查看文档<br/><br/>5.v3.20.1的版本破坏性更新<a href="https://github.com/alist-org/alist/discussions/4702">查看详细说明</a>,前往<a href="/zh/config/configuration.html#scheme">配置文档页面</a><br/><br/>6.AList v3.30.0版本开始将不再支持Win7/Server2008,因为Go不支持了,<a href="https://github.com/golang/go/issues/64622">点击查看详细说明</a>.<br/><br/><span style="color:rgb(255, 0, 0);font-weight:bold;">7.添加云盘后请及时配置[防盗/元信息]等措施,防止被[爬虫/其他人]恶意[访问/分享]导致帐号被[冻结/禁用].</span></span>',
144+
actions: [
145+
// {
146+
// text: "阿里云open",
147+
// link: "/zh/guide/drivers/aliyundrive_open",
148+
// type: "primary",
149+
// },
150+
// {
151+
// text: "GitHub",
152+
// link: "https://github.com/alist-org/alist/discussions/4572",
153+
// type: "primary",
154+
// },
155+
// {
156+
// text: "配置",
157+
// link: "/zh/config/configuration",
158+
// type: "primary",
159+
// },
183160
],
161+
showOnce: true,
184162
},
185-
},
163+
],
186164
},
187165
},
188166
{

0 commit comments

Comments
 (0)