Markdown Editor

API 文档撰写者套件

API 概览、SDK 概览、快速入门、教程、操作指南、参考文档、概念说明、开发者指南、API 变更日志、弃用通知、迁移指南与故障排查。

第 1 步

指南

  1. API Overview and Getting Started Template

    标准

    API landing page: what it does, OpenAPI and Arazzo descriptions, base URLs, auth in 3 steps, first request, key resources, errors, limits, next steps

    OpenAPI 3.2.1 (or 3.1.x); Arazzo 1.1.0; Overlay 1.2.0
  2. SDK Overview Template

    完整

    SDK landing page: supported-languages matrix, install, auth and config, first call, errors, retries and timeouts, pagination, logging, versioning and support policy

    OpenAPI 3.2.1; Semantic Versioning 2.0.0
  3. Quickstart Guide Template

    标准

    Quickstart page: time-to-first-success target, prerequisites table, three steps with expected output, verify, clean-up, troubleshooting

    Diátaxis (tutorial and how-to types, adapted)
  4. Tutorial Template (Diátaxis)

    标准

    Diátaxis tutorial – learning goals, prerequisites, numbered lessons with visible results, checkpoints, troubleshooting

    Diátaxis
  5. How-To Guide Template (Diátaxis)

    标准

    Goal-oriented how-to guide: prerequisites table, numbered steps with checks, verification, variations, failure table, worked example

    Diátaxis (how-to guide)
第 2 步

参考设计

  1. REST Endpoint Reference Template

    标准

    One REST endpoint: auth, parameter tables, request example, responses per status, RFC 9457 errors, limits, idempotency, paging, deprecation headers

    OpenAPI 3.2.1 (or 3.1.x), Arazzo 1.1.0, Overlay 1.2.0, RFC 9457, RFC 9745, RFC 8594
  2. Reference Documentation Template (Diátaxis)

    标准

    Diátaxis reference page – neutral, consistently structured entries for functions, types, errors and constants

    Diátaxis
  3. Explanation Document Template (Diátaxis)

    标准

    Understanding-oriented explanation: idea in brief, context, mechanism diagram, alternatives considered, trade-offs, misconceptions, worked example

    Diátaxis (explanation)
  4. Developer and SDK Guide Template

    完整

    Developer guide: setup, auth, multi-language quick start, errors, pagination, rate limits, webhooks, sandbox, OpenAPI/Arazzo/Overlay descriptions, versioning

    OpenAPI 3.2.1 (or 3.1.x); Arazzo 1.1.0; Overlay 1.2.0; RFC 9745, RFC 8594
第 3 步

变更管理

  1. API Changelog Template (OpenAPI 3.2, AsyncAPI 3.1)

    完整

    Dated per-version API change log: additive, behavioural and breaking classes, affected operations, OpenAPI diff links, Deprecation and Sunset values, SDK versions

    OpenAPI 3.2.1; AsyncAPI 3.1.0; RFC 9745; RFC 8594
  2. Deprecation Notice Template (RFC 9745, RFC 8594)

    完整

    Customer-facing deprecation and sunset notice: affected users, dates, replacement, migration steps, usage detection, Deprecation and Sunset headers, email and changelog variants

    RFC 9745; RFC 8594; OpenAPI 3.2.1
  3. Migration Guide Template

    标准

    Upgrade/migration guide – who is affected, breaking changes table, timeline, checklist, steps, before/after code, rollback

第 4 步

维护

  1. Troubleshooting Guide Template

    标准

    Troubleshooting guide: diagnostic first steps, symptom index, decision steps per problem with verification, data to collect before contacting support, known issues link

    Structure aligned with ISO/IEC/IEEE 26514:2022
  2. llms.txt Template for LLM-Friendly Docs

    精简

    llms.txt site index for language models: H1, summary, link-list sections, Optional section, llms-full.txt, .md page mirrors, rel alternate/describedby discovery

    llms.txt proposal v2 (llmstxt.org, modified 2026-08-10)