-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
954c20f
commit 04cf1e6
Showing
45 changed files
with
8,397 additions
and
1,657 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,47 @@ | ||
|
||
name: 部署文档 | ||
|
||
on: | ||
push: | ||
branches: | ||
# 确保这是你正在使用的分支名称 | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy-gh-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
# 如果你文档需要 Git 子模块,取消注释下一行 | ||
# submodules: true | ||
|
||
|
||
|
||
- name: 设置 Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
|
||
- name: 安装依赖 | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: 构建文档 | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
run: |- | ||
yarn run docs:build | ||
> docs/.vuepress/dist/.nojekyll | ||
- name: 部署文档 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
# 这是文档部署到的分支名称 | ||
branch: gh-pages | ||
folder: docs/.vuepress/dist |
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
Binary file not shown.
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 @@ | ||
nodeLinker: node-modules |
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,21 +1,15 @@ | ||
import { defineUserConfig } from 'vuepress' | ||
import { defineUserConfig } from "vuepress"; | ||
import theme from "./theme.js"; | ||
|
||
export default defineUserConfig({ | ||
//lang: 'zh-CN', | ||
title: '你好, VuePress !', | ||
description: '这是我的第一个 VuePress 站点', | ||
locales: { | ||
// 键名是该语言所属的子路径 | ||
// 作为特例,默认语言可以使用 '/' 作为其路径。 | ||
'/': { | ||
lang: 'zh-CN', | ||
title: 'VuePress', | ||
description: 'Vue-powered Static Site Generator', | ||
}, | ||
'/zh/': { | ||
lang: 'en-US', | ||
title: 'VuePress', | ||
description: 'Vue 驱动的静态网站生成器', | ||
}, | ||
} | ||
}) | ||
base: "/", | ||
|
||
lang: "zh-CN", | ||
title: "文档演示", | ||
description: "vuepress-theme-hope 的文档演示", | ||
|
||
theme, | ||
|
||
// 和 PWA 一起启用 | ||
// shouldPrefetch: false, | ||
}); |
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,30 @@ | ||
import { navbar } from "vuepress-theme-hope"; | ||
|
||
export default navbar([ | ||
"/", | ||
"/demo/", | ||
{ | ||
text: "指南", | ||
icon: "lightbulb", | ||
prefix: "/guide/", | ||
children: [ | ||
{ | ||
text: "Bar", | ||
icon: "lightbulb", | ||
prefix: "bar/", | ||
children: ["baz", { text: "...", icon: "ellipsis", link: "" }], | ||
}, | ||
{ | ||
text: "Foo", | ||
icon: "lightbulb", | ||
prefix: "foo/", | ||
children: ["ray", { text: "...", icon: "ellipsis", link: "" }], | ||
}, | ||
], | ||
}, | ||
{ | ||
text: "V2 文档", | ||
icon: "book", | ||
link: "https://theme-hope.vuejs.press/zh/", | ||
}, | ||
]); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.