切换文档网站到dumi
This commit is contained in:
parent
af719d886b
commit
0f7158f5de
28
.github/workflows/deploy-docs.yml
vendored
28
.github/workflows/deploy-docs.yml
vendored
@ -1,44 +1,32 @@
|
||||
|
||||
name: 部署文档
|
||||
name: 部署文档网站
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
# 确保这是你正在使用的分支名称
|
||||
- master
|
||||
- master # default branch
|
||||
|
||||
jobs:
|
||||
deploy-gh-pages:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# 如果你文档需要 Git 子模块,取消注释下一行
|
||||
# submodules: true
|
||||
|
||||
- uses: actions/cache@v3
|
||||
id: node-modules
|
||||
with:
|
||||
path: node_modules/
|
||||
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-modules-
|
||||
|
||||
${{ runner.os }}-node-modules-
|
||||
- name: 安装依赖
|
||||
if: steps.node-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: 构建文档
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=4096
|
||||
run: yarn run docs:build2
|
||||
|
||||
- name: 部署文档
|
||||
- name: 构建网站
|
||||
run: yarn run docs:build
|
||||
- name: 发布网站
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
# 这是文档部署到的分支名称gh-pages
|
||||
branch: website
|
||||
folder: docs/.vuepress/dist
|
||||
|
||||
folder: docs/dist
|
10
.gitignore
vendored
10
.gitignore
vendored
@ -6,10 +6,10 @@ node_modules
|
||||
/packages/apps/vueapp/src/languages
|
||||
/packages/apps/app/languages
|
||||
/packages/apps/test
|
||||
node_modules/
|
||||
docs/.vuepress/.cache/
|
||||
docs/.vuepress/.temp/
|
||||
node_modules/
|
||||
/packages/cli/baidu.api.txt
|
||||
node_modules/
|
||||
/.github/access key.txt
|
||||
/docs/.vuepress/dist
|
||||
/.github/access key.txt
|
||||
.umi
|
||||
.umi-production
|
||||
/docs/dist
|
||||
|
@ -1,55 +0,0 @@
|
||||
import { defineUserConfig } from "vuepress";
|
||||
import { hopeTheme } from "vuepress-theme-hope";
|
||||
import * as navbar from "./navbar";
|
||||
import * as sidebar from "./sidebar";
|
||||
|
||||
export default defineUserConfig({
|
||||
base : "/voerka-i18n/", // 发布位置GithubPages时
|
||||
lang : "zh-CN",
|
||||
locales : {
|
||||
"/" : {
|
||||
lang : "zh-CN",
|
||||
title : "VoerkaI18n"
|
||||
},
|
||||
"/en/" : {
|
||||
lang : "en-US",
|
||||
title : "English"
|
||||
}
|
||||
},
|
||||
theme : hopeTheme({
|
||||
hostname : "https://gitee.com/zhangfisher/voerka-i18n",
|
||||
author : {
|
||||
name : "wxzhang",
|
||||
url : "https://gitee.com/zhangfisher/voerka-i18n",
|
||||
},
|
||||
iconAssets : "iconfont",
|
||||
iconPrefix : "iconfont icon-",
|
||||
logo : "/logo.svg",
|
||||
home : "/zh/home",
|
||||
repo : "https://gitee.com/zhangfisher/voerka-i18n",
|
||||
docsDir : "docs",
|
||||
breadcrumb : false,
|
||||
pageInfo : ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],
|
||||
locales : {
|
||||
"/" : {
|
||||
navbar : navbar.zh,
|
||||
sidebar : sidebar.zh,
|
||||
displayFooter: true
|
||||
},
|
||||
"/en/" : {
|
||||
navbar : navbar.en,
|
||||
sidebar : sidebar.en,
|
||||
footer : "Default footer",
|
||||
displayFooter: true,
|
||||
}
|
||||
},
|
||||
plugins : {
|
||||
mdEnhance : {
|
||||
enableAll : true,
|
||||
presentation : {
|
||||
plugins : ["highlight", "math", "search", "notes", "zoom"],
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
40
docs/.vuepress/dist/404.html
vendored
40
docs/.vuepress/dist/404.html
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
var a=(t,o)=>{const r=t.__vccOpts||t;for(const[e,_]of o)r[e]=_;return r};export{a as _};
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
40
docs/.vuepress/dist/en/guide/disable.html
vendored
40
docs/.vuepress/dist/en/guide/disable.html
vendored
File diff suppressed because one or more lines are too long
40
docs/.vuepress/dist/en/guide/encrypt.html
vendored
40
docs/.vuepress/dist/en/guide/encrypt.html
vendored
File diff suppressed because one or more lines are too long
40
docs/.vuepress/dist/en/guide/index.html
vendored
40
docs/.vuepress/dist/en/guide/index.html
vendored
File diff suppressed because one or more lines are too long
40
docs/.vuepress/dist/en/guide/install.html
vendored
40
docs/.vuepress/dist/en/guide/install.html
vendored
File diff suppressed because one or more lines are too long
40
docs/.vuepress/dist/en/guide/markdown.html
vendored
40
docs/.vuepress/dist/en/guide/markdown.html
vendored
File diff suppressed because one or more lines are too long
40
docs/.vuepress/dist/en/guide/page.html
vendored
40
docs/.vuepress/dist/en/guide/page.html
vendored
File diff suppressed because one or more lines are too long
BIN
docs/.vuepress/dist/favicon.ico
vendored
BIN
docs/.vuepress/dist/favicon.ico
vendored
Binary file not shown.
Before Width: | Height: | Size: 66 KiB |
BIN
docs/.vuepress/dist/images/arch.png
vendored
BIN
docs/.vuepress/dist/images/arch.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 27 KiB |
40
docs/.vuepress/dist/index.html
vendored
40
docs/.vuepress/dist/index.html
vendored
File diff suppressed because one or more lines are too long
BIN
docs/.vuepress/dist/logo.png
vendored
BIN
docs/.vuepress/dist/logo.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 92 KiB |
1
docs/.vuepress/dist/logo.svg
vendored
1
docs/.vuepress/dist/logo.svg
vendored
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 20 KiB |
5
docs/.vuepress/dist/robots.txt
vendored
5
docs/.vuepress/dist/robots.txt
vendored
@ -1,5 +0,0 @@
|
||||
|
||||
User-agent:*
|
||||
Disallow:
|
||||
|
||||
Sitemap: https://gitee.com/zhangfisher/voerka-i18n/voerka-i18n/sitemap.xml
|
1
docs/.vuepress/dist/sitemap.xml
vendored
1
docs/.vuepress/dist/sitemap.xml
vendored
File diff suppressed because one or more lines are too long
40
docs/.vuepress/dist/zh/contribute/index.html
vendored
40
docs/.vuepress/dist/zh/contribute/index.html
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user