Readme
Using Varde Docs
Varde Docs
Generate a static HTML documentation site from markdown/docs content, styled with Varde. This skill is the documentation-specific layer on top of the general varde skill — read ../varde/SKILL.md and its reference material first for the actual class vocabulary, component markup, and page-shell templates. This file only covers what's specific to documentation-site generation: converting markdown by hand, deciding single vs multi-page, and generating navigation.
Like varde, the output must be servable as plain static files: no build step, no npm install, no JS framework. The only network dependency at page-load time is Varde's CDN stylesheet.
When to use
The user provides markdown/text content (pasted, or pointing at existing files like a README) and wants it turned into a static documentation site. For anything that isn't documentation-shaped — a landing page, a form, general "build me a page with Varde" requests — use the varde skill directly instead.
Reference material
- ../varde/SKILL.md and its
references/— utility classes, components, page-shell templates (single-page and multi-page-with-nav), color-mode usage, and pitfalls to avoid. Required reading before generating anything. - references/doc-site-structure.md — documentation-specific guidance: single vs multi-page decision, hand-converting markdown to HTML, generating navigation, output location/naming.
Steps
-
Gather the content. Read whatever markdown/files the user pointed at, or use pasted content directly. If the output location wasn't specified, ask, or default to
./docs-site/perdoc-site-structure.md. -
Decide single-page vs multi-page per
doc-site-structure.md's heuristic, then build from the corresponding template in thevardeskill'sreferences/page-shell.md. -
Convert markdown to HTML by hand following
doc-site-structure.md's conversion table. Wrap each page's content in<div class="typeset">— this alone gives correct heading sizes, vertical rhythm, list markers, table styling, link styling, and inline-code styling with no extra classes needed inside it. -
Code blocks stay plain —
<pre><code>…</code></pre>, no syntax highlighting (seedoc-site-structure.mdfor why). -
For multi-page sites, reuse the identical header+nav shell across every page, with relative links between pages and nav generated per
doc-site-structure.md. -
Stick to the
vardeskill's verified classes and consult itspitfalls.mdbefore using anything color- or variant-related that you're not sure of — several things documented in Varde's own knowledge base aren't actually shipped in the CSS. -
Tell the user what they got: the site is fully static (open directly or serve with any static file server), and it depends on Varde's CDN being reachable at page-load time — by design, since the point is to never bundle the design system.
From the skill's README
Skill: Varde Docs
Use the Varde design system to create simple documentation sites.
- See design system source: https://github.com/varianter/varde
- Documentation: https://varde.variant.dev/