Skip to content

Commit 7a85c28

Browse files
committed
Initial commit
0 parents  commit 7a85c28

File tree

9,933 files changed

+1407203
-0
lines changed

Some content is hidden

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

9,933 files changed

+1407203
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy VuePress Site
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: "20"
29+
cache: "npm"
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Build
35+
run: npm run docs:build
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: docs/.vuepress/dist
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
我已为您制定了构建个人知识库网站的详细计划。鉴于您希望网站结构与 `geeksman-blogs` 保持一致,我们将基于该仓库进行克隆和改造,同时增强对数学公式(LaTeX)的支持。
2+
3+
### 1. 初始化项目
4+
- [ ] **克隆仓库**:将 `bigrich-luo/geeksman-blogs` 仓库克隆到本地。
5+
- [ ] **清理内容**:保留项目配置和主题样式,删除原作者的博客文章和个人信息。
6+
- [ ] **依赖安装**:安装项目所需的 Node.js 依赖包。
7+
8+
### 2. 功能增强与配置
9+
- [ ] **配置 LaTeX 支持**
10+
- 检查当前 VuePress 版本(v1 或 v2)。
11+
- 安装并配置数学公式插件(如 `markdown-it-katex``@vuepress/plugin-markdown-math`),确保支持 `$E=mc^2$``$$...$$` 语法。
12+
- [ ] **个性化设置**
13+
- 修改 `config.js` 中的网站标题、描述、作者信息为您个人信息。
14+
- 调整导航栏(Navbar),设置 "数学笔记"、"代码笔记"、"衍生品笔记" 的入口。
15+
16+
### 3. 内容结构搭建
17+
- [ ] **创建目录结构**
18+
- `docs/math/`: 存放数学笔记
19+
- `docs/code/`: 存放代码笔记
20+
- `docs/derivatives/`: 存放衍生品笔记
21+
- [ ] **创建示例内容**
22+
- 在每个分类下创建一个 `README.md` 示例文件。
23+
- 演示 LaTeX 公式渲染(如积分、矩阵)。
24+
- 演示代码高亮(如 Python/C++ 代码块)。
25+
- 演示图片插入功能。
26+
27+
### 4. 验证与交付
28+
- [ ] **本地启动**:运行开发服务器,检查网站在桌面端和移动端的显示效果(响应式布局)。
29+
- [ ] **跨设备测试**:确认导航栏和内容在窄屏(手机)模式下能正常折叠和显示。
30+
- [ ] **交付源码**:确认所有功能正常后,您可以直接使用该目录作为您的个人笔记仓库。
31+
32+
准备就绪后,请批准此计划,我将开始执行。

0 commit comments

Comments
 (0)