Guide

Docs testing for DevRel teams

Keep quickstarts, workshops and sample READMEs working after the launch: inventory reader journeys, check around releases and events, and route each finding to the right owner.

Published
Updated
November 17, 2026
Reading time
18 min
Facts checked against
the Google and Microsoft style guides on code samples, Write the Docs on docs as code, GitHub Docs on workflow triggers and Python doctest, with every code block run on Python 3 (November 13, 2026)
Outlined documentation pages with a lime pulse line running out of the stack
On this pageThe short answerWhy DevRel content goes staleBuild an inventory around reader journeysSet a cadence around DevRel workWrite examples that readers and tests can useRead the report as an advocateTurn findings into a launch decisionDivide the work to fit the teamReport progress upward without inventing a scoreWhere the product fitsThe sources we checkedFAQ

The short answer

Test DevRel content as a new developer follows it: start with the documented prerequisites, run supported examples in page order, and check whether the path can reach its first useful result. Repeat the check around launches and SDK releases, then review scheduled results for drift. Treat a genuine documentation bug differently from a skipped credential-dependent call, an external service failure, or an example that the test runner cannot judge.

Quickstarts, tutorials, workshop instructions and sample READMEs make promises about a complete journey. A reader needs the right package, setup, credentials, code and next step. A test gives an advocate evidence about those promises; it does not replace reading the instructions or trying the parts that require an authorized account.

DocsAlive extracts supported fenced examples, runs or checks what it can, and classifies the results. It keeps examples in page order and reports where each finding came from. Start with the broader docs testing guide or use this page to build a routine around DevRel launches and releases.

Why DevRel content goes stale

DevRel material often has a different lifespan from the launch that produced it. A quickstart is written for a new SDK, a tutorial is assembled for a conference, or a workshop is published alongside a feature announcement. The team moves to the next launch while the old page remains a common entry point for new developers.

The example may have been copied from an engineer's working branch or pinned to the SDK version available at the time. Later releases can rename an import, change an argument or alter an installation path. A tutorial can also depend on a sandbox, an account setting or a key that was available to the author but is not explained to a reader. A page with tabs for several languages has several paths to maintain, even when they tell the same story.

A small DevRel team cannot assume that reference documentation will catch every problem. Reference pages may describe the current API while an onboarding guide still shows an earlier sequence. Conversely, a quickstart can run while a reference snippet elsewhere remains stale. The two kinds of content need overlapping coverage.

The cost shows up in trust. A reader who cannot complete the first call has to decide whether the mistake is theirs, the page's or the product's. They may spend time searching for a fix, ask for help, or leave before seeing the value the guide promised. An advocate who can identify the broken step and its owner can restore that path more quickly and explain the remaining uncertainty honestly.

Build an inventory around reader journeys

Start with the places a new developer is likely to copy from, including material that lives outside the main documentation site. Record the repository and page, the audience, the SDK or tool version, prerequisites, the expected first result and the person who can arrange a fix. Mark external dependencies and credential-gated steps separately.

The ratings below are qualitative prompts for prioritization. Adjust them to reflect how often your SDKs and services change.

DevRel content type How often it breaks What usually breaks How to test it
Quickstart High Installation, imports, configuration or the first call Follow the documented path in a clean environment, in page order; separately verify any credential-gated call
Tutorial series High State carried between pages, renamed APIs or assumptions introduced in an earlier lesson Test each page's stated starting point and also walk the complete series as a reader
Snippet in a reference page Medium An argument, attribute, import or package name drifts from the current SDK Run or syntax-check supported examples against the intended version and inspect their surrounding context
Workshop or lab repo docs High Event-specific setup, sandbox access, fixtures or links between steps Rehearse the lab from a fresh checkout with the documented prerequisites before the event
README of a sample Medium Install commands, tool versions, environment setup or the command to start the sample Follow the README from a clean checkout and record anything prepared outside the instructions
Migration notes after a breaking release High Old and new API names, version boundaries or incomplete replacement steps Check the stated starting and target versions and exercise the migration path with a representative sample

A page-level run is useful but has a boundary. It can preserve the order of supported blocks on that page; it does not by itself establish that a reader can carry the right files and state across an entire tutorial series. Record that journey and give it a separate rehearsal. See quickstart and tutorial testing and migration guide testing for related workflows.

Choose the first paths to protect

Prioritize a path that a new developer can reach directly and that ends in a concrete result. A good first inventory entry might include the quickstart, the sample README it links to and the workshop page that reuses its setup. Note where those pages repeat commands: the repetition is useful to readers, but each copy can drift.

For every entry, distinguish the version the page promises from the version the test actually uses. A run against a checkout can reveal a coming incompatibility; a run against a released artifact can reveal what a reader encounters after publication. Record which one was used. If the page intentionally targets an older version, make that boundary visible rather than silently testing a different path.

Also note what cannot be automated by the chosen check. A page might need an account, a real key or a sandbox that has to be prepared by a person. That is a coverage gap to manage, not proof that the page is broken or working.

Set a cadence around DevRel work

A useful cadence follows the moments when examples are most likely to matter or change.

  • Before a launch or event: rehearse the exact published path, including prerequisites, links between pages and any authorized sandbox steps. Check the package or artifact intended for attendees. Leave time for an SDK engineer to investigate a real API mismatch.
  • On every SDK release: run the affected examples against the version being shipped, and check the published installation path when practical. A check triggered after publication detects a problem; it cannot stop a release that has already happened.
  • Between releases: run a scheduled check to catch drift in dependencies and other changes. Review skips and uncertain findings as well as failures, so a quiet report does not hide lost coverage.

Pull request checks can provide earlier feedback when a documentation or SDK change is under review. The SDK docs testing guide covers coordinating checks with release work.

Schedule a generic docs check

The following workflow calls a script maintained in your repository. It is a generic GitHub Actions example, not a product-provided action. The script must set up and run the checks your team chooses, and should return a failing exit status when your policy says the workflow should fail.

name: Check documentation

on:
  release:
    types: [published]
  schedule:
    - cron: "17 9 * * 1"
  workflow_dispatch:

jobs:
  docs-check:
    runs-on: ubuntu-latest
    steps:
      - name: Run the repository docs check
        run: ./scripts/check-docs.sh

Make the repository and script available to the job in your own workflow setup; the example above only shows the requested check step. Test that the script uses the intended release or default-branch content rather than assuming a post-publication event selects the artifact you need.

GitHub says scheduled workflows run in UTC by default and use the latest commit on the default branch. The off-the-hour minute reduces exposure to the high load that can occur at the start of an hour; scheduled runs can still be delayed, and queued jobs can sometimes be dropped. In a public repository, GitHub automatically disables scheduled workflows after 60 days without repository activity. Review the schedule's status as part of maintaining the workflow. workflow_dispatch provides a manual trigger when the workflow file is on the default branch. See GitHub's event reference and the docs testing workflow guide.

Write examples that readers and tests can use

A testable example should make the reader's task easier to understand. State what must already be installed or configured, introduce the action, and make clear which values the reader must change. Keep the complete path visible instead of adding hidden test setup that makes the report pass while leaving a reader stuck.

The Google code sample guidance recommends an introduction before a sample in most cases, language-appropriate indentation and wrapping lines at 80 characters. The Microsoft code example guidance asks writers to list requirements and dependencies, make examples easy to copy and run, show what to modify, and compile and test code. It also recommends showing expected output and avoiding hard-coded passwords.

Put a concise requirements sentence immediately before each example. For example: “This example requires Python and a local file named settings.json.” If a prerequisite is established earlier in a tutorial, say where the reader obtains it. A test may supply a package or fixture as setup, but the page still needs to tell a reader what is required.

Use labels that describe the block

Label executable Python as python, a Python interactive session as pycon, and configuration or output according to what it contains. A label tells both a reader and the checker how to interpret a block. Do not label a partial fragment as a complete program merely to make it look runnable.

For Python interactive sessions, pycon lets the checker compare printed output line by line. The following example requires only Python's standard library. Save the session in a text file and run python -m doctest -v file.txt to check it with Python's doctest module.

>>> from pathlib import PurePosixPath
>>> page = PurePosixPath("docs/guide-1.md")
>>> page.name
'guide-1.md'

Choose stable output for a comparison. A timestamp or another value that changes between runs can create noise without helping the reader. Explain variable results in prose when exact equality is not the promise.

Only pycon and python-repl sessions have printed output compared by the engine. A separate block introduced as output or response is recognized and skipped; its contents are not checked. Show expected results when they help a reader, but arrange a separate verification method for output outside those interactive sessions.

Make omissions and credentials explicit

Google recommends marking omitted code with a comment in the language of the sample, rather than three dots or an ellipsis character. It also says not to make a block with an omission click-to-copy. That helps a reader distinguish a complete example from part of a larger file.

The engine has a specific fragment rule: it skips a block containing ... as a fragment. A block that marks an omission with a comment is not skipped by that rule. If the remaining block cannot run on its own, it can produce a failure, which triage then classifies. A comment is therefore useful editorial guidance, but it does not make a partial example executable.

Use a placeholder such as YOUR_API_KEY where a reader must supply a key, and explain how to obtain and supply it without putting a secret in the page. Examples needing credentials are classified rather than executed with real keys; customer-provided test credentials are not currently supported. Plan an authorized manual or separate test for the full first call. The credentials guide helps document that boundary.

Keep page setup and sequence visible

A later block may depend on a variable created earlier. The engine preserves page order so supported snippets can use earlier state, while starting each page in a fresh container. That gives a page a meaningful boundary, but it does not prove a multi-page workshop works end to end.

When examples are alternatives in tabs, one variant is selected from each tab group for a run. Record which paths received coverage and arrange checks or rehearsals for the others. A passing Python tab is not evidence that a different language tab ran.

Read the report as an advocate

A report is a list of evidence to interpret, not a single verdict on the whole reader journey. Start with the page and line, then read the status, category and reason. Ask whether the block was executed, syntax-checked or skipped, and whether its setup matches the instructions a reader sees. The findings reference describes the categories in more detail.

Statuses

Status What it means for your content Who acts
pass The block was executed or syntax-checked, or may have hit a known unsupported-label limitation; check the actual coverage before treating it as proof of a working journey Advocate
warn The run reported a difference or a dependency deprecation warning; decide whether the page or its dependency needs attention Advocate
fail The block exited with an error; the category and reason determine whether this is a documentation bug or needs investigation Advocate
skip The block was deliberately not run, with a reason; decide whether the uncovered path needs another check Advocate

A pass is especially easy to overread. An unmapped fence label has no checker in the current engine and can be reported as passing without execution or parsing. A YAML fence is also reported as passing even though it is not parsed. Use an honest label, inspect coverage, and run a YAML parser or yamllint in your own CI for YAML syntax.

Categories

The owner below is the usual first person to act. An advocate may need to coordinate a fix even when an SDK engineer investigates the underlying API.

Category What it means for your content Who acts
api-drift A documented import, attribute or keyword argument is absent from the installed version SDK engineer
invalid-syntax A complete example does not parse; inspect the reported line and the intended language Advocate
stale-output A checked interactive session runs but its documented output is outdated Advocate
package-not-found A documented pip or npm package name does not exist Advocate
runtime-error Execution failed in a way that needs investigation before assigning blame Advocate
timeout The run exceeded its time limit; investigate the example and its dependencies Advocate
depends-on-context The block uses a name defined elsewhere on the page or omitted from the fragment; review whether the context is clear Advocate
needs-credentials The example needs a credential or recognized credential placeholder and was not run with a real key Advocate
network-external An external network condition is involved; some results need review rather than automatic filing as docs bugs Advocate
missing-install-step The page imports a package without installing it; the report supplies a hint to review Advocate
missing-fixture The example expects a local file or other fixture; decide whether the page explains it Advocate
missing-tool / host-tool A required tool is unavailable or the command is treated as a host tool; choose another way to verify it Advocate
output-differs Output varies in a way such as ordering or a timestamp; decide whether the difference matters to the reader Advocate
deprecated-usage A dependency warns about usage that may need updating SDK engineer
illustrative Placeholder package or module names are intentional; check that readers understand the illustration Advocate
runner-gap / unsupported-syntax The runner cannot judge the example as written; arrange another check if the path matters Advocate
output-block A block is labeled or introduced as output and is skipped Nobody
alt-variant Another tab variant was selected for this run; decide separately whether this variant needs coverage Advocate
fragment The block contains ... and is skipped as a fragment Advocate
not-executable The block is configuration, prose or a recognized language that is not run Advocate

The docs-bug categories identify candidates for a content fix; they do not make every other finding irrelevant. A missing fixture might be intentional, but it can also reveal that a workshop forgot to tell attendees what to download. An external failure may need a retry or a service owner, while a timeout may need reproduction before anyone can say what broke.

Turn findings into a launch decision

For a new quickstart, use the report alongside a human walkthrough:

  • [ ] Name the intended reader, starting environment and SDK version.
  • [ ] State the requirements immediately before each example or link clearly to the step that establishes them.
  • [ ] Follow installation and setup from a clean environment using the documented commands.
  • [ ] Run supported examples in page order against the intended artifact.
  • [ ] Verify the first useful result, including a separate authorized check for any credential-gated call.
  • [ ] Review every likely docs bug and assign a person to fix or investigate it.
  • [ ] Review skips, tab alternatives, unsupported languages and uncertain runtime or network results.
  • [ ] Check that expected output helps the reader and that any exact pycon output still matches.
  • [ ] Walk links and transitions to the next step, including any sample README or workshop page.
  • [ ] Record the version tested, remaining gaps, owner and decision before launch.

A release-published workflow is valuable follow-up evidence, but it is too late to serve as the only pre-launch gate. Rehearse the candidate before publication when the launch depends on it, then check what readers can actually install after publication.

Divide the work to fit the team

Team shape Practical workflow Ownership and handoff
Solo advocate Inventory the highest-value first-call path, run it before launches, review a scheduled report and keep a short list of gaps The advocate owns the inventory and routes API mismatches to an SDK engineer
Small DevRel team Assign content owners, rotate report review and use a shared checklist for launches and events The reviewing advocate files a focused issue with page, line, version and reproduction; the content owner verifies the fix
DevRel plus docs platform team Platform maintains the check and report delivery; DevRel defines priority journeys and reviews reader impact Agree on category routing, release timing and coverage gaps; SDK engineers investigate product API changes

Keep the handoff small enough to act on. Include the page and line, what the reader was trying to do, the version under test, the observed result and whether credentials or external services were involved. A raw failure count alone does not tell an engineer which change is needed.

Report progress upward without inventing a score

Use the summary in report.json for the counts it actually provides. Keep labels as placeholders until you have a real report, and explain what was included in the run. summary.likely_docs_bugs is the published summary count for likely documentation bugs.

Monthly measure Value from the report Context to add
Likely documentation bugs [summary.likely_docs_bugs] Which launch paths were in scope and which findings remain open
Passing blocks [summary count for pass] Whether passes represent execution or syntax checks, and known coverage limits
Warning blocks [summary count for warn] Which warnings need a content or SDK decision
Failing blocks [summary count for fail] Which categories need action rather than treating all failures as docs bugs
Skipped blocks [summary count for skip] Credential-dependent paths, alternatives and unsupported content requiring other checks
Findings by category [relevant summary category counts] Changes in the mix of findings and the owner of follow-up

Counts describe the report, not developer success by themselves. Pair them with a short account of the paths checked, material gaps and a concrete fix that restored a reader journey. Do not claim that a lower count proves readers are completing onboarding.

Make a page-by-page review list

The following fictional report requires only a file named report.json in the current directory. The sample uses the report keys needed by the script.

{
  "summary": {
    "likely_docs_bugs": 1
  },
  "findings": [
    {
      "page": "docs/guide-1.md",
      "line": 18,
      "status": "fail",
      "category": "api-drift",
      "is_docs_bug": true
    },
    {
      "page": "docs/guide-1.md",
      "line": 42,
      "status": "fail",
      "category": "timeout",
      "is_docs_bug": false
    },
    {
      "page": "docs/workshop.md",
      "line": 27,
      "status": "fail",
      "category": "runtime-error",
      "is_docs_bug": false
    }
  ]
}

This script requires Python's standard library and the report.json file above. It groups likely docs bugs as launch blockers and puts non-bug runtime errors and timeouts in a separate review list.

import json
from collections import defaultdict
from pathlib import Path

report = json.loads(Path("report.json").read_text(encoding="utf-8"))
pages = defaultdict(lambda: {"launch blockers": [], "needs review": []})

for finding in report["findings"]:
    page = finding["page"]
    category = finding["category"]
    entry = f"line {finding['line']}: {category} ({finding['status']})"

    if finding["is_docs_bug"]:
        pages[page]["launch blockers"].append(entry)
    elif category in {"runtime-error", "timeout"}:
        pages[page]["needs review"].append(entry)

for page in sorted(pages):
    print(page)
    for heading in ("launch blockers", "needs review"):
        print(f"  {heading}:")
        entries = pages[page][heading]
        if entries:
            for entry in entries:
                print(f"    - {entry}")
        else:
            print("    - none")

“Launch blockers” is a team policy in this script: it treats the report's is_docs_bug flag as a reason to block. Review the actual finding and your release policy before making the decision. The review list is deliberately narrower than all possible uncertain findings; inspect the full report for external network results, skips and other coverage gaps.

Where the product fits

DocsAlive can scan a local directory or a public Git URL, detect supported documentation frameworks, extract fenced blocks and plan checks. A run uses a fresh container per page and triages results using the actual error. Markdown and JSON reports give an advocate a page-level record to review. See how it works, the framework reference and the CLI reference.

A health check is a one-off way to see a real report for a public GitHub or GitLab repository you own, maintain or are authorized to test. The team checks up to 40 documentation pages and emails the report within two business days; the checkout is deleted after the run.

The Open source plan is $0/month for eligible public OSI-licensed projects and does not include pull-request checks or draft fix PRs. Those start at Team; runs on every release are listed on Growth. See pricing for plan details.

Know what a green result does not cover

Compiled languages are recognized but not executed. TypeScript support is limited to simple type annotations, and JSX and TSX are not judged. Credential-gated examples are classified rather than run with real keys. Only pycon and python-repl output is compared.

Unmapped fence labels can be reported as passing without a check. YAML fences are not parsed, so use yamllint or a YAML parser in your own CI. JSON fences are parsed, but Python's parser accepts NaN and infinities and keeps the last value for a repeated key; a pass is not a strict JSON conformance or schema check. These limits matter when reporting coverage: a green block can mean a narrower check than a reader's complete journey requires.

The sources we checked

These sources were read on November 13, 2026.

Source What it covers
Google developer documentation style guide: Code samples Introductions, formatting and comments for omitted code
Microsoft Writing Style Guide: Code examples Requirements, copyable examples, expected output, secure code and testing
Python documentation: doctest Executing and checking interactive Python sessions in text
Write the Docs: Docs as code Applying version control, reviews and automated tests to documentation
GitHub Docs: Events that trigger workflows Release, scheduled and manual workflow triggers and schedule behavior

FAQ

What should a DevRel team test first?

Start with a path a new developer uses to reach a first useful result. Include its installation, setup, examples and next step, then record any credential-dependent or unsupported portions that need a separate check.

How often should quickstarts and workshops be checked?

Rehearse the relevant path before a launch or event, check affected examples on SDK releases, and run a scheduled check between releases. A post-release check finds problems after publication; it cannot serve as a pre-release gate.

Does every failed block mean the documentation is wrong?

No. Read the category and reason. An API mismatch or invalid complete example can be a documentation bug, while a timeout, external network problem, missing fixture or intentional fragment needs a different review.

Can DocsAlive test a quickstart with a real API key?

Credential-gated examples are classified rather than executed with real keys. Running them with customer-provided test credentials is not currently supported, so use a separate authorized check for the full call.

How is expected output checked?

The engine compares printed output in pycon and python-repl sessions. Separate output or response blocks are skipped and their contents are not compared. Arrange another verification method when those results are important to the reader.

Does a passing report prove a workshop is ready?

No. Review what ran, what was only syntax-checked and what was skipped. Rehearse cross-page steps, alternative language paths, prerequisites and authorized sandbox access, and have a person assess whether the instructions are clear.

Keep reading
Outlined documentation pages with a lime pulse line running out of the stackGuide

Docs Testing: How to Test the Code Samples in Your Docs

Why code examples in documentation break, the ways teams test them (doctest, docs-as-tests, CI runners) and how to run every sample on each release.

Two lenses held over the same documentation page, each bringing a different layer into focusComparison

Vale vs markdownlint: What Each Docs Linter Catches

Vale checks prose style; markdownlint checks Markdown structure. What each catches, sample configs, running both in CI and what neither one tests.

Blueprint of two documentation pages: one with a handwritten test script, one whose code blocks are framed and checkedComparison

Doc Detective vs DocsAlive: Testing the Code in Your Docs

Doc Detective is a free, open-source docs-as-tests framework; DocsAlive is a hosted docs CI for code examples. Features, price, setup and when to use each.

A machine blueprint above a ruled documentation page, with a caliper measuring between themComparison

Promptless Alternative: Promptless vs DocsAlive Compared

Promptless drafts docs updates from what you ship; DocsAlive runs the code examples you've published. Features, pricing, security and when to use each.

A long workbench of outlined testing instruments, each with a small lime light, beside a stack of documentation pagesGuide

Best Free Tools to Test Code Examples in Documentation

Free, open-source tools that run the code examples in your docs: rustdoc, Go examples, doctest, pytest plugins, Sphinx doctest, Doc Detective and byexample.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing SDK Docs Before Every Release: A Release-Gate Guide

Test SDK and client-library docs against the package you ship: build the wheel or npm tarball, install it clean, run every example, and gate the release in CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

How to Test Quickstarts and Tutorials in Your Docs

Test the onboarding path a new reader follows: run quickstarts in a clean environment, in page order, sort real bugs from credentials and fragments, and wire it into CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

How to Test CLI Documentation: Commands, Flags and Output

Test the commands a CLI page promises: install in a clean container, run examples in order, compare flags with --help, check exit codes and output, and run it in CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

How to Test API Reference Docs: Requests, Responses and SDKs

Test API reference pages against the contract they publish: methods, parameters, request and response examples, SDK snippets, status codes and OpenAPI samples.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Docs testing for API-first companies

Keep API quickstarts, SDK snippets and curl examples working across releases.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Docs testing for CLI and developer-tool vendors

Test developer-tool install paths, package managers and command examples across releases.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing README Code Examples: Install, Usage and CI

Keep README install commands and usage examples working with clean environments, output checks and CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Notebooks and Executable Docs: Cells, Kernels and Output

Test notebooks in fresh kernels, check meaningful output and manage dependencies, data and drift in CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Docs in GitHub Actions: Pull Requests and Scheduled Checks

Run documentation example checks in GitHub Actions with practical guidance on schedules, path filters, caching, secrets and reports.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Code Examples in MkDocs, Docusaurus and Sphinx Sites

Find and test documentation examples in Markdown, MDX and reStructuredText, alongside site builds and link checks.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Python Docs Testing: Doctest, Pytest and Markdown

Test Python documentation with doctest, pytest, Markdown example execution and isolated environments.

Outlined documentation pages with a lime pulse line running out of the stackGuide

JavaScript Docs Testing: Node, TypeScript and Modules

Test Node and TypeScript documentation examples across module formats, package versions and type checks.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Go documentation examples

Test Go example functions and Markdown snippets against the intended module versions in clean environments.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Sphinx Docs Testing: doctest, code-block and MyST

Test Sphinx documentation examples: what the doctest and linkcheck builders prove, code-block and literalinclude, MyST fences, and what a Markdown scan covers.

Outlined documentation pages with a lime pulse line running out of the stackGuide

ReadMe Docs Testing: CLI, OpenAPI and Code Examples

Test ReadMe documentation examples: docs-as-code and bi-directional sync, what lint and oas:validate prove, Tabs variants and runnable code.

Outlined documentation pages with a lime pulse line running out of the stackGuide

TypeScript Docs Testing: tsc --noEmit and Runtime

Test TypeScript documentation examples: type-check snippets with tsc --noEmit in a consumer project, then run them, and what each check proves.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Docusaurus Docs Testing: Code Blocks, Tabs and MDX

Test Docusaurus documentation examples: builds vs runnable code, code block metadata, Tabs install variants, MDX pages and clean-container runs.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Mintlify Docs Testing: CodeGroup, Tabs and the CLI

Test Mintlify documentation examples: docs.json, MDX pages, CodeGroup and Tabs variants, what mint broken-links and mint validate prove, and clean runs.

Outlined documentation pages with a lime pulse line running out of the stackGuide

MkDocs Docs Testing: Code Examples, Tabs and Snippets

Test MkDocs documentation examples: strict builds, Material tabs, Snippets includes, mkdocstrings pages and clean-container runs.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Installation Instructions: pip, npm and Containers

Test documented install steps in clean environments: pip and extras, venv, npm install vs npm ci, containers and the first import.

Outlined documentation pages with a lime pulse line running out of the stackGuide

AI SDK Docs Testing: LLM Examples, Keys and Drift

Test AI and LLM SDK documentation examples: requests, responses, streaming, tool calls, credentials, model retirements and CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing migration guides and changelog examples

Test before and after examples against the right releases and make migration documentation part of the release gate.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Docs Testing Checklist: Code Examples Before Release

A practical pre-release checklist for testing documentation examples, reviewing gaps and verifying published packages.

Outlined documentation pages with a lime pulse line running out of the stackGuide

The Cost of Broken Code Examples in Documentation

Understand how broken documentation examples create friction in developer adoption and support, and how to reduce it.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Rust documentation examples

Test Rust rustdoc examples and cargo documentation tests, and keep native Rust checks because compiled Rust fences are recognized but not executed.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing VitePress documentation examples

Test VitePress Markdown examples separately from the site build, including code groups, includes and what a plain Markdown scan covers.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing docs in GitLab CI

Run documentation example checks in GitLab CI jobs, keep site builds separate from execution, and review what a scan covers and skips.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing JSON, TOML and YAML examples in docs

Test JSON, TOML and YAML config examples in documentation: parse, schema and tool checks, honest fence labels, fragments, CI jobs and what a scan covers.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Java documentation examples

Test Java examples in READMEs, SDK docs and Javadoc: the source launcher, javac, JShell scripts, assertions, @snippet files, CI and what a scan covers.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing PHP documentation examples

Test PHP examples in docs: php -l lint, clean-directory runs, assertions with zend.assertions, Composer scratch projects, PHPUnit, CI and scan coverage.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing C# documentation examples

Test C# examples in docs: .NET 10 file-based apps, dotnet build with warnings as errors, test projects, XML doc comments, CI and scan coverage.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Ruby documentation examples

Test Ruby examples in docs: ruby -c syntax checks, clean-directory runs, bundler/inline, minitest assertions, YARD examples, CI and scan coverage.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Kotlin documentation examples

Test Kotlin examples in docs: kotlinc runnable JARs and scripts, -Werror, KDoc @sample in compiled source, kotlinx-knit, fence labels, CI and scan coverage.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Swift documentation examples

Test Swift examples in docs: swift scripts, swiftc -typecheck, DocC snippets compiled by swift build, Swift Testing assertions, CI containers and scan coverage.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing curl and HTTP examples in API docs

Test curl examples in API docs: --fail-with-body, status and JSON checks against a local stub, http fences, credentials and what a docs scan checks.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Astro Starlight documentation examples

Test code examples in Astro Starlight docs: src/content/docs inventory, Tabs and Expressive Code, Markdoc pages, a Node check script, CI and scan coverage.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Nextra documentation examples

Test code examples in Nextra docs: content/ and app/ sources, fence metadata, Tabs and npm2yarn, a Node check script, CI and an honest scan limitation.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Docs testing for open-source projects

Test the code examples in open-source docs and READMEs: pull requests from forks, release and scheduled checks, contributor guidelines, triage and the Open source plan.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Docs testing for technical writers and docs teams

How technical writers and docs teams test the code examples they publish: docs-as-code checks, style-guide rules, reading a report, routing findings to engineers.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Hugo documentation examples

Test the code examples in Hugo docs: fences with brace options, the highlight shortcode, Docsy tabs, drafts and theme example sites, scan scope and CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing GitBook documentation examples

Test the code examples in GitBook docs synced to Git: the space root, code tags, tabs, reusable includes, invisible characters, scan scope and CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing SQL examples in documentation

Test SQL examples in docs: run fences in page order on a fresh database, assert results, handle dialects, SQLite STRICT typing, psql ON_ERROR_STOP and CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing mdBook documentation examples

Test the code in an mdBook: what mdbook test covers, rust attributes, hidden lines, include directives, untagged output fences and a scan-ready copy for CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Docsify documentation examples

Test the code examples in Docsify docs: embedded code files and fragments, docsify-tabs tab sets, Prism grammars, scan scope and a CI check.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Jekyll documentation examples

Test the code examples in Jekyll docs: include tags, site variables, highlight tags, posts and _site copies, a scan-ready copy and Ruby hooks.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Antora and AsciiDoc documentation examples

Test the code examples in Antora docs: example includes, tagged regions, attributes, failing the build on missing includes and a Markdown copy to scan.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Fumadocs documentation examples

Test the code examples in Fumadocs docs: npm fences and package-manager tabs, tab groups, the Tabs component, includes, pycon highlighting and a scan-ready copy.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing versioned Docusaurus docs

Test every Docusaurus version readers can reach: versioned_docs copies, versions.json, partials, tabs, per-version scans and old-version triage.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Read the Docs documentation examples

Test the code examples on a Read the Docs site: .readthedocs.yaml build jobs, a pycon gate, latest and stable versions, Sphinx, MyST and .rst coverage.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Eleventy documentation examples

Test the code examples in Eleventy docs: Liquid pre-processing, global data, include tags, ignored drafts, raw tags and a rendered copy to scan.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Zola documentation examples

Test the code examples in Zola docs: Tera content templating, raw tags, config values, hide_lines, drafts, blog posts and a scan-ready copy.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Quarto documentation examples

Test the code examples in Quarto docs: executable cells, display-only fences, freeze and _freeze, a CI profile, cell options and a copy to scan.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Hexo documentation examples

Test the code examples in Hexo docs: posts, drafts, scaffolds, codeblock and include_code tags, a build check and a scan-ready copy.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing pdoc documentation examples

Test the code examples in pdoc docs: doctest for >>> sessions, fenced docstring examples, the README, private items and a copy to scan.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Doxygen documentation examples

Test the code examples in Doxygen docs: compiled example files, snippets, Markdown pages, WARN_AS_ERROR and what a scan can and cannot check.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing TypeDoc documentation examples

Test the code examples in TypeDoc docs: example tags, includeCode regions, project documents, a compiler check of extracted examples and a scan.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing JSDoc documentation examples

Test the code examples in JSDoc docs: example tags, captions, source patterns, tutorials, a doclet export and a scan-ready copy with assertions.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing docs examples with pre-commit hooks

Check docs code examples with pre-commit: local hooks, files filters, always_run, pass_filenames, SKIP and --no-verify, and what to leave for CI.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing documentation examples with Deno

Run docs code examples with deno test --doc: JSDoc and Markdown examples, imports, hashbang permissions, ignored blocks and deno check --doc-only.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing documentation examples with Sybil

Test Python docs examples with Sybil and pytest: Markdown parsers, invisible setup, skips, clear-namespace, docstrings and pycon fences a scan can read.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Markdoc documentation examples

Test the code examples in Markdoc docs: variables in fences, partials, if/else, custom tabs, validate in CI and a scan-ready copy from transform.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Markdown examples with phmdoctest

Test Python examples in README and Markdown files with phmdoctest: sessions, output blocks, directives, --report, generated pytest files and pycon fences.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Markdown code blocks with pytest-markdown-docs

Run Markdown python fences as pytest tests with pytest-markdown-docs: globals hook, fixtures, continuation, notest, retry and pinning the released version.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing command line docs with prysk and Cram

Test CLI docs with prysk and Cram: .t transcripts, exit statuses, (re) and (glob) matches, and generating tests from the console blocks in your Markdown.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Python docstring examples with xdoctest

Run docstring examples with xdoctest: the pytest plugin, google and freeform parsing, permissive output matching, directives, and what it does not check.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing multi-language docs examples with byexample

Test docs examples with byexample: prompt-based language detection, the -l selection, +pass, +skip and timeouts, capture tags, and hidden setup in comments.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Markdown code blocks with mktestdocs

Run Markdown code blocks under pytest with mktestdocs: exact fence labels, memory=True for shared state, bash blocks, custom executors and docstring checks.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing README code blocks with pytest-codeblocks

Run README and Markdown code blocks with pytest-codeblocks: exact python, sh and bash labels, cont, skip and xfail markers, expected output, and gaps.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Markdown code examples in any language with txm

Test annotated Markdown examples with txm: program, in, out, err, check and exit annotations, TAP output, exact matching, and blocks it never runs.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing Sphinx docs examples with sphinx.ext.doctest

Run Sphinx doctest, testcode and testoutput directives in reStructuredText or MyST pages: groups, hidden setup, global setup and what is never run.

Outlined documentation pages with a lime pulse line running out of the stackGuide

Testing docs examples that need API keys

Test credential-gated docs examples: honest placeholders, offline stubs and fixtures, live sandbox jobs, CI secrets and fork rules, and how a scan classifies them.

A machine blueprint above a ruled documentation page, with a caliper measuring between themGuide

Documentation Drift: How to Detect It Before Users Do

What documentation drift is, why code examples drift first, and practical ways to detect it: ownership, release checks, link and execution tests.

See which of your code samples still run.

Send us a public repository. Our team runs DocsAlive on its docs and emails you the real report within 2 business days. Free, no signup.