-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
重构文档架构 支持自定义文档主题色 文章重新分类 [测试]适配Telegram小程序 部分错误修复
- Loading branch information
Showing
109 changed files
with
11,734 additions
and
12,131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
name: 部署文档 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy-gh-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# 如果你文档需要 Git 子模块,取消注释下一行 | ||
# submodules: true | ||
|
||
- name: 设置 pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.6.0 | ||
|
||
|
||
- name: 设置 Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: 安装依赖 | ||
run: | | ||
corepack enable | ||
pnpm install --frozen-lockfile | ||
- name: 构建文档 | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
run: |- | ||
pnpm run docs:build | ||
> src/.vuepress/dist/.nojekyll | ||
- name: 部署文档 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
# 部署文档 | ||
branch: gh-pages | ||
folder: src/.vuepress/dist |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
|
||
node_modules/ | ||
.temp/ | ||
.cache/ | ||
.vscode/ | ||
.yarn/cache | ||
.yarn/install-state.gz | ||
src/.vuepress/.cache/ | ||
src/.vuepress/.temp/ | ||
src/.vuepress/dist/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
{ | ||
"name": "tgwiki", | ||
"version": "1.2.0", | ||
"main": "index.js", | ||
"description": "TGwiki - Telegram知识库", | ||
"version": "2.0.0", | ||
"license": "GPL-3.0", | ||
"type": "module", | ||
"scripts": { | ||
"docs:dev": "vuepress dev docs", | ||
"docs:build": "vuepress build docs" | ||
"docs:build": "vuepress-vite build src", | ||
"docs:clean-dev": "vuepress-vite dev src --clean-cache", | ||
"docs:dev": "vuepress-vite dev src", | ||
"docs:update-package": "pnpm dlx vp-update" | ||
}, | ||
"devDependencies": { | ||
"@vuepress/bundler-vite": "^2.0.0-rc.14", | ||
"@vuepress/bundler-webpack": "2.0.0-rc.14", | ||
"@vuepress/plugin-docsearch": "^2.0.0-rc.39", | ||
"@vuepress/plugin-pwa": "^2.0.0-rc.39", | ||
"@vuepress/plugin-sitemap": "^2.0.0-rc.39", | ||
"@vuepress/theme-default": "^2.0.0-rc.39", | ||
"vue": "^3.4.15", | ||
"vuepress": "^2.0.0-rc.14" | ||
"@vuepress/bundler-vite": "2.0.0-rc.14", | ||
"@vuepress/client": "2.0.0-beta.67", | ||
"@vuepress/plugin-docsearch": "2.0.0-rc.40", | ||
"@vuepress/plugin-notice": "2.0.0-rc.40", | ||
"@vuepress/plugin-pwa": "2.0.0-rc.40", | ||
"@vuepress/plugin-redirect": "2.0.0-rc.40", | ||
"vue": "^3.4.36", | ||
"vuepress": "2.0.0-rc.14", | ||
"vuepress-shared": "2.0.0-rc.52", | ||
"vuepress-theme-hope": "2.0.0-rc.52" | ||
}, | ||
"packageManager": "[email protected]", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18.16.0" | ||
} | ||
|
Oops, something went wrong.