Skip to content

Commit 0c6c457

Browse files
committed
refactor: move to hope theme
1 parent 3d63e45 commit 0c6c457

File tree

277 files changed

+19471
-16531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+19471
-16531
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
!docs/.vuepress/
2+
docs/.vuepress/.temp/
3+
docs/.vuepress/.cache/
4+
docs/.vuepress/dist/

.gitignore

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
!.vscode/settings.json
19-
.idea
20-
.DS_Store
21-
*.suo
22-
*.ntvs*
23-
*.njsproj
24-
*.sln
25-
*.sw?
26-
27-
# VuePress
28-
.temp
29-
.cache
1+
# project definition
2+
*.cmd
3+
4+
# vuepress
5+
src/.vuepress/.cache/
6+
src/.vuepress/.temp/
7+
.cache
8+
dist
9+
10+
# Node dependencies
11+
node_modules
12+
13+
# Logs
14+
logs
15+
*.log
16+
17+
# Misc
18+
.DS_Store
19+
.fleet
20+
.idea
21+
22+
# Local env files
23+
.env
24+
.env.*
25+
!.env.example

.markdownlint.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
default: true
2-
3-
# line-length (default: 80)
4-
MD013: false
5-
6-
# no-inline-html (allow only AutoCatalog)
7-
MD033:
8-
allowed_elements:
9-
- AutoCatalog
1+
default: true
2+
3+
# line-length (default: 80)
4+
MD013: false
5+
6+
# no-inline-html (allow only Catalog)
7+
MD033:
8+
allowed_elements:
9+
- Catalog

.vscode/extensions.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{
2-
"recommendations": [
3-
"yzhang.markdown-all-in-one",
4-
"vstirbu.vscode-mermaid-preview",
5-
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
6-
"bierner.markdown-mermaid",
7-
"DavidAnson.vscode-markdownlint"
8-
]
9-
}
1+
{
2+
"recommendations": [
3+
"yzhang.markdown-all-in-one",
4+
"vstirbu.vscode-mermaid-preview",
5+
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
6+
"bierner.markdown-mermaid",
7+
"DavidAnson.vscode-markdownlint"
8+
]
9+
}

Dockerfile

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
# Builder
2-
FROM node:20.9.0-bookworm as builder
3-
4-
WORKDIR /app
5-
6-
COPY . ./
7-
8-
ENV NODE_OPTIONS=--max-old-space-size=4096
9-
10-
RUN npm -v \
11-
&& npm config set registry https://registry.npmmirror.com/ \
12-
&& npm install -g pnpm \
13-
&& pnpm -v \
14-
&& pnpm config set registry https://registry.npmmirror.com/ \
15-
&& pnpm install \
16-
&& pnpm build
17-
18-
# Nginx Server
19-
FROM nginx:1.25.3-alpine3.18-slim
20-
21-
WORKDIR /usr/share/nginx/html/vuepress-frontend-notes/
22-
23-
COPY --from=builder /app/docs/.vuepress/dist/ ./
24-
25-
RUN echo "<script>window.location.href = '/vuepress-frontend-notes/'</script>" > /usr/share/nginx/html/index.html
26-
27-
EXPOSE 80
28-
29-
CMD ["nginx", "-g", "daemon off;"]
1+
ARG NODE_VERSION=20.12.2
2+
ARG NGINX_VERSION=1.25.5-alpine3.19-slim
3+
ARG NPM_REGISTER=https://registry.npmjs.org
4+
5+
# Builder
6+
FROM node:$NODE_VERSION-bookworm as builder
7+
WORKDIR /app
8+
ARG NPM_REGISTER
9+
COPY . ./
10+
ENV NODE_OPTIONS=--max-old-space-size=4096
11+
RUN npm -v \
12+
&& npm config set registry $NPM_REGISTER \
13+
&& npm install -g pnpm \
14+
&& pnpm -v \
15+
&& pnpm config set registry $NPM_REGISTER \
16+
&& pnpm install \
17+
&& pnpm build
18+
19+
# Nginx Server
20+
FROM nginx:$NGINX_VERSION
21+
WORKDIR /usr/share/nginx/html/vuepress-frontend-notes/
22+
COPY --from=builder /app/src/.vuepress/dist/ ./
23+
RUN echo "<script>window.location.href = '/vuepress-frontend-notes/'</script>" > /usr/share/nginx/html/index.html
24+
EXPOSE 80
25+
CMD ["nginx", "-g", "daemon off;"]

config.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/* eslint-disable perfectionist/sort-objects */
2+
3+
export const config = {
4+
/**
5+
* 项目基础路径
6+
*/
7+
base: '/vuepress-frontend-notes/',
8+
/**
9+
* 项目标题
10+
*/
11+
title: '前端笔记',
12+
/**
13+
* 项目描述
14+
*/
15+
description: '鸭梨的前端笔记',
16+
/**
17+
* 作者信息
18+
*/
19+
author: {
20+
name: '鸭梨',
21+
url: 'https://blog.alexsun.top/',
22+
},
23+
/**
24+
* 页脚
25+
*/
26+
footer: '使用 <a href="https://theme-hope.vuejs.press/zh/" target="_blank">Theme Hope</a> 主题',
27+
/**
28+
* 项目主页
29+
*/
30+
hostname: 'https://blog.alexsun.top/vuepress-frontend-notes/',
31+
/**
32+
* 仓库地址
33+
*/
34+
repo: 'Sun-ZhenXing/vuepress-frontend-notes',
35+
}

docs/README.md

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

docs/notebook/css/sass/index.md

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

docs/notebook/html/index.md

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

docs/notebook/js/handwrite-36/src/01-data-type-determination.js

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

docs/notebook/js/handwrite-36/src/02-prototype-chain-inheritance-1.js

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

docs/notebook/js/handwrite-36/src/02-prototype-chain-inheritance-2.js

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

docs/notebook/js/handwrite-36/src/02-prototype-chain-inheritance-3.js

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

docs/notebook/js/handwrite-36/src/02-prototype-chain-inheritance-4.js

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

docs/notebook/js/handwrite-36/src/03-array-de-duplication.js

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

0 commit comments

Comments
 (0)