Skip to content

Build full-coverage WordPress docs generation system #4

Description

@chubes4

Goal

Build a full-coverage WordPress documentation generation system that starts as an internal Automattic site and can later generate high-quality docs for WordPress Core, canonical plugins, and other products.

This is not a one-off generated page. The system should inventory source material, plan documentation coverage, generate source-backed pages through docs-agent, track provenance/review state, and publish a modern docs experience comparable to Next.js, shadcn/ui, Astro, and Laravel.

Canonical plan

Tracked in PR #3 and docs/full-coverage-generation-plan.md.

Architecture

Source repos
  -> source inventory extractor
  -> coverage map
  -> page specs
  -> docs-agent generation
  -> review and publish

Runtime path:

WP Docs runtime
  -> Data Machine / Data Machine Code
  -> DMC source checkouts such as wordpress-develop
  -> Automattic/docs-agent technical/user bundles
  -> GitSync checkout of chubes4/wp-docs
  -> generated content + provenance
  -> PR

Coverage dimensions

  • Public PHP functions, classes, interfaces, traits, methods, and constants.
  • Hooks, including actions, filters, dynamic hook families, parameters, and call sites.
  • Blocks, block supports, block metadata, and editor behavior.
  • REST API routes, controllers, schemas, permissions, and examples.
  • Script Modules and classic asset APIs.
  • Interactivity API and related packages.
  • Options, constants, configuration files, and filesystem conventions.
  • WP-CLI commands where applicable.
  • Core subsystems: bootstrap, query, rewrite, users, roles/caps, cron, updates, media, editor, themes, plugins, HTTP, filesystem, database, and multisite.
  • Tests and fixtures as behavioral evidence.
  • Dev notes, make/core posts, handbooks, and existing docs as explanatory context.
  • Deprecations, version history, and migration notes.

Milestones

  • Merge the initial source/recipe/plan skeleton.
  • Define content/_meta/page-spec.schema.json.
  • Define content/_meta/ia.json for the initial WordPress docs IA.
  • Build a WordPress Core coverage inventory from wordpress-develop.
  • Generate page specs for the Script Modules vertical slice.
  • Run docs-agent through the WP Docs runtime to generate Script Modules pages and provenance metadata.
  • Submit generated output through GitSync as a reviewable PR.
  • Add coverage dashboard/reporting so gaps are visible.
  • Expand from Script Modules to one complete Core subsystem at a time.
  • Add Gutenberg and canonical plugin source inventories.
  • Generalize the same bundle model for other product documentation sets.

Success criteria

  • Every source entity is documented, intentionally excluded, or mapped to a future page spec.
  • Generated pages include source-backed claims and useful examples.
  • Review status is visible at page and coverage-map levels.
  • The internal WordPress site provides useful navigation and search before public publishing.
  • The process can regenerate docs after upstream source changes without losing reviewed status.
  • The architecture can be reused for WooCommerce, Jetpack, Studio, Playground, WP-CLI, Data Machine, and other products.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafting this tracking issue from the project discussion and committed full-coverage plan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions