Skip to content

Commit 3411548

Browse files
committed
git init
0 parents  commit 3411548

File tree

20 files changed

+1733
-0
lines changed

20 files changed

+1733
-0
lines changed

.github/workflows/main.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# https://docs.github.com/en/actions
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [main]
6+
7+
name: publish
8+
9+
jobs:
10+
# https://github.com/pnpm/action-setup/tree/v4/?tab=readme-ov-file#use-cache-to-reduce-installation-time
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 9
26+
run_install: false
27+
28+
- name: Get pnpm store directory
29+
shell: bash
30+
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
31+
32+
- name: Setup pnpm cache
33+
uses: actions/cache@v4
34+
with:
35+
path: ${{ env.STORE_PATH }}
36+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+
restore-keys: |
38+
${{ runner.os }}-pnpm-store-
39+
40+
- name: Install dependencies
41+
run: pnpm install
42+
43+
- name: Build project
44+
run: pnpm build
45+
46+
- name: Install lusun-scripts
47+
run: npm i -g lusun-scripts
48+
49+
- name: Deploy to OSS
50+
env:
51+
ACCESS_KEY_ID: ${{ secrets.ACCESSKEYID }}
52+
ACCESS_KEY_SECRET: ${{ secrets.ACCESSKEYSECRET }}
53+
run: |
54+
lusun-scripts deploy \
55+
--accessKeyId $ACCESS_KEY_ID \
56+
--accessKeySecret $ACCESS_KEY_SECRET \
57+
--target .vitepress/dist \
58+
--directoryPath live \
59+
--bucket docs-lusun-web \
60+
--endpoint oss-cn-beijing.aliyuncs.com
61+
62+
- name: Feishu Notify
63+
env:
64+
FEISHU_ID: ${{ secrets.FEISHU_ID }}
65+
FEISHU_SECRET: ${{ secrets.FEISHU_SECRET }}
66+
run: |
67+
lusun-scripts feishu \
68+
--id $FEISHU_ID \
69+
--secret $FEISHU_SECRET \
70+
--message "{\"msg_type\": \"text\", \"content\": {\"text\": \"芦笋直播助手帮助中心发布完成~ \n访问地址 https://docs.lusun.com/lp \n执行人 ${GITHUB_ACTOR}\"}}"

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.DS_Store
2+
node_modules/
3+
dist/
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Editor directories and files
9+
.idea
10+
.vscode
11+
*.suo
12+
*.ntvs*
13+
*.njsproj
14+
*.sln
15+
16+
17+
.vitepress/dist
18+
.vitepress/cache

.vitepress/components/ImgCenter.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<template>
2+
<div class="imgLayout">
3+
<slot></slot>
4+
</div>
5+
</template>
6+
7+
<script setup>
8+
9+
</script>
10+
11+
<style scoped>
12+
.imgLayout {
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
}
17+
</style>

.vitepress/components/ImgDesc.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<div>
3+
<p align="center" style="font-size:12px; margin-top:0;">
4+
<slot></slot>
5+
</p>
6+
</div>
7+
</template>

.vitepress/components/Link.vue

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<script setup>
2+
const props = defineProps({
3+
title: {
4+
type: String,
5+
default: '这里是站点 title'
6+
},
7+
logo: {
8+
type: String,
9+
default: '这里是站点 logo'
10+
},
11+
url: {
12+
type: String,
13+
default: 'https://lusun.com'
14+
}
15+
})
16+
</script>
17+
18+
<template>
19+
<div class="main-container">
20+
<a :href="props.url">
21+
<slot>
22+
<div class="link-style">
23+
<img width="50px" :src="props.logo" alt="">
24+
<div class="title">{{ props.title }}</div>
25+
</div>
26+
</slot>
27+
</a>
28+
</div>
29+
</template>
30+
31+
<style scoped>
32+
.main-container {
33+
width: 100%;
34+
background-color: var(--card-bg-color);
35+
text-align: center;
36+
border-radius: 5px;
37+
padding: 10px;
38+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
39+
}
40+
41+
.main-container:hover {
42+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
43+
transform: scale(1.01);
44+
transition: transform 0.3s;
45+
}
46+
47+
48+
.link-style {
49+
color: var(--text-color);
50+
display: flex;
51+
justify-content: start;
52+
align-items: center;
53+
}
54+
55+
.title {
56+
margin-left: 10px;
57+
}
58+
</style>

.vitepress/config.mjs

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
import { defineConfig } from "vitepress";
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
base: "/live/",
6+
ignoreDeadLinks: true,
7+
title: "芦笋直播助手",
8+
description:
9+
"低门槛打造高水平直播间,留住观众",
10+
lang: "zh-Hans",
11+
head: [
12+
["link", { rel: "icon", href: "/live/logo.svg" }],
13+
// [
14+
// "script",
15+
// {},
16+
// `var _hmt = _hmt || [];
17+
// (function() {
18+
// var hm = document.createElement("script");
19+
// hm.src = "https://hm.baidu.com/hm.js?592ba55993f3df6afcc69f8088276562";
20+
// var s = document.getElementsByTagName("script")[0];
21+
// s.parentNode.insertBefore(hm, s);
22+
// })();`,
23+
// ],
24+
],
25+
markdown: {
26+
image: {
27+
// 默认禁用图片懒加载
28+
lazyLoading: true,
29+
},
30+
},
31+
themeConfig: {
32+
logo: "/logo.svg",
33+
nav: [
34+
{ text: "芦笋录屏", link: "https://lusun.com/" },
35+
{ text: "芦笋提词器", link: "https://tcq.lusun.com" },
36+
{ text: "关于我们", link: "https://lusun.com/about" },
37+
],
38+
sidebar: [
39+
{
40+
text: "基础教程",
41+
collapsed: false,
42+
items: [
43+
{ text: "芦笋直播助手攻略", link: "/basic/index" },
44+
{ text: "会员特权", link: "/basic/vip" },
45+
],
46+
},
47+
// {
48+
// text: "进阶教程",
49+
// collapsed: false,
50+
// items: [
51+
// {
52+
// text: "用芦笋制作“基础教育精品课”",
53+
// link: "/advanced/jingpinke",
54+
// },
55+
// { text: "两种人像抠图方式", link: "/advanced/koutu" },
56+
// { text: "添加视频封面", link: "/advanced/cover" },
57+
// { text: "虚拟头像使用教程", link: "/advanced/avatar" },
58+
// { text: "自定义水印", link: "/advanced/watermark" },
59+
// { text: "美颜等更多设置", link: "/advanced/moresetting" },
60+
// { text: "如何赚取收益", link: "/advanced/earnings" },
61+
// { text: "上传本地视频到芦笋空间", link: "/advanced/upload" },
62+
// { text: "文件夹功能&批量操作", link: "/advanced/folder" },
63+
// { text: "添加视频封面", link: "/advanced/addcover" },
64+
// { text: "芦笋群组", link: "/advanced/group" },
65+
// { text: "字幕教程", link: "/advanced/word" },
66+
// { text: "画笔功能", link: "/advanced/draw" },
67+
// { text: "视频剪辑", link: "/advanced/video" },
68+
// { text: "高级报表", link: "/advanced/form" },
69+
// { text: "视频分享", link: "/advanced/share" },
70+
// { text: "视频观看", link: "/advanced/see" },
71+
// { text: "在线录制", link: "/advanced/online" },
72+
// ],
73+
// },
74+
// {
75+
// text: "常见问题",
76+
// collapsed: false,
77+
// items: [
78+
// {
79+
// text: "声音问题",
80+
// collapsed: false,
81+
// items: [
82+
// { text: "Mac电脑录制系统声音", link: "/faq/voice/mac" },
83+
// { text: "录制的视频没有声音", link: "/faq/voice/novoice" },
84+
// ],
85+
// },
86+
// {
87+
// text: "摄像头问题",
88+
// collapsed: false,
89+
// items: [
90+
// { text: "摄像头打不开", link: "/faq/camera/cannot-open" },
91+
// {
92+
// text: "虚拟背景/智能抠像无法打开",
93+
// link: "/faq/camera/virtual",
94+
// },
95+
// ],
96+
// },
97+
// { text: "视频保存相关", link: "/faq/save" },
98+
// { text: "如何隐藏录制工具栏", link: "/faq/hidebar" },
99+
// { text: "录制的视频模糊", link: "/faq/blur" },
100+
// ],
101+
// },
102+
{ text: "联系我们", link: "/contact" },
103+
],
104+
search: {
105+
provider: "local",
106+
options: {
107+
detailedView: true,
108+
placeholder: "搜索文档",
109+
translations: {
110+
button: {
111+
buttonText: "搜索文档",
112+
buttonAriaLabel: "搜索文档",
113+
},
114+
modal: {
115+
searchBox: {
116+
resetButtonTitle: "清除查询条件",
117+
resetButtonAriaLabel: "清除查询条件",
118+
cancelButtonText: "取消",
119+
cancelButtonAriaLabel: "取消",
120+
},
121+
startScreen: {
122+
recentSearchesTitle: "搜索历史",
123+
noRecentSearchesText: "没有搜索历史",
124+
saveRecentSearchButtonTitle: "保存至搜索历史",
125+
removeRecentSearchButtonTitle: "从搜索历史中移除",
126+
favoriteSearchesTitle: "收藏",
127+
removeFavoriteSearchButtonTitle: "从收藏中移除",
128+
},
129+
errorScreen: {
130+
titleText: "无法获取结果",
131+
helpText: "你可能需要检查你的网络连接",
132+
},
133+
footer: {
134+
selectText: "选择",
135+
navigateText: "切换",
136+
closeText: "关闭",
137+
searchByText: "搜索提供者",
138+
},
139+
noResultsScreen: {
140+
noResultsText: "无法找到相关结果",
141+
suggestedQueryText: "你可以尝试查询",
142+
reportMissingResultsText: "你认为该查询应该有结果?",
143+
reportMissingResultsLinkText: "点击反馈",
144+
},
145+
},
146+
},
147+
},
148+
},
149+
// https://vitepress.dev/reference/default-theme-config
150+
docFooter: {
151+
prev: "上一页",
152+
next: "下一页",
153+
},
154+
155+
outline: {
156+
level: [2, 4],
157+
label: "页面导航",
158+
},
159+
160+
lastUpdated: {
161+
text: "最后更新于",
162+
formatOptions: {
163+
dateStyle: "short",
164+
timeStyle: "short",
165+
},
166+
},
167+
langMenuLabel: "多语言",
168+
returnToTopLabel: "回到顶部",
169+
sidebarMenuLabel: "菜单",
170+
darkModeSwitchLabel: "切换主题",
171+
lightModeSwitchTitle: "切换到浅色模式",
172+
darkModeSwitchTitle: "切换到深色模式",
173+
},
174+
});

0 commit comments

Comments
 (0)