Loading...
Loading...
通用的 MDX 文档发布工具。验证语法 → 语义化提交 → Git 推送。支持任何 MDX 项目(Fumadocs、Next.js、Docusaurus 等)。可配置 build 命令,自动检测多语言文件。与 fumadocs-article-importer 配合完成文章导入→发布工作流。
npx skill4agent add foreveryh/deeptoai-skills mdx-article-publisher| 项目类型 | Build 命令 | 状态 |
|---|---|---|
| Fumadocs | | ✅ 已测试 |
| Next.js + MDX | | ✅ 兼容 |
| Docusaurus | | ✅ 兼容 |
| 通用 MDX | 自定义 | ✅ 可配置 |
# pnpm monorepo
pnpm build:docsnpm run build# 在 skill 执行时询问用户content/docs/en/ai-ml/my-article.mdxcontent/docs/en/ai-ml/git status
git diff --stagedpython scripts/validate_mdx.py /path/to/article.mdx
# Or directory:
python scripts/validate_mdx.py content/docs/en/ai-ml/>><<# For Fumadocs/Next.js
pnpm build:docs
# Or generic
npm run build❌ ERRORS (2):
File: content/docs/en/ai-ml/article.mdx:730
Error: Unescaped operator. Use > instead of > in: >80% accuracy
⚠️ WARNINGS (1):
Warning: Lang code "ko" may not be supported.
📊 SUMMARY:
Files valid: 0
Errors: 2>><<<type>(<scope>): <description>
[optional body]
[optional footer(s)]featfixdocsrefactortranslate# New article
git commit -m "feat(ai-ml): add jina-vlm article"
# Multiple articles
git commit -m "feat(ai-ml): add 3 AI articles
- jina-vlm: vision language model
- rag-guide: RAG implementation
- embedding-basics: embedding intro
skill-analysis: jina-vlm, rag-guide"
# Translation
git commit -m "translate(zh): update jina-vlm to Chinese"git push origin main# Pull first to avoid conflicts
git pull --rebase origin main
# Then push
git push origin main---
title: Article Title
description: Brief description (1-2 sentences)
lang: en # or zh, fr
---| Error | Cause | Fix |
|---|---|---|
| Unescaped operator | | Use |
| Missing lang | No | Add |
| Unclosed tag | | Close all tags |
| File Pattern | Type | Example |
|---|---|---|
| New file | | |
| Modified | | |
| zh/ directory | | |
fumadocs-article-importer
↓
skill-article-writer (optional)
↓
skill-article-publisher ← You are here| Issue | Solution |
|---|---|
| Build fails | Check MDX syntax, run validation first |
| Git push rejected | |
| Validation timeout | Large project - use |
scripts/validate_mdx.pyscripts/publish_article.pyreferences/semantic-commit-guide.md