Guide

Testing Jekyll documentation examples

Test the code a Jekyll site actually renders, including included files and site values, and keep raw Liquid out of the scan so failures mean something.

Published
Updated
November 17, 2026
Reading time
14 min
Facts checked against
Jekyll docs on directory structure, includes, Liquid tags, Markdown configuration, static files and posts, kramdown syntax and GitHub Pages publishing sources, with every code block run on Jekyll 4.4.1, Ruby 3.4 and Python 3 (November 13, 2026)
Outlined documentation pages with a lime pulse line running out of the stack
On this pageThe short answerHow a Jekyll site holds examplesWhy Jekyll examples driftClassify the blocks before running themWhat the raw scan seesPrepare a scan-ready copyTriage findingsFit the checks into a release routineWhere DocsAlive fitsThe sources we checkedFAQ

The short answer

Test the code Jekyll publishes, including code brought in by Liquid, and test Ruby plugins separately. In engine 0.6.3, DocsAlive treats a Jekyll repository as plain Markdown: it does not render Liquid before extracting fences. A scan-ready copy can make several common constructs visible to the engine, but it is a focused workaround, not a substitute for a Jekyll build or a complete Liquid renderer.

A documentation test should answer two questions: what does the reader see, and does that example work under the prerequisites on the page? For Jekyll, those questions can involve different files. A page can include a neighboring source file, interpolate a site setting, or generate a highlighted sample before Markdown is rendered. Testing only the page source can therefore test a different program from the one a reader copies.

The examples below use a small site built with Jekyll 4.4.1. They also show the observed behavior of engine 0.6.3 and a verified preparation script. The static-site testing guide covers the broader workflow; Antora and Fumadocs need different preparation because their source formats and rendering rules differ.

How a Jekyll site holds examples

A Jekyll repository can publish from a top-level docs/ folder on GitHub Pages. Its _config.yml controls site settings and Markdown processing. Pages with front matter are processed; a file without front matter is treated as a static file and copied to the output. A Markdown file may therefore exist in the repository and in _site without Jekyll rendering it as a page. See the Jekyll directory structure, static-file documentation, and GitHub Pages publishing-source documentation.

Code can appear in backtick or tilde fences, in a highlight tag, or in a file inserted through an include or include_relative tag. Liquid runs before Markdown, so a variable or included file can change the code that reaches the reader. Posts in _posts can contain examples too; an old release post may still be discoverable even when its commands no longer match current packages.

Start with this illustrative site-creation and build sequence. The build writes docs/_site.

gem install --no-document jekyll
jekyll new docs --blank
cd docs && jekyll build

The illustrative configuration selects kramdown with GFM input and provides a version value used by a page. See Jekyll Markdown configuration and kramdown syntax.

title: Example Docs
version: "2.4"
markdown: kramdown
kramdown:
  input: GFM

The following illustrative page combines several forms. Its front matter makes it a processed page. The Python fence depends on a neighboring file; the shell fence depends on a site setting; the highlight tag produces code without a Markdown fence. The Ruby hook is an example to test with Ruby tooling.

---
layout: default
title: Getting started
---

# Getting started

Check the Python version first.

```bash
python3 --version
```

The settings example comes from a file next to this page.

```python
{% include_relative examples/settings.py %}
```

Print the docs version from the site settings.

```bash
echo "Docs for version {{ site.version }}"
```

The same idea with the Liquid highlight tag:

{% highlight python %}
total = sum([1, 2, 3])
print(total)
{% endhighlight %}

A quick check in the interpreter:

```pycon
>>> sum([1, 2, 3])
6
```

A plugin hook written in Ruby:

~~~ruby
Jekyll::Hooks.register :site, :post_write do |site|
  puts "built #{site.pages.size} pages"
end
~~~

This illustrative neighboring file is the content inserted into the Python fence. Run the file directly as well as testing the rendered page: changing it can affect every page that includes it without changing those pages themselves.

import json

settings = {"retries": 3, "timeout": 10}
print(json.dumps(settings, sort_keys=True))

This illustrative Markdown file has no front matter. Jekyll copied it unchanged to _site; it did not process it as a page.

# Notes without front matter

```bash
echo "static file"
```

The distinction matters in review. A site build can succeed while an included example fails at runtime. Equally, an include may be valid after rendering even though its unrendered tag is invalid Python. A test needs to distinguish those cases before treating a failure as a documentation defect.

Why Jekyll examples drift

Most broken Jekyll examples were correct when they were written. They drift because the code a reader sees is assembled from several places, and the people who change those places are not always looking at the page.

Included files change without the page. An include_relative tag keeps a program in a neighboring file so it can be edited, linted or reused. That is a good habit, but it moves the example out of the page diff. A reviewer who changes settings.py sees a Python change, not the three pages that render it. If a function is renamed or an argument becomes required, every page that includes the file is now wrong, and none of those pages shows up in the pull request.

Site variables change what the reader copies. A version number or package name kept in _config.yml is convenient: one edit updates every command on the site. It also means that one edit can break every command on the site. A pinned version that no longer exists, a renamed package, or a value left blank after a configuration cleanup all change the rendered command while the page source stays the same.

Highlight-tag samples sit outside most checks. The highlight tag renders code with line numbers or other options, and authors sometimes prefer it for longer samples. A tool that reads Markdown fences does not see it at all, so those samples often go untested for years.

Posts keep old instructions alive. Release notes and tutorials in _posts are dated, but search engines and readers do not always treat them that way. A post that shows how to install an old version, or how to call an API that has since changed, can keep sending readers into failures long after the main documentation is fixed. Decide which posts promise current behavior and which are historical records, and label the historical ones.

Ruby plugin code changes with the toolchain. Hooks and generators run inside Jekyll on whatever Ruby the build uses. A sample hook in the docs can stop working after a Jekyll or Ruby upgrade even when every page still builds, because the sample itself is never loaded by the build.

None of these failures is visible from the page source alone. Testing a Jekyll site well means testing the rendered example and, separately, the files and settings that feed it.

Classify the blocks before running them

Kind Test and review approach
Runnable fences Run supported complete examples in page order with documented setup.
Liquid-built blocks Resolve the relevant includes and values, then verify that the copy matches the rendered page.
Highlight-tag blocks Convert them to fences for this scan or test their source separately.
Ruby Use Ruby and Jekyll tooling; the engine recognizes Ruby but skips it.
Configuration Validate with the relevant parser and tool; syntax alone does not prove a setting is meaningful.
Output and fragments Treat labeled output as a description to review and intentional fragments as incomplete examples.

A page may use both kinds of fence, but indented code blocks are not extracted by engine 0.6.3. A language label the engine does not recognize can be reported as passing without execution or parsing. That is an engine limitation: inspect the plan and use a suitable independent test for any unsupported label.

What the raw scan sees

The following command is illustrative and plans a scan; it does not execute examples without the execution flag.

docsalive scan .

In the verified repository, DocsAlive selected the top-level docs/ folder automatically and added the root README. It found six pages and eight blocks. Those pages included the post and both copies of the static notes file: _site and _posts are not excluded by the folder rules.

When executed, the Python fence containing only the include_relative tag failed as invalid syntax. That was a false failure caused by testing unrendered source, and the category would count it as a likely docs bug. The shell fence containing the dotted site variable passed while executing the literal Liquid text, rather than the rendered version value. A simple undotted variable can be recognized as a placeholder; the dotted form in this probe was not. The highlight-tag sample was not extracted, and the tilde-fenced Ruby block was skipped.

Jekyll construct What Jekyll renders What the engine does in 0.6.3
Backtick or tilde fence A highlighted code block, after Liquid processing Extracts the fence from source; it does not first render Liquid.
Include or include_relative in a fence The included content Sees the tag as source text; the Python case above produced a false invalid-syntax failure.
Dotted site variable in a fence The configured value Runs the literal source text in the verified shell example.
Highlight tag Highlighted code Does not extract the tag as a fenced block.
Ruby fence Displayed Ruby code Skips it as not executable.
Post A rendered post Scans eligible Markdown in _posts.
Static Markdown without front matter An unchanged copied file Can scan both source and _site copy if both fall under the chosen folder.

These results show why a green status needs a coverage review. Passing the literal variable text does not establish that the command a reader sees was tested. Conversely, a failure on an unrendered tag is evidence about the scan input, not necessarily about the published example.

Prepare a scan-ready copy

The following illustrative script was verified for this layout. It requires a YAML parser in the environment running the script. It fills the supported includes and site values, converts highlight tags to fences, and reports remaining Liquid inside code blocks.

"""Write a scan-ready Markdown copy of a Jekyll site.

Fills in the Liquid that a code block depends on: include_relative and
include tags, site.* variables from _config.yml, and highlight tags
(turned into fenced blocks). Files without front matter, _site and the
Jekyll support folders are left out. Anything Liquid left inside a code
block afterwards is reported, because the page would show it differently.
"""
import re
import sys
from pathlib import Path

import yaml

src = Path(sys.argv[1] if len(sys.argv) > 1 else "docs")
out = Path(sys.argv[2] if len(sys.argv) > 2 else "scan-docs")
site = yaml.safe_load((src / "_config.yml").read_text()) or {}
SKIP = {"_site", "_includes", "_layouts", "_sass", "_data", "vendor", "node_modules", out.name}
problems = 0


def fill(text, page):
    def include(m):
        base = page.parent if m.group(1) == "include_relative" else src / "_includes"
        return (base / m.group(2)).read_text().rstrip("\n")
    text = re.sub(r"\{%-?\s*(include_relative|include)\s+(\S+)\s*-?%\}", include, text)
    text = re.sub(r"\{\{-?\s*site\.(\w+)\s*-?\}\}", lambda m: str(site.get(m.group(1), m.group(0))), text)
    text = re.sub(r"\{%-?\s*highlight\s+(\w+)[^%]*%\}", r"```\1", text)
    return re.sub(r"\{%-?\s*endhighlight\s*-?%\}", "```", text)


for page in sorted(src.rglob("*.md")):
    rel = page.relative_to(src)
    if set(rel.parts) & SKIP or not page.read_text().startswith("---"):
        continue
    text = fill(page.read_text(), page)
    in_code = False
    for n, line in enumerate(text.splitlines(), 1):
        if line.lstrip().startswith(("```", "~~~")):
            in_code = not in_code
        elif in_code and re.search(r"\{\{|\{%", line):
            print(f"{rel}:{n}: Liquid left in a code block: {line.strip()}")
            problems += 1
    dest = out / rel
    dest.parent.mkdir(parents=True, exist_ok=True)
    dest.write_text(text)
    print(f"wrote {dest}")

sys.exit(1 if problems else 0)

Build first, then create the copy and plan its scan with the explicit docs directory:

cd docs && jekyll build && cd ..
python3 scripts/jekyll_scan_copy.py docs scan-docs
docsalive scan . --docs-dir scan-docs

The script produced the following file list in the verified run:

wrote scan-docs/_posts/2026-11-01-release-notes.md
wrote scan-docs/getting-started.md
wrote scan-docs/index.md

The copy yielded four scanned pages including the root README and seven blocks. When executed, its Python, shell and pycon blocks passed; Ruby remained skipped. The engine compares printed output only for Python pycon or python-repl sessions. Findings refer to lines in the copy, so trace each one back to its source page or included file before editing.

This next illustrative addition is broken on purpose for the preparation script: it uses a page variable that the script does not fill.

Print the page title:

```bash
echo "{{ page.title }}"
```

The script reported the unresolved value and exited with a failure status:

wrote scan-docs/_posts/2026-11-01-release-notes.md
getting-started.md:54: Liquid left in a code block: echo "{{ page.title }}"
wrote scan-docs/getting-started.md
wrote scan-docs/index.md

Treat that stop as a request to review coverage. The script is not a Liquid engine: it does not implement filters, loops, conditionals or plugin tags. It also deliberately leaves static files without front matter out of the copy. Test any such published material separately, and compare representative generated blocks with the built site. Remove or recreate stale generated copies as part of your own workflow so old files cannot be mistaken for current coverage.

Triage findings

Finding What to check next
Invalid syntax at an include tag Determine whether the scan received raw Liquid; inspect the rendered page and the included file.
A passing command containing a site value Verify that the value was substituted before testing.
Failure in an old post Decide whether the post promises current commands or needs version context.
Ruby skipped Run a Ruby-specific test and, for hooks, a representative Jekyll build.
Missing dependency or fixture Compare the page’s stated prerequisites with the test setup.
Highlight sample absent Add a separate test or use a reviewed scan-ready copy.

A missing install step, missing fixture or dependency on context is not automatically the same as a broken API example. Review the page sequence and the intended reader environment. DocsAlive keeps supported Python blocks in page order, but a test that supplies undocumented setup can still hide a missing instruction.

Use this checklist in a change review:

[ ] Build the Jekyll site and inspect changed rendered examples.
[ ] Identify included files, site values, highlight tags and affected posts.
[ ] Create and review a fresh scan-ready copy; resolve reported Liquid.
[ ] Plan and execute supported blocks with the intended setup.
[ ] Trace copy line numbers back to source pages and included files.
[ ] Test Ruby plugins and hooks with Ruby tooling.
[ ] Test static files and unsupported constructs separately.
[ ] Review skipped blocks, prerequisites and findings before release.

Fit the checks into a release routine

A Jekyll site changes in small ways between releases, so the checks work best as a routine rather than a one-time audit. A practical order looks like this.

First, build the site from a clean checkout. A failed build tells you about Liquid errors, missing includes and configuration problems before anything else runs. In our test, misspelling the include_relative path made the build stop with a Liquid exception that named the missing file and the page, and the command exited with status 1, so a CI job fails on it without extra work.

Second, regenerate the scan-ready copy from that same checkout and read the script's report. Unresolved Liquid inside a code block is a coverage gap, not a pass. Either extend the preparation for that construct, convert the sample to a form the copy supports, or record the page as tested another way.

Third, plan the scan before executing it. The plan lists what will run, what will be syntax-checked and what will be skipped, with a reason for each skip. Read the skips: Ruby, unknown labels and blocks without a language are where coverage quietly disappears. Then execute the supported blocks with the setup the pages document, not extra setup that a reader would not have.

Fourth, run the included files and plugin samples directly. A Python file that several pages include deserves its own test, because a fix to that file fixes every page at once. A sample hook should be loaded by a representative Jekyll build on the Ruby version you support.

Finally, look at a few rendered pages next to the copy. The script fills site values from _config.yml, but a theme, plugin or environment-specific configuration file can change the result. Spot checks catch differences that no scan reports.

When a finding appears, fix the source, not the copy. The copy is regenerated on every run, so edits there disappear; the page, the included file or the configuration value is the thing to change. The docs testing checklist has a release-level version of this routine, and the GitHub Actions guide covers running the steps in CI.

Eleventy also pre-processes Markdown with Liquid by default, so the same source-versus-rendered gap applies there; see testing Eleventy documentation examples. Hexo, a Node blog generator, inserts code through tag plugins and keeps drafts in the source tree; see testing Hexo documentation examples.

Where DocsAlive fits

Use DocsAlive on a reviewed Markdown copy to run supported examples and sort findings by their cause. Its page-level sandbox and ordered execution help reveal errors without treating every environmental failure as a docs bug. The CLI reference describes execution and setup options, and findings explains categories.

Keep the Jekyll build and Ruby tests in the workflow. A scan does not prove that navigation, layout or prose is correct, and the preparation script covers only the constructs stated above. For a public repository you maintain, the one-off health check can provide a report on up to 40 docs pages. Plans and limits are on the pricing page; the Open source plan is $0 per month for a public OSI-licensed repository.

The sources we checked

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

Source What it covers
Jekyll directory structure Site files and folders
Jekyll includes Included content and relative includes
Jekyll Liquid tags Highlighting and other tags
Jekyll Markdown configuration Markdown processing settings
Jekyll static files Files without front matter
Jekyll posts Post organization
kramdown syntax Fences, indented code blocks and attribute lists
GitHub Pages publishing sources Publishing from a repository folder

FAQ

Does a Jekyll build test every example?

No. A build checks site generation, but a rendered command or included program can still fail when a reader runs it.

Does DocsAlive render Liquid?

Engine 0.6.3 scans Jekyll as plain Markdown and does not render Liquid before extraction. The preparation script in this guide handles a limited set of constructs.

Why did an include produce invalid syntax?

The raw fence contained a Liquid tag rather than Python. Jekyll replaces that tag during its build, so inspect the rendered content before treating the raw-scan failure as a docs bug.

Are posts and generated files scanned?

Eligible Markdown in both _posts and _site can be scanned. In the verified repository a static notes file appeared twice, once in the source and once in the generated copy.

Does the engine run Ruby hooks?

No. Ruby fences are skipped in engine 0.6.3. Test plugins and hooks with Ruby tooling and a representative Jekyll build.

Does a passing scan cover all Liquid?

No. Review unresolved constructs, skipped blocks and the generated copy. The script does not implement filters, loops, conditionals or plugin tags.

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