Skip to content

Commit

Permalink
Merge pull request #4 from lec-org/feat-doc
Browse files Browse the repository at this point in the history
feat: ✨ 更新文档站点基础配置
  • Loading branch information
CoderSerio authored Oct 11, 2023
2 parents ecf5a8a + 59e824c commit 64410f8
Show file tree
Hide file tree
Showing 38 changed files with 17,538 additions and 38,665 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/ci.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/issue-label.yaml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/lec.yaml
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 }}
35 changes: 0 additions & 35 deletions .github/workflows/release.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions docs/.dumirc.ts

This file was deleted.

13 changes: 0 additions & 13 deletions docs/.editorconfig

This file was deleted.

8 changes: 3 additions & 5 deletions docs/.gitignore
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
4 changes: 0 additions & 4 deletions docs/.husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions docs/.husky/pre-commit

This file was deleted.

3 changes: 0 additions & 3 deletions docs/.prettierignore

This file was deleted.

14 changes: 0 additions & 14 deletions docs/.prettierrc.js

This file was deleted.

111 changes: 111 additions & 0 deletions docs/.vuepress/config.ts
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,
});
39 changes: 39 additions & 0 deletions docs/.vuepress/public/bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 0 additions & 21 deletions docs/LICENSE

This file was deleted.

Loading

0 comments on commit 64410f8

Please sign in to comment.