Validate documentation changes
Esta página aún no está disponible en tu idioma.
Run these commands from the documentation repository root after setup. They validate the commands and outputs maintained here; package runtime suites remain owned by each package.
Tests and static analysis
Section titled “Tests and static analysis”npm testcomposer test --working-dir toolscomposer analyse --working-dir tools -- --no-progressThe JavaScript tests cover sync, skill distribution, Markdown plugins and discovery sizes.
PHPUnit checks the reference generator, JSON schema, link resolution and demo renderer. PHPStan analyzes tools/.
Use the repository’s Prettier, EditorConfig and Markdown lint configuration together on edited files; passing one
formatter does not prove the other checks pass.
Complete build and links
Section titled “Complete build and links”SYNC_LOCAL=1 npm run buildprebuild synchronizes sources, checks the PHPDoc baseline and renders demos in strict mode. Astro builds HTML,
Markdown and discovery files. postbuild validates internal links, anchors, demo assets and bundle-size budgets.
An isolated astro build does not prove the prebuild gate passed. Inspect .cache/reference/report.json for
unresolved PHPDoc references: they can render as code and evade an HTML link check.
Keep tools/baseline.json unchanged while fixing a regression. Repair the documented contract or generator cause;
do not raise counts or hide diagnostics to make a build pass. See development for demo rules.