Guide

Testing Fumadocs documentation examples

Test the install commands, tab variants and included files that a Fumadocs build shows readers, and know which of them a scan actually runs.

Published
Updated
November 17, 2026
Reading time
13 min
Facts checked against
Fumadocs docs on Next.js setup, Markdown, the Tabs component, Remark NPM, MDX includes, global options and code highlighting, with every code block run on Fumadocs 16.19.0, Next.js 16.4.6, Node 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 Fumadocs site holds examplesWhy Fumadocs examples driftClassify the visible examplesWhat the raw scan seesPrepare a scan-ready copyTriage findingsKeep generated choices honestWhere DocsAlive fitsThe sources we checkedFAQ

The short answer

Build the Fumadocs site and test the commands and files that its rendered tabs expose. Engine 0.6.3 treats Fumadocs as plain Markdown, so use the content directory explicitly and review what the scan actually extracts. In particular, an npm fence can be reported as passing without being run: that is an engine limitation. A reviewed scan-ready copy can turn the demonstrated constructs into testable fences.

Fumadocs can present more choices than appear in the source. Remark NPM can turn one written install command into four package-manager tabs, while separate tab metadata can group examples for readers. Included files can change independently of the page. A reliable workflow checks the built site, the underlying files and the coverage of each displayed alternative.

The examples below use the verified Fumadocs setup and engine 0.6.3. See the static-site guide for the general approach and the related guides for Jekyll and Antora for other rendering models.

How a Fumadocs site holds examples

In this layout, content lives under content/docs as MDX. Front matter supplies page metadata, meta.json controls page order, and fences can carry titles or tab metadata. A Tabs component is another way to present alternatives. Remark NPM transforms an npm fence into package-manager choices; package-install fences provide another install-oriented form. Include tags can insert source files, and Shiki highlights code during the build.

Create the illustrative app with the following command:

npx --yes create-fumadocs-app@16.3.2 example-docs --template +next+fuma-docs-mdx --pm npm --no-git --install -y

The illustrative MDX component mapping makes the Tabs components available to pages.

import defaultMdxComponents from 'fumadocs-ui/mdx';
import * as TabsComponents from 'fumadocs-ui/components/tabs';
import type { MDXComponents } from 'mdx/types';

export function getMDXComponents(components?: MDXComponents) {
  return {
    ...defaultMdxComponents,
    ...TabsComponents,
    ...components,
  } satisfies MDXComponents;
}

export const useMDXComponents = getMDXComponents;

declare global {
  type MDXProvidedComponents = ReturnType<typeof getMDXComponents>;
}

The illustrative global configuration maps the pycon label to the Python grammar. In this verified setup the TypeScript check also required themes alongside the alias.

import { defineConfig } from 'fumadocs-mdx/config';

export default defineConfig({
  mdxOptions: {
    rehypeCodeOptions: {
      themes: { light: 'github-light', dark: 'github-dark' },
      langAlias: { pycon: 'python' },
    },
  },
});

This illustrative metadata file orders the pages:

{
  "title": "Docs",
  "pages": ["index", "getting-started", "test"]
}

The illustrative page below contains an install fence, component tabs, metadata-based tabs, an include and an interpreter session. The build rendered the install fence as four package-manager choices and rendered the included file as a code block.

---
title: Getting started
description: Check the tools, install the client and run a first example.
---

Install the client package:

```npm
npm i semver
```

Check the package manager:

<Tabs items={['npm', 'yarn']}>
<Tab value="npm">
```bash
npm --version
```
</Tab>
<Tab value="yarn">
```bash
yarn --version
```
</Tab>
</Tabs>

Check the Python installer:

```bash tab="pip"
python3 -m pip --version
```

```bash tab="pipx"
pipx --version
```

The same calculation in two languages:

```python tab="Python"
print(sum([1, 2, 3]))
```

```js tab="JavaScript"
console.log([1, 2, 3].reduce((a, b) => a + b, 0));
```

The settings example comes from a file in this folder:

<include>./settings.py</include>

A quick check in the interpreter:

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

The illustrative included file can change without an edit to the page. Test it directly as a real file as well as checking the page that displays it.

import json

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

Build the site with the illustrative command below. With the alias configuration above, the verified build succeeded.

npm run build

The following diagnostic shows the build broken on purpose by omitting that configuration. A build failure for a pycon label can encourage authors to avoid the label, losing a useful way to check a Python interpreter session.

ShikiError: Language `pycon` not found, you may need to load it first

The Fumadocs Markdown documentation, Tabs documentation, Remark NPM documentation, and include documentation describe these authoring features.

Why Fumadocs examples drift

Fumadocs makes it easy to show readers more than the author wrote. That is good for readers and hard for testing, because the extra material is generated at build time and never appears in the source that most checks read.

One install command becomes four. Remark NPM takes a single npm command and shows npm, pnpm, yarn and bun versions of it. The author wrote and probably ran one of them. The other three are translations. They are usually right, but flags, workspace options and scripts do not always translate one-to-one, and nobody sees the generated variants until a reader picks one.

Tab variants are edited one at a time. When a page shows pip and pipx tabs, or Python and JavaScript tabs, an update to one variant is easy to forget in the others. Review tends to look at the first tab, so a renamed package or a new required argument can land in one tab while the other keeps the old form for months.

Included files change outside the page diff. An include tag shows a real file, which keeps the example close to code that may be tested elsewhere. It also means that a change to that file changes the page without touching it. If the file is not tested on its own, a broken edit reaches readers through every page that includes it.

A build error pushes authors away from checkable formats. In our test, a pycon fence failed the whole build until the language was mapped to the Python grammar. An author who meets that error under deadline pressure will often relabel the session as plain text or python and move on. The page then looks the same, but the printed output is no longer something a test can compare.

Components hide code from fence-based tools. A custom component can render code from props, imports or data files. That code never appears as a fence, so it is invisible to any tool that reads fences, including the engine. Keep an inventory of components that render runnable code so they are tested another way.

The result is a site where the source, the build and the reader's view can disagree. A good workflow checks each of them deliberately.

Classify the visible examples

Kind Appropriate check
Shell or language fence Run a complete example with the documented setup.
Generated install tabs Test each package-manager path that readers can choose.
Component or metadata tabs Identify alternatives and record which variants ran.
Included file Test the file directly and verify the displayed content.
Configuration Parse and validate it with the relevant tool.
Output or fragment Review its purpose and make omissions clear to readers.

Tab variants can drift independently. A preferred tab passing does not establish that another package manager is installed or that its displayed command works. Likewise, a Python tab and a JavaScript tab may implement the same idea but still need their own tests.

What the raw scan sees

The following command plans a scan of the content folder. It does not execute blocks without the execution flag.

docsalive scan . --docs-dir content/docs

In the verified repository, DocsAlive treated the content as plain Markdown and added the root README, for four pages. When executed, the npm fence was reported as passing without running anything, even when the package name was deliberately nonexistent. Unknown fence labels have no runner in this engine version and can receive a pass without execution or parsing. This is an engine limitation.

The Tabs component was grouped: the npm variant ran and the yarn alternative was skipped. The tab= fences were not grouped, so both installer commands ran and the pipx command failed as missing-tool. The Python and JavaScript examples both ran and passed. The include was not seen because it was not a fence. The pycon session passed after the build accepted its label.

Fumadocs construct What Fumadocs renders What the engine does in 0.6.3
npm fence Four package-manager tabs in the verified build Reports a pass without running or checking it.
Package-install fence An install-oriented presentation Its unknown label can pass without execution or parsing.
Tabs component Selectable alternatives Groups recognized component tabs and selects a variant.
Fence tab metadata A tab set in the verified build Does not group those fences by their metadata.
Python and JavaScript tabs Alternative language examples Both ran in the verified raw scan.
Include tag Code from the included file Does not extract the include itself.
Pycon fence A highlighted interpreter session once the grammar alias is configured Executes the session and compares its printed output.
Shiki highlighting Formatted code Is part of the site build, not proof that code ran.

The engine compares printed output only in Python pycon or python-repl sessions. A separate output block is skipped; it is not validated. Keep a separate check for any other output promise that matters to the reader.

Prepare a scan-ready copy

The following illustrative script was verified for the demonstrated layout. It converts install-oriented fences, wraps consecutive metadata tabs in recognized component markup, and inserts supported whole-file includes.

"""Write a scan-ready copy of a Fumadocs content folder.

- npm fences become bash fences, and package-install fences become
  npm install commands, so the commands are run instead of skipped;
- runs of fences that carry tab="..." are wrapped in <Tabs>/<Tab> so the
  scanner treats them as one tab group;
- <include>./file</include> and ::include[./file] become fenced blocks
  holding the file, so included code is tested with the page.
Includes with a #region are reported and left for a direct test.
"""
import re
import sys
from pathlib import Path

src = Path(sys.argv[1] if len(sys.argv) > 1 else "content/docs")
out = Path(sys.argv[2] if len(sys.argv) > 2 else "scan-docs")
LANGS = {".py": "python", ".js": "js", ".mjs": "js", ".ts": "ts", ".sh": "bash", ".json": "json", ".toml": "toml"}
INCLUDE = re.compile(r"^\s*(?:<include>(.+?)</include>|::include\[(.+?)\])\s*$")
FENCE = re.compile(r"^(`{3,})(\S*)(.*)$")
problems = 0


def convert(page):
    global problems
    lines, result, i = page.read_text().splitlines(), [], 0
    while i < len(lines):
        m = FENCE.match(lines[i])
        inc = INCLUDE.match(lines[i])
        if inc:
            target = (inc.group(1) or inc.group(2)).strip()
            path = (page.parent / target.split("#")[0]).resolve()
            if "#" in target or not path.exists() or path.suffix not in LANGS:
                print(f"{page}:{i + 1}: include not resolved, test {target} directly")
                problems += 1
                result.append(lines[i])
            else:
                result += [f"```{LANGS[path.suffix]}", path.read_text().rstrip("\n"), "```"]
            i += 1
            continue
        if not m:
            result.append(lines[i])
            i += 1
            continue
        group = []
        while m and 'tab="' in m.group(3):
            end = next(j for j in range(i + 1, len(lines)) if lines[j].strip() == m.group(1))
            group.append((re.search(r'tab="([^"]+)"', m.group(3)).group(1), lines[i:end + 1]))
            i = end + 1
            while i < len(lines) and not lines[i].strip():
                i += 1
            m = FENCE.match(lines[i]) if i < len(lines) else None
        if group:
            result.append("<Tabs>")
            for label, block in group:
                result += [f'<Tab value="{label}">', *block, "</Tab>"]
            result += ["</Tabs>", ""]
            continue
        end = next(j for j in range(i + 1, len(lines)) if lines[j].strip() == m.group(1))
        body = lines[i + 1:end]
        if m.group(2) == "npm":
            result += ["```bash", *body, "```"]
        elif m.group(2) == "package-install":
            result += ["```bash", *[f"npm install {b.strip()}" for b in body if b.strip()], "```"]
        else:
            result += lines[i:end + 1]
        i = end + 1
    return "\n".join(result) + "\n"


for page in sorted(src.rglob("*.md*")):
    dest = out / page.relative_to(src)
    dest.parent.mkdir(parents=True, exist_ok=True)
    dest.write_text(convert(page))
    print(f"wrote {dest}")

sys.exit(1 if problems else 0)

Create the copy and plan a scan of it:

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

The verified preparation run wrote these files:

wrote scan-docs/getting-started.mdx
wrote scan-docs/index.mdx
wrote scan-docs/test.mdx

The copy produced four scanned pages, including the root README, and eleven blocks. When executed, the npm command actually ran and passed; pip ran while pipx was skipped as an alternative; Python and JavaScript passed; the included file ran; and the pycon session passed.

The script reports region includes for direct testing and exits with a failure status. It does not evaluate arbitrary MDX expressions or components beyond the patterns described. Review generated content against the built page, especially when a tab set or include differs from the demonstrated form. Findings refer to the generated copy, so trace them back to the source page or included file.

Triage findings

Finding What to check next
Green install fence in the raw scan Confirm whether the label had a runner; test the command through the reviewed copy or separately.
Missing-tool for a tab Decide whether the tool is a documented prerequisite and test that alternative in a suitable environment.
Included code absent from the report Test the underlying file and use a supported whole-file copy where appropriate.
Pycon build failure Check the Shiki language alias and rebuild before scanning.
One tab passes Record which alternatives remain untested.
Unresolved region include Test the selected region directly and inspect its setup.

For install examples, distinguish the source command from the variants generated for readers. A scan of one command is evidence for that command under the chosen environment. It does not prove that every generated package-manager path works. Commands needing network access also need an environment that permits it; a network-disabled run can skip them.

Use this checklist in a review:

[ ] Build the site and inspect changed pages and tab sets.
[ ] Check generated package-manager commands separately.
[ ] Test included files directly and review selected regions.
[ ] Configure highlighting for interpreter sessions used by the site.
[ ] Create a fresh scan-ready copy and inspect its transformations.
[ ] Plan and execute supported blocks with documented setup.
[ ] Record skipped tab alternatives and test important variants separately.
[ ] Trace findings in the copy to the original source before editing.

Keep generated choices honest

Most of the work in testing a Fumadocs site is deciding which of the choices a reader sees you will actually stand behind.

Start with install commands. Decide whether every generated package-manager tab is supported. If it is, test at least one representative command for each manager in an environment where that manager is installed, because the engine runs one variant from a group and skips the alternatives. If some managers are not supported, say so on the page or limit the generated tabs, rather than showing commands nobody has run.

For tab groups written with tab metadata, keep the variants parallel. A short review rule helps: when one tab changes, every tab in the group is reviewed in the same pull request. The scan-ready copy wraps those runs in recognized tab markup so the engine treats them as alternatives, which removes false missing-tool failures but also means only one variant runs. Record which one.

For includes, test the underlying files as code. A whole-file include can be inlined into the copy so the page-level example runs in context; a region include needs a direct test of the region, because the copy script reports it instead of guessing. In both cases, the included file should have its own test in the repository, since that is where people edit it.

For interpreter sessions, keep the language alias in the site configuration so authors can use pycon without breaking the build. Sessions are the one place where printed output is compared, which makes them worth protecting.

Finally, build before scanning. A Fumadocs build catches MDX syntax errors, missing components and highlighting problems that a scan does not report. Run the build, then the copy script, then the planned scan, then the execution, and keep each step's output so a failure can be traced back to the right layer. The JavaScript docs testing guide, the Nextra guide and the GitHub Actions guide cover related MDX and CI patterns.

Where DocsAlive fits

Use DocsAlive on the reviewed Markdown copy to execute supported examples in page order and classify findings. Its fresh page containers help expose missing setup, while triage separates likely documentation bugs from cases such as missing tools and credentials. See framework coverage, the CLI reference and findings.

Keep the Fumadocs build, direct included-file tests and alternative package-manager tests alongside the scan. The copy does not evaluate arbitrary components, and a passing status must be interpreted in light of the engine’s label support. The one-off health check provides a report for an eligible public repository, with those same coverage limits in mind. 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
Fumadocs for Next.js Site setup
Fumadocs Markdown MDX authoring and code blocks
Tabs component Component-based tabs
Remark NPM Package-manager presentation
MDX includes Including source files
Global MDX options Shared configuration
Code highlighting Highlighting options

FAQ

Does DocsAlive detect Fumadocs automatically?

Engine 0.6.3 treats the repository as plain Markdown. Point the scan at content/docs and review the added root README and the resulting coverage.

Does a passing npm fence mean the install ran?

No. In engine 0.6.3 the unknown npm label can be reported as passing without execution or parsing. This is an engine limitation.

Are all Fumadocs tabs grouped?

The recognized Tabs component was grouped in the verified scan. Fences grouped by tab metadata were not grouped until the preparation script wrapped them.

Does a scan test an included file automatically?

The raw include tag was not extracted in the verified scan. Test the file directly or use a reviewed copy that inserts a supported whole-file include.

Why configure a pycon language alias?

In the verified build, Shiki did not recognize the pycon label until it was mapped to the Python grammar. The alias allowed the site build to accept that session.

Does one passing package-manager tab cover the others?

No. Record the variant that ran and test other reader-visible alternatives in suitable environments.

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