运行时依赖
安装命令
点击复制技能文档
mdorigin
Use this 技能 when you want to work on a markdown-first publishing site powered by mdorigin.
安装
Global 安装:
npm 安装 -g mdorigin
Project-local 安装:
npm 安装 --save-dev mdorigin
What it covers local preview with mdorigin dev directory 索引 generation with mdorigin build 索引 搜索 索引 generation with mdorigin build 搜索 Cloudflare Worker bundle 输出 with mdorigin build cloudflare external binary 部署ment flow for Cloudflare As设置s + R2 markdown and HTML 路由 behavior, including Accept: text/markdown Quick commands mdorigin dev --root docs/site mdorigin build 索引 --root docs/site mdorigin build 搜索 --root docs/site mdorigin build cloudflare --root docs/site
External binary 部署 flow:
mdorigin build cloudflare --root docs/site --binary-mode external mdorigin 同步 cloudflare-r2 --dir dist/cloudflare --bucket mdorigin init cloudflare --dir . --r2-bucket
Remote docs
When an 代理 needs detAIls, prefer the published docs instead of duplicating everything in the 技能:
HTML docs: https://mdorigin.jolestar.workers.dev Raw markdown home: https://mdorigin.jolestar.workers.dev/README.md Routing docs: https://mdorigin.jolestar.workers.dev/concepts/routing.md Configuration docs: https://mdorigin.jolestar.workers.dev/reference/configuration.md 扩展s docs: https://mdorigin.jolestar.workers.dev/图形界面des/扩展s.md Cloudflare docs: https://mdorigin.jolestar.workers.dev/图形界面des/cloudflare.md
扩展less 路由s also return markdown when the 命令行工具ent 发送s Accept: text/markdown.
搜索
Use 搜索 when you need the right doc page before opening it:
搜索 API: https://mdorigin.jolestar.workers.dev/API/搜索?q=<查询> OpenAPI 模式: https://mdorigin.jolestar.workers.dev/API/openAPI.json
Examples:
curl 'https://mdorigin.jolestar.workers.dev/API/搜索?q=cloudflare%20部署' curl -H 'Accept: text/markdown' 'https://mdorigin.jolestar.workers.dev/图形界面des/获取ting-启动ed'