Guide

Testing Quarto documentation examples

A Quarto render runs cells, not plain fences, and frozen results can hide drift. Render with freeze off in CI and test display-only code separately.

Published
Updated
November 17, 2026
Reading time
12 min
Facts checked against
Quarto docs on Python computations, execution options, project execution and freeze, profiles and Jupyter cell options, with every code block run on Quarto 1.11.9, Jupyter and Python 3 (November 14, 2026)
Outlined documentation pages with a lime pulse line running out of the stack
On this pageThe short answerUnderstand cells, displayed code, and frozen resultsWhy examples in Quarto projects break or go untestedReproduce frozen and live executionSee what the source scan collectsCreate a scan-ready copyTriage the resultRun both checks in CIMake the check repeatableWhere DocsAlive fitsThe sources we checkedFAQ

The short answer

Use a Quarto render with freeze disabled in CI to test executable cells, and use a separately verified scan-ready copy to check display-only fences. DocsAlive 0.6.3 does not detect Quarto and never scans .qmd pages; even if a braced {python} cell is read as Markdown, it is skipped as not executable text. Cell outputs are not compared. The copy shown here exposes useful display-only examples to the engine, but it does not reproduce all Quarto execution behavior.

Quarto projects can contain two kinds of code that look similar in a document. A braced {python} cell is executable through Jupyter for Python. A plain Python fence is displayed but is not executed by Quarto. A render can therefore succeed while an example a reader copies is broken. Conversely, a source scanner may miss the executable document entirely if it does not collect the .qmd file suffix.

The examples below use Quarto 1.11.9 and engine 0.6.3. The project files are illustrative; the cell explicitly marked broken is introduced to demonstrate a failing render. The goal is to make each check’s coverage clear, not to treat a single green status as proof that every code path was exercised.

Understand cells, displayed code, and frozen results

Quarto cell options are written as comment lines beginning with #|. Execution options include eval, echo, and error. In particular, error: true includes errors in output and means errors do not halt processing. Review those options when deciding whether a successful render proves that a cell ran and succeeded under the intended policy.

Project-level freeze settings affect execution. With freeze: true, a project render does not re-render frozen computations. With freeze: auto, it re-renders only when the source changes. Frozen results live in _freeze, which Quarto recommends checking into version control. An incremental render of a single document or subdirectory always executes. Removing _freeze removes frozen output; Jupyter Cache also has a cache-refresh option.

Profiles provide a way to choose settings for a context such as CI. A file named for a profile is merged when that profile is activated with --profile or the corresponding environment variable. A CI profile can turn freeze off so a project render exercises the cells against current inputs.

Quarto item What Quarto does What the engine does in 0.6.3
.qmd page Can render a computational document Never collects it as a page
Braced Python cell Runs through Jupyter when execution applies If read directly as Markdown, treats its language as text and skips it
Plain Python fence Displays it without executing it Can execute it when it appears in a collected Markdown page
Cell options Controls execution and presentation with option comments The verified copy does not honor those options
Freeze and _freeze Reuses frozen results according to project settings Does not reproduce Quarto freeze behavior
Profiles Merges activated profile configuration Does not run the Quarto profile
Cell output Appears in the rendered document according to Quarto settings Does not compare cell output

The engine scans .md, .mdx, and .markdown pages. It detects several other documentation frameworks, but not Quarto, so a Quarto project is treated as plain Markdown. If a top-level docs/ exists, the default plain-project scan uses it and adds a root README when present; otherwise it scans from the repository root.

Why examples in Quarto projects break or go untested

Quarto is unusual among documentation tools because it already runs code. That is a strength, and it creates a false sense of coverage. Teams see cells execute during a render and assume every example on the site was tested. Three patterns break that assumption.

The first is freezing. Freeze exists for good reasons: some documents need data sources, credentials or slow computations that not every contributor can reproduce. The cost is that frozen results can be weeks or months old. With automatic freezing, a render re-runs a document only when its source changes, so a new library release, a changed data file or a removed function does not trigger anything. The rendered page keeps showing output from a run that may no longer be possible.

The second is display-only code. Many Quarto pages mix executable cells with ordinary fences: shell commands to install a package, configuration snippets, or code the author does not want to run during the build. Quarto shows those fences exactly as written and never runs them. They are often the very blocks readers copy first, such as installation steps, and they get no execution at all.

The third is execution options. A cell can be set not to evaluate, to hide its code, or to include errors in the output instead of stopping the render. Each of those choices is reasonable on its own. Together they mean a successful render does not tell you which code ran, which code was shown, and which errors were allowed. Reviewing those options is part of deciding what a green CI render actually proves. Pages in other formats in the same project, such as notebooks, follow their own rules again.

Reproduce frozen and live execution

The illustrative project configuration sets a website project to automatic freezing.

project:
  type: website

website:
  title: "acme-client docs"

execute:
  freeze: auto

The illustrative document below contains an executable cell that reads a project data file and a display-only fence with an outdated import. Quarto executes the first when execution applies. It displays the second without running it.

---
title: "Get started"
---

This cell runs when Quarto renders the page:

```{python}
from pathlib import Path
release = Path("data/version.txt").read_text().strip()
print(f"acme-client {release}")
```

This block is only displayed. Quarto does not run it:

```python
from collections import Mapping
settings: Mapping = {"retries": 3}
```

The illustrative notes.md page uses an ordinary Markdown suffix and contains a simple Python fence. It helps show the difference between what the engine collects and what Quarto can render.

---
title: "Notes"
---

A plain Markdown page in the same project:

```python
print(sum([1, 2, 3]))
```

Check the Jupyter setup and render the project. The probe used a Python virtual environment with Jupyter installed and pointed Quarto at it. Initially the data file contained version 2.4.1.

quarto check jupyter
quarto render

The recorded render showed that the cell executed and produced the page. It also wrote frozen execution results under _freeze.

Executing 'index.quarto_ipynb'
  Cell 1/1: ''...Done
Output created: _site/index.html

Change the data file and render the project again. In the probe, the command succeeded without executing the cell, and the page still showed the earlier value from frozen results. Changing a dependency outside the source document did not, by itself, make this automatic-freeze project render refresh that cell.

echo "3.0.0" > data/version.txt
quarto render

The illustrative CI profile below disables freeze. It gives CI a clear execution policy while allowing the project’s normal profile to retain its chosen behavior.

execute:
  freeze: false

Activate that profile for the project render. The probe executed the cell again and the page showed the updated value.

quarto render --profile ci

The following cell is broken on purpose. It uses an import unavailable in the tested Python runtime. Adding it to the document tests whether the CI render actually surfaces a cell failure.

```{python}
from collections import Mapping
```

With the CI profile, the render stopped with a nonzero status. The following recorded lines are the end of that render’s output.

ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.13/collections/__init__.py)
WARN: Error encountered when rendering files

This failure is useful evidence only in its execution context. Check the active profile, runtime, dependencies, input files, and cell options before treating a render as a release gate. A cell configured to allow errors has different behavior from the deliberately failing cell above.

See what the source scan collects

The following command plans a scan from the project root. The results described after it are from the verified probe when run.

docsalive scan .

The engine identified the project as plain and collected one page, notes.md, with one block. That block passed when run. The .qmd document was never read, so neither its executable cell nor its display-only fence contributed to the result.

Direct extraction of the document showed a second limitation: the braced Python cell was read as language text and skipped as not executable. The engine does not compare cell outputs. For output comparison generally, it compares printed output only in pycon sessions. A separate output block is skipped.

The display-only fence illustrates a complementary gap in Quarto’s own render. The outdated import did not stop the site build because Quarto displayed that fence without executing it. If the page presents the block as code readers should run, test it separately with the same prerequisites and runtime the page promises.

For a related workflow involving notebook files and their execution context, see Jupyter notebook documentation testing.

Create a scan-ready copy

The illustrative script below was verified on the probe. It copies top-level .qmd and .md files to Markdown files and changes braced Python cells into Python fences. It stops if two input names would produce the same target name.

"""Copy top-level .qmd and .md pages into OUT as .md; {python} cells become python fences."""
import re
import sys
from pathlib import Path

src, out = Path(sys.argv[1]), Path(sys.argv[2])
cell = re.compile(r"^(`{3,})\{python\}\s*$", re.M)
out.mkdir(parents=True, exist_ok=True)
for page in sorted([*src.glob("*.qmd"), *src.glob("*.md")]):
    target = out / page.with_suffix(".md").name
    if target.exists():
        sys.exit(f"name clash: {target}")
    target.write_text(cell.sub(r"\1python", page.read_text()))
    print(f"wrote {target}")

Generate the copy and scan it from the project root. The verified run collected two pages and three blocks. The copied cell passed when run from the project root, where its data file was available; the notes block passed; and the display-only block failed with an API-drift finding.

python3 scripts/qmd_scan_copy.py . scan-docs
docsalive scan . --docs-dir scan-docs

The script reported the two files it wrote.

wrote scan-docs/index.md
wrote scan-docs/notes.md

The copy is useful, but its boundaries are strict. It copies only top-level files, not subfolders. It converts only {python} cells; R, Julia, and other braced cells remain braced and are skipped. It does not honor cell options, so a cell marked eval: false would be run by the copied scan. It does not expand include shortcodes, and cell outputs are not compared.

Use Quarto with freeze off for authoritative cell execution in this workflow. Use the copy to expose display-only fences to supported checks and obtain triage categories. Because the copy also converts Python cells, review its findings in light of the differences above; do not assume it reproduces a Quarto render.

Triage the result

Finding Likely cause What to do
Render shows an old value Frozen results were reused after an input changed Run the CI profile with freeze disabled and inspect the current inputs
Render succeeds but displayed code fails A plain fence is display-only Run the reader-facing example separately with documented setup
.qmd page is missing from the scan The engine does not collect that suffix Use a verified copy for supported fence checks and inspect its page list
Braced cell is skipped The engine reads the info string as text Test the cell with Quarto; understand the copy’s conversion limits
Copied cell runs unexpectedly The copy does not honor eval options Use Quarto’s result for cell execution and adjust the separate check
Copied page differs from the rendered page Includes or other Quarto behavior were not expanded Compare representative pages and cover the missing behavior separately
A render succeeds despite an error A cell may allow errors Review cell options and the intended CI policy

The scanner’s categories help prioritize investigation, but they do not replace knowledge of the execution environment. See finding categories and Python documentation testing for handling setup and runtime changes.

Run both checks in CI

Split the work along the line Quarto already draws. The render with freeze disabled is the authoritative check for executable cells: it runs them with the project's real configuration, its kernel and its data. The scan-ready copy is the check for display-only fences, which Quarto never runs. Running both in the same job gives coverage of both kinds of code without pretending either tool covers everything.

Activate the CI profile explicitly in the job rather than relying on an environment variable that someone may forget to set, and keep the default profile for local work so contributors still benefit from freezing. If some documents cannot run in CI because they need credentials or private data, list them, keep them frozen on purpose, and record that decision in the job summary instead of letting the whole project stay frozen.

Generate the copy right before the scan from the same checkout and keep it out of version control. Review the page list after each run, because the copy only reads top-level files, and note any non-Python cells it left braced. Block merges on a failed render and on likely docs bugs in the copy; report everything else for review. The GitHub Actions guide shows how a scan fits into a workflow.

Make the check repeatable

[ ] Check the Jupyter runtime and dependencies used by Quarto.
[ ] Render the project in CI with freeze disabled.
[ ] Review eval, echo, and error options on important cells.
[ ] Identify external data and files that cells read.
[ ] List display-only fences that readers are expected to run.
[ ] Generate a fresh scan-ready copy and inspect its page list.
[ ] Account for subfolders, non-Python cells, includes, and cell options.
[ ] Reproduce likely docs bugs with the documented reader setup.
[ ] Review skipped and unchecked blocks as coverage gaps.

Where DocsAlive fits

DocsAlive fits the display-example side of this split. It extracts eligible fences, plans supported checks, runs examples in isolated per-page containers, and classifies failures. Its scan-ready input must be verified against the project, and Quarto remains responsible for the cell render in this workflow. See the CLI reference and framework reference for the engine’s controls and supported detection.

In practice that means Quarto for cells, the copy for display-only fences, and the scan with triage for everything the copy exposes. Every plan runs the scan on a schedule, and the Team plan and above add pull request checks and draft fix pull requests; pricing lists what each plan includes. To see a real report on a public repository you maintain, use the health check.

For other static-site projects, compare the publication and templating boundaries in the Eleventy guide and Zola guide. The documentation testing checklist can help record the checks that remain outside the scanner.

The sources we checked

These sources were read on November 14, 2026. Engine behavior was checked against engine 0.6.3 on the same day.

Source What it covers
Quarto Python computations Python cells and Jupyter
Quarto execution options Cell execution and presentation options
Quarto project execution Freeze and project renders
Quarto profiles Profile configuration and activation
Quarto Jupyter cell reference Jupyter cell options
Python 3.10 changes Removed compatibility aliases

FAQ

Does DocsAlive test Quarto cells in 0.6.3?

No. It never scans .qmd pages, and a braced Python cell read directly as Markdown is skipped as not executable text. It does not compare cell outputs. Use a Quarto render with freeze disabled for the cell check.

Why can a successful render contain broken code?

Quarto displays a plain code fence without executing it. Test examples readers are expected to run separately from executable cells.

Why did a data change not appear in the rendered page?

With automatic freeze, the project render can reuse frozen results when the source document has not changed. A CI render with freeze disabled exercises the cell against current inputs.

Does the scan-copy script reproduce Quarto execution?

No. It copies top-level files and converts Python cells, but it does not honor cell options, expand include shortcodes, handle other braced languages, or compare cell outputs.

Can a successful render still contain a cell error?

Yes. An error option can include errors in the output and allow processing to continue. Review cell options when defining what CI must enforce.

What should be reviewed after a scan?

Check the collected pages, skipped blocks, setup, and findings against the rendered documentation. Reproduce suspected defects with the runtime and prerequisites readers are given.

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

Docs testing for DevRel teams

How developer advocates test quickstarts, tutorials, workshops and sample READMEs: an inventory, a launch and release cadence, reading a report, and honest reporting.

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 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.