Guide

Testing Zola documentation examples

Since Zola 0.23 every page is a Tera template. Know what reaches readers, protect template examples, and test the posts a scan skips.

Published
Updated
November 17, 2026
Reading time
13 min
Facts checked against
Zola docs on content, pages, sections, syntax highlighting, configuration and the CLI, with every code block run on Zola 0.23.6 and Python 3 (November 14, 2026)
Outlined documentation pages with a lime pulse line running out of the stack
On this pageThe short answerMap the content and the reader-visible codeWhy Zola examples breakObserve templating in a small siteAccount for posts, drafts, and hidden linesMake a scan-ready copyTriage the resultRun both checks in CIMake the check repeatableWhere DocsAlive fitsThe sources we checkedFAQ

The short answer

Test Zola examples after accounting for content templating, publication status, and the code readers can see. DocsAlive 0.6.3 does not detect Zola: in the verified project it scanned from the repository root, skipped the published blog/ folder, did not render Tera or read the draft flag, ran lines hidden by hide_lines, and reported a jinja fence as passing without checking it. A scan-ready copy can recover some of that coverage, but it is not a complete Zola renderer.

Zola 0.23 processes page and section content as Tera before parsing Markdown. That makes a code fence part of the template input, not a guarantee that its contents reach the reader unchanged. A build can succeed while silently replacing a template example with its rendered value. A source scan can have the opposite problem: it can run the unrendered text instead of the value the reader sees.

The examples below use Zola 0.23.6 and engine 0.6.3. The files are illustrative, and the intentionally broken example is labeled. Use the same distinction in your own review: first establish what Zola publishes, then decide which examples need execution or a separate check.

Map the content and the reader-visible code

Zola content lives under content/. A section is a folder with an _index.md file. Pages use TOML front matter bounded by required lines of three plus signs. The configuration file is zola.toml, with config.toml as a fallback.

Since Zola 0.23, every page and section is also a Tera template rendered before CommonMark parsing. Shortcodes were removed in that release; Tera components replace them. Template-like characters in content can cause compilation errors, and a valid expression can be rendered even when the author meant to display it as an example. The documented remedies are raw tags around the relevant lines or skip_content_templating for selected content. The latter also stops desired expressions in that content from rendering.

Drafts marked in front matter are loaded only when --drafts is supplied to build, serve, or check. zola check builds without writing and checks external Markdown links; its external-link check can be skipped with --skip-external-links. It remains useful alongside code testing because these checks cover different failure modes.

Code block annotations include linenos, linenostart, hl_lines, and hide_lines. The last hides specified line ranges from the rendered block. Other key-value pairs become data attributes. A test that executes every source line can pass even when the code visible to a reader is incomplete.

Zola item What Zola does What the engine does in 0.6.3
Content and sections Organizes pages under content/, with _index.md for a section Treats eligible pages as plain Markdown; it does not detect Zola
Tera content Renders content before Markdown parsing Reads source text and does not render Tera
Draft flag Loads drafts only with --drafts Does not read the flag and can scan a draft
blog/ Can publish content in that folder Always skips folders named blog during page collection
hide_lines Hides selected lines from the rendered block Runs all lines in the source fence
jinja fence Can display a template example, subject to content templating Reports the unknown label as passing without a check
TOML front matter Requires plus-sign delimiters for page metadata Reads it as prose; it does not interpret draft status

The engine’s plain-project default is to scan docs/ plus a root README when a top-level docs/ exists, otherwise from the repository root. --docs-dir changes the collection root, but has a verified quirk: if that directory itself contains a docs/ subfolder, 0.6.3 narrows collection to that subfolder. An include filter cannot bring back a folder already skipped during collection.

Why Zola examples break

Zola sites lose working examples in the same ways other documentation sites do: dependencies move, commands change, and pages written for an older release stay published. Three Zola-specific patterns make those problems harder to see.

The first is content templating. Because a page is rendered as Tera before Markdown, a code block that contains template syntax is not inert. A valid expression is replaced by its value, and the site builds without complaint. That is the right behavior when the expression is a version number the author wants filled in, and the wrong behavior when the block is meant to teach template syntax. Documentation for themes, templates and site configuration is especially exposed, because those pages are full of template examples. Sites that upgraded from releases before 0.23 can also carry old shortcode calls that no longer work the same way.

The second is configuration values inside code. Putting the current version in the extra table of zola.toml keeps install commands consistent across pages, but it also means the source text of a block is never the code a reader copies. Any check that reads the source sees the expression, not the value.

The third is presentation annotations. Hidden lines are a convenient way to keep imports and setup out of a short example, and highlighted lines draw attention to the part that matters. Hidden lines also change what a reader can copy: the visible part may not run on its own, and nothing in the build tells you so. Release notes and announcements add a fourth gap. They are often written once, stored under blog/, and never revisited, yet they stay public and keep ranking in search results long after the commands in them stopped working.

Observe templating in a small site

Create the illustrative site. The initialization process asks for the site URL and choices about Sass and search; the configuration was then replaced with the next file for this probe.

zola init zsite
cd zsite

The illustrative configuration sets a version under extra and chooses a highlighting theme. The version is intentionally used by the page so the difference between source and rendered code is visible.

base_url = "https://docs.acme-docs-demo.test"
compile_sass = false
build_search_index = false

[markdown.highlighting]
theme = "catppuccin-mocha"

[extra]
version = "2.4.1"

This illustrative page has TOML front matter, a version derived from configuration, a block with hidden lines, and a template example. The last example initially lacks raw protection, so it demonstrates an authoring mistake rather than the intended final page.

+++
title = "Install"
weight = 1
+++

Pin the documented release:

```python,linenos
release = "{{ config.extra.version }}"
major, minor, patch = (int(part) for part in release.split("."))
assert (major, minor) >= (2, 4)
print(release)
```

The first two lines below are hidden from readers:

```python,hide_lines=1-2
import json
settings = {"retries": 3}
print(json.dumps(settings, sort_keys=True))
```

A Tera template shown to readers:

```jinja
<h1>{{ page.title }}</h1>
```

Build the site. The probe used minimal templates for the index, section, and page; the command succeeded even though the template example was not displayed as intended.

zola build

This is the recorded output of that build.

Building site...
-> Creating 2 pages (1 orphan) and 1 sections
Done in 61ms.

The built page showed the following rendered heading in place of the intended template example. A successful build did not reveal the loss of the example’s template syntax.

<h1>Install</h1>

The next output comes from a deliberately broken variation using an undefined variable. Unlike the valid expression above, it stopped the build. The middle error line identifying the file is omitted in this illustrative record.

ERROR Failed to build the site
ERROR Reason: error: Variable `user` is not defined. Available variables: config, lang, page, zola_version

Wrap the example in raw tags when the page needs to show that template text literally. This is the fix used in the probe, and the subsequent build displayed the intended example.

{% raw %}
```jinja
<h1>{{ page.title }}</h1>
```
{% endraw %}

The following illustrative configuration is the other documented fix. It also preserved the example, but it stopped the version expression elsewhere in that file from rendering. Choose the scope deliberately when a page mixes literal template examples with values that should be expanded.

skip_content_templating = ["docs/install.md"]

Account for posts, drafts, and hidden lines

The illustrative release post below is published by Zola even though its blog/ folder lacks a section index; in the probe it was built as an orphan page. Its import is deliberately outdated for the tested Python runtime. A scanner that skips blog/ misses a real problem in published content.

+++
title = "Release 2.4"
date = 2026-11-01
+++

```python
from collections import Mapping
```

This illustrative draft has a different status. Zola did not load it in the default build, but it remains a Markdown file in the repository. The scanner does not interpret its draft metadata.

+++
title = "Upcoming 3.0 API"
draft = true
+++

```python
import acme_client_v3
```

Plan the source scan with the following command. The observations that follow describe the verified probe when run, not a claim that a planning-only scan executes examples.

docsalive scan .

The engine identified the project as plain and collected four pages and four blocks from the root. It omitted the published release post because blog is always skipped. The literal Tera text caused the version block to fail with a runtime error. The hidden-lines block passed because all three source lines ran; separately running only the visible line raised a name error because its import was hidden. The jinja fence passed without a check, and the unpublished draft failed with a missing-install-step classification.

Those results describe different problems. The version failure is a rendering mismatch. The hidden-lines pass does not establish that the visible snippet stands alone. The draft finding may still be useful to its author, but it should not be confused with a defect in the default published site. The omitted post is a coverage gap.

Only printed output in pycon sessions is compared. A separate output block is skipped, and an unknown fence label can report a pass without being run or parsed. Review the page list and skip reasons as carefully as failures.

Make a scan-ready copy

The following illustrative script was verified against the probe. It fills simple values from configuration, removes raw-tag lines, excludes drafts, renames blog paths to posts, and writes pages below scan-docs/content/. That extra level avoids placing a docs/ folder directly under the chosen scan directory, where the 0.6.3 collection quirk would narrow the scan.

"""Write a scan-ready copy of content/: config.extra values filled in, raw tags
removed, drafts left out, and blog/ renamed so the scanner does not skip it.
Pages go under OUT/content/ so a docs/ folder is not the top level of OUT."""
import re
import sys
import tomllib
from pathlib import Path

src, out = Path(sys.argv[1]), Path(sys.argv[2])
extra = tomllib.loads(Path("zola.toml").read_text())["extra"]
front = re.compile(r"\A\+\+\+\n(.*?)\n\+\+\+\n", re.S)
var = re.compile(r"\{\{\s*config\.extra\.(\w+)\s*\}\}")
raw = re.compile(r"^\{%-?\s*(raw|endraw)\s*-?%\}\n", re.M)

for page in sorted(src.rglob("*.md")):
    text = page.read_text()
    meta = front.match(text)
    if meta and tomllib.loads(meta.group(1)).get("draft"):
        print(f"skip draft {page}")
        continue
    body = text[meta.end():] if meta else text
    body = raw.sub("", var.sub(lambda m: str(extra[m.group(1)]), body))
    parts = ["posts" if p == "blog" else p for p in page.relative_to(src).parts]
    target = out.joinpath(src.name, *parts)
    target.parent.mkdir(parents=True, exist_ok=True)
    target.write_text(body)
    print(f"wrote {target}")

Generate a fresh copy and scan it. The verified run collected four pages and four blocks. The rendered version block passed; the release post produced an API-drift finding that the default scan missed. The hidden-lines block still passed with all source lines, and the unknown template fence still received no check.

python3 scripts/zola_scan_copy.py content scan-docs
docsalive scan . --docs-dir scan-docs

The script recorded the copied pages and excluded draft as follows.

wrote scan-docs/content/_index.md
wrote scan-docs/content/posts/release-2-4.md
wrote scan-docs/content/docs/_index.md
wrote scan-docs/content/docs/install.md
skip draft content/docs/upcoming.md

This is a narrow adapter. It fills only simple configuration values written in the exact form the script recognizes. It does not render page variables, functions, components, filters, or other Tera. It does not apply hide_lines. Compare representative output with the built site, and separately test the code readers actually see when hidden setup affects copyability.

Triage the result

Finding Likely cause What to do
Version block fails on template text Tera was not rendered before extraction Compare the built value and run a verified scan-ready copy
Template example changes silently Zola evaluated valid template content Use raw protection or assess the scope of skipped content templating
Visible snippet fails although source passes Required setup was hidden Test the visible lines and explain or expose the prerequisite
Published post is absent Page collection skips blog/ Verify the copy includes published posts under a collected path
Draft produces a finding The engine does not read draft metadata Decide whether the draft belongs in this check
Unknown fence passes No checker exists for that label Use a separate suitable validation step
Scan misses pages under a chosen directory That directory contains a top-level docs/ subfolder Inspect the collected page list and restructure the scan copy

A finding is evidence to investigate, not a substitute for publication context. See finding categories and static-site documentation testing for a wider review process.

Run both checks in CI

Keep the Zola build, the Zola check and the example scan as separate steps. The build catches template errors such as the undefined variable above. The check command builds without writing and checks external links in Markdown, which catches dead references that a code scan never looks at. The example scan covers the code itself. A pipeline that runs only the build will pass even when every install command on the site is out of date.

Generate the scan-ready copy in the same job, from the same checkout, right before the scan, and keep the copy folder out of version control. A stale copy tests yesterday's configuration values. If your site has drafts that should be tested before they are published, run the copy script in a separate mode that keeps them and label that job clearly, so a draft finding is never mistaken for a defect on the live site.

Decide what blocks a merge before the first run. Blocking on likely docs bugs from the rendered copy and reporting the rest is a reasonable start. Print the collected page list in the job log: with the folder-naming rules of 0.6.3, the page list is the fastest way to notice that a section was skipped or that a chosen directory was narrowed to its docs subfolder. The GitHub Actions guide shows one way to add the scan to a workflow.

Make the check repeatable

[ ] Run the Zola build and check appropriate to the release.
[ ] List published pages, drafts, orphan pages, and content under blog/.
[ ] Protect literal template examples and inspect the rendered page.
[ ] Identify config values and other template behavior used inside examples.
[ ] Generate a fresh scan copy and verify its page list.
[ ] Check the docs-subfolder collection behavior for the chosen scan directory.
[ ] Test reader-visible code separately where lines are hidden.
[ ] Review unknown labels, skipped blocks, setup, and likely docs bugs.

Where DocsAlive fits

DocsAlive fits as a code-example check with triage after the scan input has been made representative. It plans supported blocks, runs examples in isolated per-page containers, and classifies failures. It does not replace Zola’s build or reproduce Tera in 0.6.3. The CLI reference and framework reference describe the available controls and detection.

For a Zola site in 0.6.3, plan on three layers: Zola for templates and links, the scan-ready copy for the code readers see, and the scan with triage on top. 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.

If a project also uses another generator, compare its boundaries in the Eleventy guide or Quarto guide. The documentation testing checklist helps keep setup and coverage decisions visible across those workflows.

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
Zola content overview Content organization and templating
Zola pages Page metadata and drafts
Zola sections Section structure
Zola syntax highlighting Code annotations
Zola configuration Configuration and content templating
Zola CLI usage Build and check commands
Python 3.10 changes Removed compatibility aliases

FAQ

Does DocsAlive understand Zola in 0.6.3?

No. It scans eligible files as plain Markdown without rendering Tera or reading draft flags. In the probe it scanned from the root, skipped the published blog folder, ran hidden lines, and reported a jinja fence as passing without a check. A chosen docs directory containing its own docs subfolder is narrowed to that subfolder.

Why can a successful build still show the wrong example?

A valid Tera expression in a code fence can be rendered before Markdown parsing. The build may succeed while readers see its result instead of the template syntax the author meant to teach.

Does a passing hidden-lines block prove readers can run it?

No. The engine runs the source lines and does not apply hide_lines. Test the visible lines in the context readers are given.

Why was a published post missing from the scan?

Engine 0.6.3 always skips folders named blog during page collection. An include filter cannot add a page that collection already excluded.

Does the scan-copy script render all Tera?

No. It fills the probe’s simple configuration values and removes raw-tag lines, but does not render other Tera behavior or apply hidden-line annotations.

Should drafts be tested?

They can be useful to test before publication, but label that scope explicitly. Zola excludes them by default, while the engine does not read the draft flag.

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