# 周易 64 卦内容库 本目录存放知命阁(zhimingge)使用的《周易》原文 Markdown 内容,源自 zhouyi 项目合并迁入。 ## 目录结构 ``` content/zhouyi/ ├── docs/ # 繁体精简版(AI 解读主用) │ ├── index.md # 64 卦总览 │ ├── 01.乾为天/ # 各卦详情 │ ├── other/ # 简体图文版(学习页主用) │ └── assets/css/ # 样式 ├── scripts/ # 内容维护脚本(Python) ├── mkdocs.yml # 可选:MkDocs 本地预览配置 └── requirements.txt # MkDocs 依赖 ``` ## 在 Next.js 中的使用 - AI 六爻解读:`lib/content/zhouyi.ts` 读取 `docs/{guaMark}/index.md` - 易经学习页(规划):`/learn` 渲染 `docs/` 与 `docs/other/` 下的 Markdown ## 可选:MkDocs 本地预览 如需独立预览 64 卦文档站: ```bash cd content/zhouyi python3 -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -r requirements.txt mkdocs serve ``` 访问 http://127.0.0.1:8080 ## 内容维护脚本 位于 `scripts/` 目录: | 脚本 | 用途 | |------|------| | `hide.py` | 插入 front matter 隐藏导航 | | `rename.py` | 重命名 docs 目录与链接 | | `rename-other.py` | 重命名 other 目录 | | `overview.py` | 生成总览表行 | | `overview-other.py` | 生成 other 总览表行 |