Skip to content

Commit

Permalink
[重大更新]TGwiki v2.0.0
Browse files Browse the repository at this point in the history
重构文档架构
支持自定义文档主题色
文章重新分类
[测试]适配Telegram小程序
部分错误修复
  • Loading branch information
AndaBrown committed Aug 7, 2024
1 parent fafb776 commit 4598c63
Show file tree
Hide file tree
Showing 109 changed files with 11,734 additions and 12,131 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/deploy-docs.yml
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
33 changes: 0 additions & 33 deletions .github/workflows/docs.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .gitignore
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/
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.2.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarnrc.yml

This file was deleted.

11 changes: 0 additions & 11 deletions docs/.vuepress/client.js

This file was deleted.

135 changes: 0 additions & 135 deletions docs/.vuepress/config.js

This file was deleted.

17 changes: 0 additions & 17 deletions docs/.vuepress/layouts/Layout.vue

This file was deleted.

21 changes: 0 additions & 21 deletions docs/.vuepress/public/manifest.json

This file was deleted.

34 changes: 0 additions & 34 deletions docs/README.md

This file was deleted.

32 changes: 19 additions & 13 deletions package.json
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"
}
Expand Down
Loading

0 comments on commit 4598c63

Please sign in to comment.