Skip to content

Commit b180f0c

Browse files
authored
refactor: 站点改造,引入@142vip/vuepress模块,简化站点结构,删除冗余配置文件 (#178)
* refactor: 站点改造,引入`@142vip/vuepress`模块,简化站点结构,删除冗余配置文件 * perf(deps): 升级改造,优化侧边栏配置 * chore: update * chore: update * chore: update * chore: update
1 parent 4442a27 commit b180f0c

File tree

24 files changed

+1476
-1750
lines changed

24 files changed

+1476
-1750
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:20.17.0-alpine AS build_base
1010

11-
# 是否
11+
# 是否配置代理
1212
ARG NEED_PROXY=false
1313

1414
## 设置环境变量,支持容器构建时使用layer缓存,参考:https://pnpm.io/zh/docker
@@ -25,11 +25,12 @@ COPY . .
2525
RUN apk add --no-cache git --repository http://mirrors.aliyun.com/alpine/v3.14/main/
2626

2727
## 基于容器自动构建
28-
RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && if [ "$NEED_PROXY" = "false" ]; \
29-
then \
30-
pnpm build; \
31-
else \
32-
pnpm build:proxy; \
28+
RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && \
29+
if [ "$NEED_PROXY" = "false" ]; \
30+
then \
31+
pnpm build; \
32+
else \
33+
pnpm build:proxy; \
3334
fi;
3435

3536

@@ -48,7 +49,7 @@ ARG GIT_HASH
4849
# 作者信息 & 项目信息 & Git信息
4950
LABEL "maintainer"="$AUTHOR <$EMAIL>"
5051
LABEL "repo.name"=$APP_NAME "repo.version"=$APP_VERSION \
51-
"repo.description"="$DESCRIPTION" "repo.homePage"="$HOME_PAGE"
52+
"repo.description"="$APP_DESCRIPTION" "repo.homePage"="$HOME_PAGE"
5253
LABEL "git.hash"="$GIT_HASH"
5354

5455
# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 注意:--from参数

docs/.vuepress/styles/config.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ $code-dark-theme: 'atom-dark';
1717

1818
// 主题色 配合outlook显示
1919
//$theme-colors: #2196f3, #f26d6d, #3eaf7c, #fb9b5f;
20+
21+
$theme-color: #fb9b5f

docs/.vuepress/theme/READEME.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/.vuepress/theme/constant.ts

Lines changed: 0 additions & 95 deletions
This file was deleted.

docs/.vuepress/theme/headers.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/.vuepress/theme/i18n.ts

Lines changed: 0 additions & 102 deletions
This file was deleted.

docs/.vuepress/theme/layouts/NotFound.vue

Lines changed: 0 additions & 32 deletions
This file was deleted.

docs/.vuepress/theme/navbar.ts

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)