文档站点生成器Skill docs-site-generator

文档站点生成器是一款自动化工具,用于快速构建和部署技术文档网站。它支持Docusaurus、MkDocs和VuePress三大主流框架,提供主题定制、搜索集成(Algolia/本地)、版本控制、多语言支持和侧边栏自动生成等功能。适用于API文档、架构设计文档、可观测性文档等场景,帮助开发团队高效管理和发布技术内容。关键词:文档生成、Docusaurus、MkDocs、VuePress、技术文档、静态站点、搜索集成、版本控制、多语言、自动化部署。

DevOps 0 次安装 6 次浏览 更新于 2/26/2026

name: docs-site-generator description: 使用Docusaurus、MkDocs或VuePress生成文档站点 allowed-tools:

  • Bash
  • Read
  • Write
  • Glob

文档站点生成器技能

概述

使用流行的框架(Docusaurus、MkDocs、VuePress)生成文档站点,支持自定义主题配置和搜索集成。

能力

  • 生成Docusaurus文档站点
  • 生成MkDocs文档站点
  • 支持VuePress
  • 自定义主题配置
  • 搜索集成(Algolia、本地)
  • 版本控制支持
  • 多语言支持
  • 侧边栏自动生成

目标流程

  • c4模型文档
  • API设计规范
  • 可观测性实施

输入模式

{
  "type": "object",
  "required": ["framework", "docsPath"],
  "properties": {
    "framework": {
      "type": "string",
      "enum": ["docusaurus", "mkdocs", "vuepress"],
      "default": "docusaurus"
    },
    "docsPath": {
      "type": "string",
      "description": "文档源文件路径"
    },
    "outputDir": {
      "type": "string",
      "description": "生成站点的输出目录"
    },
    "config": {
      "type": "object",
      "properties": {
        "title": { "type": "string" },
        "description": { "type": "string" },
        "baseUrl": { "type": "string" },
        "theme": { "type": "string" },
        "search": {
          "type": "object",
          "properties": {
            "provider": {
              "type": "string",
              "enum": ["algolia", "local"]
            }
          }
        },
        "versioning": {
          "type": "boolean",
          "default": false
        }
      }
    }
  }
}

输出模式

{
  "type": "object",
  "properties": {
    "outputDir": {
      "type": "string"
    },
    "configPath": {
      "type": "string"
    },
    "pages": {
      "type": "array",
      "items": { "type": "string" }
    },
    "buildCommand": {
      "type": "string"
    }
  }
}

使用示例

{
  kind: 'skill',
  skill: {
    name: 'docs-site-generator',
    context: {
      framework: 'docusaurus',
      docsPath: 'docs',
      outputDir: 'website',
      config: {
        title: '项目文档',
        baseUrl: '/docs/',
        theme: '@docusaurus/theme-classic'
      }
    }
  }
}