aardvark
aardvark is a static site generator for documentation — author in Markdown, build to fast static HTML with interactive React islands.
aardvark is a documentation-focused static site generator. You author in Markdown and build to static HTML. Interactive UI is delivered as islands: aardvark emits the HTML, and your theme’s components — the default theme’s open-source library is built on Mantine — plus your own React components render in the browser from a single bundled runtime.
This very site is built with aardvark.
Markdown in, fast static HTML out — with interactive components. No build config to write.
Markdown in, fast static HTML out — with interactive components. No build config to write.
Why aardvark
- Markdown in, HTML out — pretty URLs, a TOC, and a clean default theme.
- Real Python templating — logic lives in
{% %}tags and is actual Python, with your structured data exposed asdata.<file>.<prop>. - Open-source components — the default theme’s library turns Mantine’s UI components and documentation staples like tabs, cards, maps and changelogs into Markdown tags, and your own React snippets sit beside them. They render as islands.
- Batteries included — built-in ⌘K search, a built-in “Ask AI” assistant,
Google Analytics with page-rating events, OpenAPI “try it now” reference pages,
and auto-generated
sitemap.xml+llms.txt. - Optional build-time AI — when enabled, generate frontmatter, example API responses, and a skill-creation plan from your docs.
- Ships as one binary — compile the tool to a single executable with Nuitka. Node is only needed at build time to bundle the islands.
How it fits together
content/, structured data in data/, and optionally
custom React components in snippets/.vark build runs the {% %} Python templating, renders Markdown to HTML,
collects every {% component(...) %} call into island mount points, and
bundles the referenced Mantine/snippet components with esbuild.build/ is plain static HTML + one JS/CSS bundle, ready to
host anywhere.content/, structured data in data/, and optionally
custom React components in snippets/.vark build runs the {% %} Python templating, renders Markdown to HTML,
collects every {% component(...) %} call into island mount points, and
bundles the referenced Mantine/snippet components with esbuild.build/ is plain static HTML + one JS/CSS bundle, ready to
host anywhere.Explore the docs
Install the CLI and you’re ready to build.
Scaffold and build your first site in a minute.
Live examples of every built-in component, callable straight from Markdown.
Install the CLI and you’re ready to build.
Scaffold and build your first site in a minute.
Live examples of every built-in component, callable straight from Markdown.
Quickstart
Once you’ve installed aardvark, you can scaffold, preview, and build your first site in a few commands.
1. Scaffold a site
vark new my-docs
cd my-docs
This creates a project with two starter pages (content/index.md and
content/quickstart.md), a sample data file (data/products.yaml), the editable
default theme in themes/vark/, an example snippet (snippets/Callout.jsx), a
root custom.css, a package.json for the islands, and a .gitignore that
already excludes build/, node_modules/, .aardvark-cache/, and .env.
2. Islands dependencies — included with aardvark
There’s nothing to install and nothing to download: aardvark ships the islands
toolchain — React, Mantine, and esbuild, which it uses to bundle the components
you embed — and your first vark dev or vark build stages it into the
project’s .aardvark-cache/ automatically (Node.js is the one prerequisite).
Run npm install yourself only if you add packages aardvark doesn’t ship — a
node_modules of your own always takes over — and set AARDVARK_NO_AUTO_NPM
if you never want aardvark running npm on your behalf.
3. Develop with live reload
vark dev --port 8000
vark dev builds the site, serves it on http://127.0.0.1:8000, opens that URL
in your browser, watches your source files, and reloads the browser on every
change. Pass --no-open if you’d rather open the tab yourself.
In a terminal, vark dev runs a live dashboard on the alternate screen, so its
log disappears when you quit — pass --log-file dev.log to keep a plain-text
copy, or --plain for ordinary line-by-line output.
4. Build for production
vark build # outputs static HTML to ./build
A link to a page or local image that doesn’t exist — in any language — fails the
build; a link to a missing #anchor on a page that does exist only warns (set
links: {strictAnchors: true} in aardvark.config.yaml to fail on those too).
An unknown component name never fails the build: it renders as an HTML comment
and is reported as a warning.
Create your first page
An aardvark page is Markdown with optional YAML frontmatter. Logic is real
Python inside {% %} tags:
---
title: Hello
---
# Hello
This site has {% len(components) %} Mantine components available.
{% component('Button', children='Click me', color='blue') %}
That’s it. Continue with Project structure or jump to Templating & data.