-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from lec-org/feat-doc
feat: ✨ 更新文档站点基础配置
- Loading branch information
Showing
38 changed files
with
17,538 additions
and
38,665 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: docs | ||
|
||
on: | ||
# 每当 push 到 main 分支时触发部署 | ||
push: | ||
branches: [master] | ||
# 手动触发部署 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: akhilmhdh/[email protected] | ||
with: | ||
image_size: 50 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录 | ||
fetch-depth: 0 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
# 选择要使用的 pnpm 版本 | ||
version: 7 | ||
# 使用 pnpm 安装依赖 | ||
run_install: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
# 选择要使用的 node 版本 | ||
node-version: 18 | ||
# 缓存 pnpm 依赖 | ||
cache: pnpm | ||
|
||
# 运行构建脚本 | ||
- name: Build VuePress site | ||
run: pnpm docs:build | ||
|
||
# 查看 workflow 的文档来获取更多信息 | ||
# @see https://github.com/crazy-max/ghaction-github-pages | ||
- name: Deploy to GitHub Pages | ||
uses: crazy-max/ghaction-github-pages@v2 | ||
with: | ||
# 部署到 gh-pages 分支 | ||
target_branch: gh-pages | ||
# 部署目录为 VuePress 的默认输出目录 | ||
build_dir: docs/.vuepress/dist | ||
env: | ||
# @see https://docs.github.com/cn/actions/reference/authentication-in-a-workflow#about-the-github_token-secret | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,5 +1,3 @@ | ||
node_modules | ||
/dist | ||
.dumi/tmp | ||
.dumi/tmp-production | ||
.DS_Store | ||
.vuepress/.cache | ||
.vuepress/.temp | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
import { defineUserConfig } from "vuepress"; | ||
import type { DefaultThemeOptions } from "vuepress"; | ||
import recoTheme from "vuepress-theme-reco"; | ||
|
||
export default defineUserConfig({ | ||
title: "vuepress-theme-reco", | ||
description: "Just playing around", | ||
theme: recoTheme({ | ||
style: "@vuepress-reco/style-default", | ||
logo: "/logo.png", | ||
author: "reco_luan", | ||
authorAvatar: "/head.png", | ||
docsRepo: "https://github.com/vuepress-reco/vuepress-theme-reco-next", | ||
docsBranch: "main", | ||
docsDir: "example", | ||
lastUpdatedText: "", | ||
// series 为原 sidebar | ||
series: { | ||
"/docs/theme-reco/": [ | ||
{ | ||
text: "module one", | ||
children: ["home", "theme"], | ||
}, | ||
{ | ||
text: "module two", | ||
children: ["api", "plugin"], | ||
}, | ||
], | ||
}, | ||
navbar: [ | ||
{ text: "Home", link: "/" }, | ||
{ text: "Categories", link: "/categories/reco/1/" }, | ||
{ text: "Tags", link: "/tags/tag1/1/" }, | ||
{ | ||
text: "Docs", | ||
children: [ | ||
{ text: "vuepress-reco", link: "/docs/theme-reco/theme" }, | ||
{ text: "vuepress-theme-reco", link: "/blogs/other/guide" }, | ||
], | ||
}, | ||
], | ||
bulletin: { | ||
body: [ | ||
{ | ||
type: "text", | ||
content: `🎉🎉🎉 reco 主题 2.x 已经接近 Beta 版本,在发布 Latest 版本之前不会再有大的更新,大家可以尽情尝鲜了,并且希望大家在 QQ 群和 GitHub 踊跃反馈使用体验,我会在第一时间响应。`, | ||
style: "font-size: 12px;", | ||
}, | ||
{ | ||
type: "hr", | ||
}, | ||
{ | ||
type: "title", | ||
content: "QQ 群", | ||
}, | ||
{ | ||
type: "text", | ||
content: ` | ||
<ul> | ||
<li>QQ群1:1037296104</li> | ||
<li>QQ群2:1061561395</li> | ||
<li>QQ群3:962687802</li> | ||
</ul>`, | ||
style: "font-size: 12px;", | ||
}, | ||
{ | ||
type: "hr", | ||
}, | ||
{ | ||
type: "title", | ||
content: "GitHub", | ||
}, | ||
{ | ||
type: "text", | ||
content: ` | ||
<ul> | ||
<li><a href="https://github.com/vuepress-reco/vuepress-theme-reco-next/issues">Issues<a/></li> | ||
<li><a href="https://github.com/vuepress-reco/vuepress-theme-reco-next/discussions/1">Discussions<a/></li> | ||
</ul>`, | ||
style: "font-size: 12px;", | ||
}, | ||
{ | ||
type: "hr", | ||
}, | ||
{ | ||
type: "buttongroup", | ||
children: [ | ||
{ | ||
text: "打赏", | ||
link: "/docs/others/donate.html", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
// commentConfig: { | ||
// type: 'valie', | ||
// // options 与 1.x 的 valineConfig 配置一致 | ||
// options: { | ||
// // appId: 'xxx', | ||
// // appKey: 'xxx', | ||
// // placeholder: '填写邮箱可以收到回复提醒哦!', | ||
// // verify: true, // 验证码服务 | ||
// // notify: true, | ||
// // recordIP: true, | ||
// // hideComments: true // 隐藏评论 | ||
// }, | ||
// }, | ||
}), | ||
// debug: true, | ||
}); |
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.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.