Learn how each DocsCI analyzer works and how to configure it for your codebase.
▶️
Code snippet execution
DocsCI extracts fenced code blocks from Markdown files and runs them in language-specific sandboxes. Python uses Pyodide WASM; JavaScript/TypeScript uses isolated-vm. A snippet passes if it exits cleanly (no exception, no uncaught rejection). Failures produce findings with the error message, line number, and an AI-generated fix.
•Supported: python, javascript, typescript
•Execution timeout: 20s default, configurable up to 60s
•Findings include: error message, stdout, stderr (redacted), language, line number
•AI fix: generated for all error-severity snippet failures
🔄
API drift detection
DocsCI parses your OpenAPI spec (YAML or JSON) and cross-references documented endpoints and parameters against mentions in your Markdown docs. Mismatches produce drift findings.
•Configure: provide openapi_path (in repo) or openapi_url (remote)
•Coverage bar: shows % of spec endpoints mentioned in docs
♿
Accessibility checks
Docs are parsed as HTML via jsdom and checked with axe-core for WCAG 2.1 violations. Structural checks verify heading hierarchy, alt text, link text, and color contrast.
•Rules: axe-core WCAG 2.1 Level AA + structural checks
•Findings: missing alt text, empty links, heading skip, contrast