AGENT SKILL
mdmaker-deploy
Use when you need to deploy, build, or update the local MDMaker-based Radxa documentation mirror under ~/.openclaw/MDMaker.
使用场景运维与部署
- License 许可
- MIT
- 最近更新
- 2026-03-12
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- mdmaker-deploy
- description
- Use when you need to deploy, build, or update the local MDMaker-based Radxa documentation mirror under ~/.openclaw/MDMaker.
02 资源文件 19
- 脚本data/_sync_all.py21.3 KB
- 资产文件data/app-interface.csv9.5 KB
- 资产文件data/charts.csv18.9 KB
- 资产文件data/colors.csv31.5 KB
- 资产文件data/design.csv103.7 KB
- 资产文件data/draft.csv103.8 KB
- 资产文件data/google-fonts.csv725.9 KB
- 资产文件data/icons.csv20.2 KB
- 资产文件data/landing.csv16.3 KB
- 资产文件data/products.csv56.6 KB
- 资产文件data/react-performance.csv14.5 KB
- 资产文件data/stacks/react-native.csv9.7 KB
- 资产文件data/styles.csv139.3 KB
- 资产文件data/typography.csv48.5 KB
- 资产文件data/ui-reasoning.csv51.7 KB
- 资产文件data/ux-guidelines.csv18.2 KB
- 脚本scripts/core.py11.2 KB
- 脚本scripts/design_system.py42.3 KB
- 脚本scripts/search.py5.2 KB
03 SKILL.md 正文
SKILL.md - MDMaker 瑞莎文档本地部署
简介
本技能用于本地部署和管理瑞莎(Radxa)参考文档。MDMaker 是一个从 radxa-docs 仓库生成离线文档的工具。
重要:部署目录选择在 ~/.openclaw/MDMaker/,避免被用户误删。
文档位置
- 项目目录:
~/.openclaw/MDMaker/ - 构建输出:
~/.openclaw/MDMaker/dist/ - 原始仓库:
~/.openclaw/MDMaker/radxa-docs/
语言目录
构建输出 dist/ 下包含两种语言的文档:
| 目录 | 说明 |
|---|---|
dist/zh/ |
中文文档 |
dist/en/ |
英文文档 |
工具说明
本项目包含两个主要工具:
build_md_docs.py
- 用途:第一次部署后生成可用于参考的瑞莎文档
- 功能:从 radxa-docs 仓库生成完整的离线文档
- 运行方式:
cd ~/.openclaw/MDMaker
source venv/bin/activate
python build_md_docs.py
update_md_docs.py
- 用途:更新和同步最新的瑞莎文档
- 功能:
- 自动 git pull 最新的 radxa-docs 仓库
- 比较差异
- 只更新有变动的文档
- 同步到 dist 目录
- 运行方式:
cd ~/.openclaw/MDMaker
source venv/bin/activate
python update_md_docs.py
部署步骤
1. 克隆仓库
cd ~/.openclaw && git clone -b agent https://github.com/ZIFENG278/MDMaker.git
2. 创建虚拟环境并安装依赖
cd ~/.openclaw/MDMaker
python3 -m venv venv
source venv/bin/activate
pip install requests tqdm
3. 构建文档(首次部署)
cd ~/.openclaw/MDMaker
source venv/bin/activate
python build_md_docs.py
构建完成后,文档会输出到 ~/.openclaw/MDMaker/dist/ 目录。
4. 更新文档
当需要更新文档时,运行:
cd ~/.openclaw/MDMaker
source venv/bin/activate
python update_md_docs.py
这个脚本会:
- 自动 git pull 最新的 radxa-docs 仓库
- 比较差异
- 只更新有变动的文档
- 同步到 dist 目录
使用方法
当用户要求部署瑞莎文档时,按照以下步骤执行:
- 检查
~/.openclaw/MDMaker/目录是否存在 - 如果不存在,克隆仓库
- 检查虚拟环境是否存在,如果不存在,创建并安装依赖
- 首次部署运行
python build_md_docs.py构建文档 - 更新文档运行
python update_md_docs.py - 确认构建成功,检查
~/.openclaw/MDMaker/dist/目录
验证构建
构建完成后,可以验证:
ls ~/.openclaw/MDMaker/dist/
# 应该看到:zh en ...
ls ~/.openclaw/MDMaker/dist/zh/
# 应该看到:rock2 rock3 rock4 rock5 zero orion ...
ls ~/.openclaw/MDMaker/dist/zh/orion/o6n/hardware-use/
# 应该看到硬件信息文档
# 英文文档结构相同
ls ~/.openclaw/MDMaker/dist/en/rock5/
注意事项
- 首次构建需要克隆完整的 radxa-docs 仓库,可能需要一些时间
- 更新文档需要确保网络能访问 GitHub
- 构建后的文档路径用于 radxa-doc 技能查询
- 部署在
~/.openclaw/下可避免被用户误删
04 同仓库更多 Skills
radxa-doc
Use when you need to query locally deployed Radxa product documentation to confirm hardware details, interfaces, or board-specific technical information before coding or troubleshooting.
★ 0
device-info
Use when you need to detect the current hardware model and map a Radxa device to the correct product series before reading documentation or performing board-specific work.
★ 0