mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-05 03:27:57 +08:00
feat: 采用官方主题theme-hope
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -2,13 +2,14 @@
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:16.12.0-alpine AS build_base
|
||||
LABEL version="Beta1.0" description="408CSFamily合集"
|
||||
LABEL author="【Github&公众号】:Rong姐姐好可爱" email="fairy@2925.com"
|
||||
|
||||
RUN mkdir -p /apps
|
||||
## 确定工作空间 /apps
|
||||
|
||||
WORKDIR /apps
|
||||
COPY . /apps
|
||||
COPY . .
|
||||
|
||||
## 安装依赖
|
||||
RUN npm i pnpm@6 -g && pnpm i -D && npm run build
|
||||
RUN npm i pnpm@6 -g && pnpm i -D && pnpm build
|
||||
|
||||
|
||||
|
||||
@@ -18,6 +19,5 @@ COPY --from=build_base /apps/docs/.vuepress/dist/ /usr/share/nginx/html/
|
||||
|
||||
COPY nginx.conf /etc/nginx/
|
||||
|
||||
EXPOSE 7000
|
||||
|
||||
#EXPOSE 7000
|
||||
#CMD ["nginx", "-g", "daemon off;"]
|
||||
@@ -2,7 +2,7 @@ version: '2'
|
||||
services:
|
||||
### 408CSFamily服务,ip范围 172.30.0.200
|
||||
408CSFamily:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/142vip/doc_book:408CSFamily_0.0.1
|
||||
image: registry.cn-hangzhou.aliyuncs.com/142vip/doc_book:408CSFamily-0.0.1
|
||||
container_name: 408CSFamily
|
||||
restart: on-failure
|
||||
hostname: 408CSFamily
|
||||
@@ -10,7 +10,7 @@ services:
|
||||
- "7000:80"
|
||||
networks:
|
||||
net:
|
||||
ipv4_address: 172.30.0.200
|
||||
ipv4_address: 172.30.0.100
|
||||
|
||||
## 创建桥接网络
|
||||
networks:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defaultTheme } from '@vuepress/theme-default'
|
||||
import { hopeTheme } from "vuepress-theme-hope";
|
||||
|
||||
export default {
|
||||
title: "计算机应试全家桶",
|
||||
@@ -21,12 +21,27 @@ export default {
|
||||
})();`
|
||||
]
|
||||
],
|
||||
theme: defaultTheme({
|
||||
// 参考主题:https://theme-hope.vuejs.press/zh/config/intro.html#%E9%85%8D%E7%BD%AE%E6%A6%82%E5%BF%B5
|
||||
theme: hopeTheme({
|
||||
hostname:'https://408.142vip.cn',
|
||||
author:{
|
||||
name:'ChuFan',
|
||||
email:'fairy_408@2925.com',
|
||||
url:'https://www.142vip.cn'
|
||||
},
|
||||
favicon:"/408_favicon.ico",
|
||||
logo: "/assets/408_logo.png",
|
||||
darkMode: false, // 禁用夜色
|
||||
navbar: require("./config/navbar/index"), // 注意这个关键字有所改变
|
||||
sidebar: require("./config/sidebar/index"),
|
||||
smoothScroll: true,
|
||||
// 博客配置
|
||||
blog:{
|
||||
name:'',
|
||||
medias:{
|
||||
"BiliBili": "哔哩哔哩"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
lastUpdated: true,
|
||||
lastUpdatedText: "最近更新",
|
||||
contributorsText: '贡献者',
|
||||
@@ -37,9 +52,12 @@ export default {
|
||||
editLink: false,
|
||||
// 默认为 "Edit this page"
|
||||
// editLinkText: '帮助我们改善此页面!',
|
||||
displayAllHeaders: true,// 默认值:false 显示所有页面的标题链接
|
||||
search: true,
|
||||
searchMaxSuggestions: 10,
|
||||
plugins:{
|
||||
// 开启博客功能
|
||||
blog:true
|
||||
}
|
||||
}),
|
||||
// plugins: [
|
||||
// // 全文搜索 参考配置:https://github.com/vuepress/vuepress-next/blob/main/docs/.vuepress/config.ts
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
home: true
|
||||
heroImage: https://static01.imgkr.com/temp/f0108d7c178b4ce196e43ebec14fbf23.png
|
||||
heroImageDark:https://vuejs.org/images/logo.png
|
||||
heroImageDark: ://vuejs.org/images/logo.png
|
||||
heroText: 计算机应试全家桶
|
||||
externalLinkIcon: false
|
||||
tagline: 磨刀不误砍柴工、读完硕士再打工,笔记内容持续更新...
|
||||
@@ -22,54 +22,54 @@ features:
|
||||
details: 通过以项目Demo示例的方式,对框架常用的功能进行Code编写和整理,提供有效且易用的代码封装。
|
||||
|
||||
footerColumn: 3
|
||||
footerWrap:
|
||||
footerWrap:
|
||||
- headline: 相关资料
|
||||
items:
|
||||
- title: 王道论坛
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: 全平台都可以关注
|
||||
- title: 研招网
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: 考研最新消息
|
||||
- title: 王道论坛
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: 全平台都可以关注
|
||||
- title: 研招网
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: 考研最新消息
|
||||
- headline: 开源共享
|
||||
items:
|
||||
- title: 408Family
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-axios-plus
|
||||
- title: 408CSFamily
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-grpc-plus
|
||||
- title: mysql
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-mysql-plus
|
||||
- title: sequelize
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-sequleize-plus
|
||||
- title: MQ
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-rabbit-plus
|
||||
- title: 408Family
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-axios-plus
|
||||
- title: 408CSFamily
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-grpc-plus
|
||||
- title: mysql
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-mysql-plus
|
||||
- title: sequelize
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-sequleize-plus
|
||||
- title: MQ
|
||||
link: https://github.com/zpfz/vuepress-theme-antdocs
|
||||
details: egg-rabbit-plus
|
||||
- headline: 线上平台
|
||||
items:
|
||||
- title: Oauth2
|
||||
link: http://oauth2.142vip.cn
|
||||
details: 授权管理
|
||||
- title: Yapi
|
||||
link: https://yapi.142vip.cn
|
||||
details: 高效、易用的api平台
|
||||
- title: Oauth2
|
||||
link: http://oauth2.142vip.cn
|
||||
details: 授权管理
|
||||
- title: Yapi
|
||||
link: https://yapi.142vip.cn
|
||||
details: 高效、易用的api平台
|
||||
- headline: 联系方式
|
||||
items:
|
||||
- title: 掘金
|
||||
link: https://juejin.cn/user/448256476724807
|
||||
details: 不定期更新
|
||||
- title: CSDN
|
||||
link: https://blog.csdn.net/Mmdapls
|
||||
details: 不定期更新
|
||||
- title: Github
|
||||
link: https://github.com/mmdapl
|
||||
details: 日常更新
|
||||
- title: 哔哩哔哩
|
||||
link: https://space.bilibili.com/350937042
|
||||
details: 不定期更新
|
||||
- title: 掘金
|
||||
link: https://juejin.cn/user/448256476724807
|
||||
details: 不定期更新
|
||||
- title: CSDN
|
||||
link: https://blog.csdn.net/Mmdapls
|
||||
details: 不定期更新
|
||||
- title: Github
|
||||
link: https://github.com/mmdapl
|
||||
details: 日常更新
|
||||
- title: 哔哩哔哩
|
||||
link: https://space.bilibili.com/350937042
|
||||
details: 不定期更新
|
||||
# <a href="https://tongji.baidu.com/web/welcome/login" target="_blank">百度统计</a>
|
||||
footer: Copyrights © 2015-2021 妍荣姑娘网络工作室 | <a href="https://github.com/mmdapl" target="_blank">Chu·Fan</a>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ http {
|
||||
access_log off; ## 关闭正常访问日志
|
||||
keepalive_timeout 3000;
|
||||
server {
|
||||
listen 7000;
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
#access_log /var/log/nginx/access.log main;
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
"author": "Rong姐姐好可爱",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@vuepress/client": "^2.0.0-beta.59",
|
||||
"@vuepress/theme-default": "2.0.0-beta.59",
|
||||
"@vuepress/client": "2.0.0-beta.60",
|
||||
"vue": "^3.2.45",
|
||||
"vuepress": "^2.0.0-beta.59"
|
||||
"vuepress": "2.0.0-beta.60",
|
||||
"vuepress-theme-hope": "^2.0.0-beta.171"
|
||||
}
|
||||
}
|
||||
|
||||
4685
pnpm-lock.yaml
generated
4685
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@
|
||||
|
||||
## 功能:清除容器,删除旧镜像,创建新的容器
|
||||
## 参考:https://blog.csdn.net/Dontla/article/details/125210694
|
||||
## 作者:Rong姐姐好可爱
|
||||
## 作者:储凡
|
||||
## 使用示例:bash xxx.sh 容器名称 镜像地址
|
||||
##
|
||||
|
||||
@@ -88,11 +88,11 @@ deploy_to_ali(){
|
||||
echo -e "${successLogger}---------------- deploy ${containerName} ali start ---------------- "
|
||||
|
||||
docker run -d --name "${containerName}" \
|
||||
-p 7000:7000 \
|
||||
-p 7000:80 \
|
||||
--network="${networkName}" \
|
||||
--restart=unless-stopped \
|
||||
--ip=172.30.0.200 \
|
||||
"${repoAddress}:${containerName}_${version}"
|
||||
--ip=172.30.0.100 \
|
||||
"${repoAddress}:${containerName}-${version}"
|
||||
|
||||
echo -e "${successLogger}---------------- deploy ${containerName} ali end ------------------ "
|
||||
docker ps
|
||||
|
||||
Reference in New Issue
Block a user