Skip to content

Commit bdc3f0c

Browse files
committed
初始化代码
1 parent 8e06c87 commit bdc3f0c

File tree

24 files changed

+10539
-0
lines changed

24 files changed

+10539
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
name: 部署文档
3+
4+
on:
5+
push:
6+
branches:
7+
# 确保这是你正在使用的分支名称
8+
- main
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
deploy-gh-pages:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
# 如果你文档需要 Git 子模块,取消注释下一行
22+
# submodules: true
23+
24+
25+
26+
- name: 设置 Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: npm
31+
32+
- name: 安装依赖
33+
run: npm ci
34+
35+
- name: 构建文档
36+
env:
37+
NODE_OPTIONS: --max_old_space_size=8192
38+
run: |-
39+
npm run docs:build
40+
> docs/.vuepress/dist/.nojekyll
41+
42+
- name: 部署文档
43+
uses: JamesIves/github-pages-deploy-action@v4
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
46+
with:
47+
# 这是文档部署到的分支名称
48+
branch: docs
49+
folder: docs/.vuepress/dist

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
34.1 MB
Binary file not shown.
970 KB
Binary file not shown.

docs/.vuepress/.temp/git/config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { GitContributors } from "E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-git/lib/client/components/GitContributors.js";
2+
import { GitChangelog } from "E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-git/lib/client/components/GitChangelog.js";
3+
4+
export default {
5+
enhance: ({ app }) => {
6+
app.component("GitContributors", GitContributors);
7+
app.component("GitChangelog", GitChangelog);
8+
},
9+
};
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import * as clientConfig0 from 'E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-active-header-links/lib/client/config.js'
2+
import * as clientConfig1 from 'E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-back-to-top/lib/client/config.js'
3+
import * as clientConfig2 from 'E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-copy-code/lib/client/config.js'
4+
import * as clientConfig3 from 'E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-markdown-hint/lib/client/config.js'
5+
import * as clientConfig4 from 'E:/Github/VisionGalDoc/docs/.vuepress/.temp/git/config.js'
6+
import * as clientConfig5 from 'E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-medium-zoom/lib/client/config.js'
7+
import * as clientConfig6 from 'E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-nprogress/lib/client/config.js'
8+
import * as clientConfig7 from 'E:/Github/VisionGalDoc/docs/.vuepress/.temp/prismjs/config.js'
9+
import * as clientConfig8 from 'E:/Github/VisionGalDoc/docs/.vuepress/.temp/markdown-tab/config.js'
10+
import * as clientConfig9 from 'E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-theme-data/lib/client/config.js'
11+
import * as clientConfig10 from 'E:/Github/VisionGalDoc/node_modules/@vuepress/theme-default/lib/client/config.js'
12+
13+
export const clientConfigs = [
14+
clientConfig0,
15+
clientConfig1,
16+
clientConfig2,
17+
clientConfig3,
18+
clientConfig4,
19+
clientConfig5,
20+
clientConfig6,
21+
clientConfig7,
22+
clientConfig8,
23+
clientConfig9,
24+
clientConfig10,
25+
].map((m) => m.default).filter(Boolean)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
export const redirects = JSON.parse("{}")
2+
3+
export const routes = Object.fromEntries([
4+
["/get-started.html", { loader: () => import(/* webpackChunkName: "get-started.html" */"E:/Github/VisionGalDoc/docs/.vuepress/.temp/pages/get-started.html.js"), meta: {"title":"Get Started"} }],
5+
["/", { loader: () => import(/* webpackChunkName: "index.html" */"E:/Github/VisionGalDoc/docs/.vuepress/.temp/pages/index.html.js"), meta: {"title":"Home"} }],
6+
["/404.html", { loader: () => import(/* webpackChunkName: "404.html" */"E:/Github/VisionGalDoc/docs/.vuepress/.temp/pages/404.html.js"), meta: {"title":""} }],
7+
]);
8+
9+
if (import.meta.webpackHot) {
10+
import.meta.webpackHot.accept()
11+
if (__VUE_HMR_RUNTIME__.updateRoutes) {
12+
__VUE_HMR_RUNTIME__.updateRoutes(routes)
13+
}
14+
if (__VUE_HMR_RUNTIME__.updateRedirects) {
15+
__VUE_HMR_RUNTIME__.updateRedirects(redirects)
16+
}
17+
}
18+
19+
if (import.meta.hot) {
20+
import.meta.hot.accept(({ routes, redirects }) => {
21+
__VUE_HMR_RUNTIME__.updateRoutes(routes)
22+
__VUE_HMR_RUNTIME__.updateRedirects(redirects)
23+
})
24+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export const siteData = JSON.parse("{\"base\":\"/\",\"lang\":\"en-US\",\"title\":\"VuePress\",\"description\":\"My first VuePress Site\",\"head\":[],\"locales\":{}}")
2+
3+
if (import.meta.webpackHot) {
4+
import.meta.webpackHot.accept()
5+
if (__VUE_HMR_RUNTIME__.updateSiteData) {
6+
__VUE_HMR_RUNTIME__.updateSiteData(siteData)
7+
}
8+
}
9+
10+
if (import.meta.hot) {
11+
import.meta.hot.accept(({ siteData }) => {
12+
__VUE_HMR_RUNTIME__.updateSiteData(siteData)
13+
})
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export const themeData = JSON.parse("{\"logo\":\"https://vuejs.press/images/hero.png\",\"navbar\":[\"/\",\"/get-started\"],\"locales\":{\"/\":{\"selectLanguageName\":\"English\"}},\"colorMode\":\"auto\",\"colorModeSwitch\":true,\"repo\":null,\"selectLanguageText\":\"Languages\",\"selectLanguageAriaLabel\":\"Select language\",\"sidebar\":\"heading\",\"sidebarDepth\":2,\"editLink\":true,\"editLinkText\":\"Edit this page\",\"lastUpdated\":true,\"contributors\":true,\"contributorsText\":\"Contributors\",\"notFound\":[\"There's nothing here.\",\"How did we get here?\",\"That's a Four-Oh-Four.\",\"Looks like we've got some broken links.\"],\"backToHome\":\"Take me home\",\"openInNewWindow\":\"open in new window\",\"toggleColorMode\":\"toggle color mode\",\"toggleSidebar\":\"toggle sidebar\"}")
2+
3+
if (import.meta.webpackHot) {
4+
import.meta.webpackHot.accept()
5+
if (__VUE_HMR_RUNTIME__.updateThemeData) {
6+
__VUE_HMR_RUNTIME__.updateThemeData(themeData)
7+
}
8+
}
9+
10+
if (import.meta.hot) {
11+
import.meta.hot.accept(({ themeData }) => {
12+
__VUE_HMR_RUNTIME__.updateThemeData(themeData)
13+
})
14+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { CodeTabs } from "E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-markdown-tab/lib/client/components/CodeTabs.js";
2+
import { Tabs } from "E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-markdown-tab/lib/client/components/Tabs.js";
3+
import "E:/Github/VisionGalDoc/node_modules/@vuepress/plugin-markdown-tab/lib/client/styles/vars.css";
4+
5+
export default {
6+
enhance: ({ app }) => {
7+
app.component("CodeTabs", CodeTabs);
8+
app.component("Tabs", Tabs);
9+
},
10+
};

0 commit comments

Comments
 (0)