← All Learning Paths

Documentation Engineer

A documentation path covering OpenAPI contracts, versioning, deprecation, ADRs, content negotiation, and docs-as-code tooling.

rolebeginner9 nodes10.58h total

Path overview

文档工程把 API 契约、决策记录与用户指南当作可测试、可版本化的工程产物。本路径从 OpenAPI 契约出发,覆盖 API 版本管理与弃用、架构决策记录、内容协商,配合契约测试、弃用头、契约变更评审以及 Markdown 与 Schema 校验工具。

This path treats documentation as a testable, versioned engineering artifact: OpenAPI contracts, API versioning and deprecation, architecture decision records, content negotiation, contract tests, deprecation headers, contract review, and docs-as-code tooling.

  1. Apply "Add an OpenAPI Contract Test" to a documentation task, checking that "A pull request that changes a response shape fails CI before merge." appears after the "Run property-based tests against a disposable server so generated requests exercise the" step.

    Completion criteria: Show the command for every step of "Add an OpenAPI Contract Test" and paste the output proving "Run property-based tests against a disposable server so generated requests exercise the"; then note the step where "A pull request that changes a response shape fails CI before merge." appears.

    Next step: Add API Deprecation Headers

    ⏱ 0.5h

  2. Execute "Add API Deprecation Headers" end to end, then repeat the last step with one parameter changed and compare "Log calls with the client id and endpoint, and build a migration dashboard before the".

    Prerequisites: Add an OpenAPI Contract Test

    Completion criteria: Run the steps through "The headers are visible until the endpoint is retired.", paste the command output, and mark the line that matches "Remove the endpoint only after the sunset date and after confirming that the remaining"; then rerun with one parameter changed.

    Next step: Review API Contract Changes Before Merge

    ⏱ 0.5h

  3. Follow "Review API Contract Changes Before Merge" and record "No breaking change merges without an owner and a date." at the step where it should appear, using "Assess consumer impact: Identify consumers of affected operations, notify their owners, and" as the check.

    Prerequisites: Add API Deprecation Headers

    Completion criteria: Deliver a transcript of "Review API Contract Changes Before Merge" with each step's command and observed state, ending at "No breaking change merges without an owner and a date.".

    Next step: Zod

    ⏱ 0.5h

  4. Read "Zod"'s documented surface around "schema.safeParse schema.safeParse(data: unknown): { success: true; data: T } | { success:", then build a minimal endpoint and log the response.

    Prerequisites: Review API Contract Changes Before Merge

    Completion criteria: Attach one successful call and one invalid call against "Zod", citing "z.string z.string(): ZodString" as the documented surface.

    Next step: Markdown Frontmatter Parser

    ⏱ 1h

  5. Execute "Markdown Frontmatter Parser", change one constant, and describe how the output diverges from "Split Markdown frontmatter from the body and parse flat YAML scalars, with BOM handling and".

    Prerequisites: Zod

    Completion criteria: Change one constant in "Markdown Frontmatter Parser", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Markdown Live Preview

    ⏱ 0.75h

  6. Feed a representative input into "Markdown Live Preview" and verify "markdown to html-preview" by hand.

    Prerequisites: Markdown Frontmatter Parser

    Completion criteria: Run two inputs through "Markdown Live Preview", record both outputs, and show one case where "Render Markdown to HTML in real time with a live preview pane." changes as expected.

    Next step: JSON Schema Validator

    ⏱ 0.25h

  7. Run two different inputs through "JSON Schema Validator" and show where the outputs diverge.

    Prerequisites: Markdown Live Preview

    Completion criteria: Paste two input/output pairs from "JSON Schema Validator" and annotate the one where "json-and-schema to validation-result" changes the result.

    Next step: Lint Heading Structure in API Docs

    ⏱ 0.25h

  8. Build "Lint Heading Structure in API Docs" for documentation code and verify [2:heading-jump:h1->h3,4:duplicate-heading:usage] against both samples.

    Prerequisites: JSON Schema Validator

    Completion criteria: Show the test run for "Lint Heading Structure in API Docs" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: Documentation Engineer

    ⏱ 0.33h

  9. Deliver the "Build a Changelog Generator from Commit Messages" blueprint with "Parse conventional commit headers into type, scope, and description." working and "Group commits into features, fixes, and other change types." recorded as evidence.

    Prerequisites: JSON Schema Validator, Lint Heading Structure in API Docs

    Completion criteria: Run the project's test command for "Build a Changelog Generator from Commit Messages", paste the passing output, and attach the acceptance note for "Parse conventional commit headers into type, scope, and description." with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h