diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 65421fb8..ef1d73b8 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,13 +1,14 @@ // .vitepress/config.js export default { // 站点级选项 - title: 'SKIP Docs', + title: 'SKIP', description: 'Just playing around.', base: "/", themeConfig: { nav: [ { text: "首页", link: "/" }, - { text: "指南", link: "/guide/intro/what-is-skip" } + { text: "指南", link: "/guide/intro/what-is-skip" }, + { text: "下载", link: "/download/app-download/index" } ], sidebar: { "/guide/": [ @@ -15,7 +16,25 @@ export default { text: "简介", items: [{ text: "什么是 SKIP", - link: "/intro/what-is-skip" + link: "/guide/intro/what-is-skip" + }] + }, { + text: "使用方法", + items: [{ + text: "启用无障碍服务", + link: "/guide/usage/enable-accessibility-service" + }, { + text: "后台进程保活", + link: "/guide/usage/background-process-keep-alive" + }] + } + ], + "/download/": [ + { + text: "下载 APP", + items: [{ + text: "下载方式", + link: "/download/app-download/index" }] } ] diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css new file mode 100644 index 00000000..bd268bff --- /dev/null +++ b/docs/.vitepress/theme/custom.css @@ -0,0 +1,3 @@ +p img { + width: 300px; +} \ No newline at end of file diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js new file mode 100644 index 00000000..508d8b4a --- /dev/null +++ b/docs/.vitepress/theme/index.js @@ -0,0 +1,4 @@ +import DefaultTheme from 'vitepress/theme' +import './custom.css' + +export default DefaultTheme \ No newline at end of file diff --git a/docs/download/app-download/index.md b/docs/download/app-download/index.md new file mode 100644 index 00000000..fb2f42fa --- /dev/null +++ b/docs/download/app-download/index.md @@ -0,0 +1,15 @@ +# APP 下载方式 + +## 直接下载 + +[SKIP-v2.1.1.apk](https://skip.guoxicheng.top/SKIP-v2.1.1.apk) + +## Github Release + +[Github Releases](https://github.com/GuoXiCheng/SKIP/releases) + +## 网盘转存 + +[夸克网盘](https://pan.quark.cn/s/8502a8ff74c3) + +[百度网盘](https://pan.baidu.com/s/1tDXPcEUSZj5qNkOEmToz0A?pwd=m9u9) diff --git a/docs/guide/usage/background-process-keep-alive.md b/docs/guide/usage/background-process-keep-alive.md new file mode 100644 index 00000000..4d5eaed6 --- /dev/null +++ b/docs/guide/usage/background-process-keep-alive.md @@ -0,0 +1,19 @@ +# 后台进程保活 + +## 1. 应用后台锁定 + +进入「后台管理」,长按「SKIP」,锁定 + +![](/xiaomi-app-backend-lock-dark.png) + +## 2. 忽略电池优化 + +进入「应用信息」,进入「省电策略」,选择「无限制」 + +![](/xiaomi-ignoring-battery-optimization-dark.png) + +## 3. 允许自启动 + +进入「应用信息」,打开「自启动」 + +![](/xiaomi-enable-self-start-dark.png) diff --git a/docs/guide/usage/enable-accessibility-service.md b/docs/guide/usage/enable-accessibility-service.md new file mode 100644 index 00000000..4cf1bc9e --- /dev/null +++ b/docs/guide/usage/enable-accessibility-service.md @@ -0,0 +1,9 @@ +# 启用无障碍服务 + +## 1. 点击屏幕中央按钮 + +![](/click-button-on-the-screen-dark.png) + +## 2. 点击「使用“SKIP”」 + +![](/use-accessibility-dark.png) diff --git a/docs/index.md b/docs/index.md index e69de29b..558cfe23 100644 --- a/docs/index.md +++ b/docs/index.md @@ -0,0 +1,14 @@ +--- +layout: home + +hero: + name: SKIP + text: 基于 Android 无障碍服务的自动跳过开屏广告 App + actions: + - theme: brand + text: Get Started + link: /guide/intro/what-is-skip + - theme: alt + text: View on GitHub + link: https://github.com/GuoXiCheng/SKIP +--- diff --git a/release.js b/release.js index 8679a381..b5afb10f 100644 --- a/release.js +++ b/release.js @@ -12,6 +12,4 @@ const LATEST_VERSION = "2.1.1"; fs.copyFileSync(`apk/SKIP-v${LATEST_VERSION}.apk`, `${targetPath}/SKIP-v${LATEST_VERSION}.apk`); fs.copyFileSync('app/src/main/assets/skip_config.yaml', `${targetPath}/skip_config.yaml`); fs.copyFileSync('app/src/main/assets/skip_config_v2.yaml', `${targetPath}/skip_config_v2.yaml`); - - fs.copyFileSync('apk/OneClick-v1.0.apk', `${targetPath}/OneClick-v1.0.apk`); })(); \ No newline at end of file