This commit is contained in:
eric
2026-03-11 10:26:40 -05:00
parent 4c041d939a
commit 8cbc092437
71 changed files with 13541 additions and 92 deletions

36
public/markdown/README.md Normal file
View File

@@ -0,0 +1,36 @@
# Markdown 内容目录
## 目录结构
```
public/markdown/
├── course/ # 课程配套文章
│ ├── 1/ # 课程 ID
│ │ ├── 1.md # 章节 ID
│ │ ├── 2.md
│ │ └── 3.md
│ └── 2/
│ ├── 1.md
│ └── 2.md
└── ebook/ # 电子书章节
├── 1/
│ ├── 1.md
│ ├── 2.md
│ └── 3.md
└── 2/
├── 1.md
└── 2.md
```
## 引用方式
**数据库 / mock 中的 `article_markdown` 或 `content` 字段:**
| 格式 | 说明 |
|------|------|
| `@file:course/1/1` | 加载 `/markdown/course/1/1.md` |
| `@file:ebook/2/3` | 加载 `/markdown/ebook/2/3.md` |
| `# 标题\n\n内容...` | 直接使用字符串 Markdown |
- 文件路径:`@file:{type}/{id}/{chapterId}`,扩展名 `.md` 可省略
- 字符串:非 `@file:` 开头的任意 Markdown 文本

View File

@@ -0,0 +1,22 @@
# 项目初始化
## 本节要点
- 使用 Vite 创建项目
- 配置基础依赖
- 目录结构说明
## 核心命令
```bash
npm create vite@latest my-app -- --template vue
cd my-app && npm install
```
## 目录说明
| 目录 | 说明 |
|------|------|
| src | 源码目录 |
| public | 静态资源 |
| dist | 构建输出 |

View File

@@ -0,0 +1,9 @@
# 类型进阶
## 泛型基础
```ts
function identity<T>(arg: T): T {
return arg
}
```

View File

@@ -0,0 +1,13 @@
# 环境搭建
## 安装 Node.js
请确保已安装 Node.js 18+。
```bash
node -v
```
## 创建项目
使用 Vite 创建 Vue 3 项目。

View File

@@ -0,0 +1,3 @@
# Vite
下一代前端构建工具。

5
public/robots.txt Normal file
View File

@@ -0,0 +1,5 @@
User-agent: *
Allow: /
Disallow: /login
Disallow: /vip
Disallow: /paid