llustration shows a hand pressing a red button labeled 'Button', surrounded by a teal refresh/sync icon, an orange question mark, and a patterned toggle switch, with a cursor pointing at the scene.

How to automate your design system documentation (without losing the parts that matter)

Harriet O'Neill
Written by Harriet O'Neill
Aug 19, 2026

Documentation is easy to write and hard to maintain. Most design system teams don't fail because nobody wrote the docs — they fail because nobody kept them true once the code moved on.

The fix isn't "automate everything" or "write everything by hand." It's knowing which parts of your documentation are facts you can pull from a source of truth, and which parts only exist because a human made a judgement call. Get that split right, and you can automate the first group with confidence and stop worrying about the second.

Start by sorting your docs into three buckets


Before automating anything, split your documentation into three categories.

  • 1. Mirrored. Content whose source of truth already exists elsewhere: props, token values, component status, version numbers. If the docs and the source ever disagree, the docs are wrong by definition — the truth lives somewhere else, and the doc is just a reflection of it. This is the easiest category to automate, because it can be fully regenerated on every change with no judgement involved.
  • 2. Distilled. Content where the raw material exists, but the deliverable doesn't. Commits exist, but a readable changelog doesn't. A pull request discussion happens, but a migration note doesn't. A machine can draft a first pass here — turning diffs into narrative, or usage data into a "most used variant" summary — but a human should still set the tone, decide what to include or omit, and sign off before it ships.
  • 3. Authored. Content that only exists in someone's head: why a pattern was chosen over another, when not to use a component, accessibility intent, taste and judgement calls. There's no upstream source to pull this from, so a machine can only fabricate it if you ask it to generate this content unassisted. This should stay human-written, with machines helping only at the polishing stage.

The rule of thumb: automate the facts, write the story.

Illustration of a hand holding a UI card with a text/font icon, surrounded by three open trash cans (pink, grey, and orange) and a cursor, on a faint grid background.


How the automation actually works


The mechanics are simple: connect zeroheight to your repo — and let markdown files sync directly into it rather than being manually copied and pasted across. Once that connection exists, engineers can write documentation in their IDE using markdown — a format they're already comfortable with — without touching a separate authoring tool. Better still, scripts can generate that markdown for them automatically.


A practical setup looks like this:

  • On commit, scripts run and generate the relevant markdown files.
  • On pull request, CI validates those files and runs any additional scripts — for example, building a changelog from the commits in that PR.
  • On sync, the documentation tool pulls in the updated markdown so the published docs match the repo.

Within that pipeline, markdown files tend to fall into three types: handwritten (for the rare things that genuinely can't be automated, like a note on who owns a component), generated (information pulled straight from the repo and reformatted, no AI involved), and AI-assisted (generated content run through an LLM to turn something raw into something readable).


Five things worth automating:

  • Props and API tables. Using your TypeScript compiler, a script can pull every prop's name, type, default, required status, and any JSDoc description, then output a props table and API spec automatically. There's no AI in the loop here — this is pure "mirrored" content, so it's deterministic and hard to get wrong. Build the check into CI, and if someone forgets to regenerate it after a code change, the build fails rather than the docs quietly going stale. And because the finished tables land in zeroheight, they're visible to designers, engineers, and the AI tools reading your design system documentation — where accurate props tables are especially valuable as AI context.
  • Changelogs. This sits in the "distilled" bucket. A script reads the Git log, groups commits by release, and sends the diffs to an LLM to turn commit messages into readable, categorised release notes (fixes, additions, internal changes). The output can feed three places at once: a changelog tab on each component, an aggregate changelog at the top of the documentation, and a CHANGELOG.md file at the root of the repo itself. Run this at the pull request stage rather than on commit, so it reflects what's actually shipping rather than lagging behind.
  • Token reference tables. If your token source of truth lives in code, a script can output a markdown table showing the platform-specific variable name, its alias, and the resolved value — closer to what a developer actually sees in CSS or code than an abstract token name.
  • Accessibility conformance reports. Run an accessibility testing tool against your rendered components (ideally the live product, though a Storybook instance works too), then pipe the results into markdown and surface them directly in the documentation. It's a low-effort way to make accessibility status visible and build trust in the system, rather than relying on people to go and check separately.
  • Contributor and ownership information. Declare ownership in a file in the repo (often called a “CODEOWNERS” file) — it can double as your CI ownership config, so it gets maintained as a side effect of normal code review rather than needing separate upkeep. Contribution stats can then be derived from the Git log, excluding commits that only touch generated docs (otherwise whoever runs the docs pipeline becomes the "top contributor" to everything). Components with no assigned owner show up as unassigned, which makes ownership gaps visible instead of hiding them.
Illustration of a purple button labeled 'Button', a cursor, a large teal number 5 with a starburst outline behind it, and a pink square with a refresh/sync icon, on a faint grid background.

What should stay human


Usage guidance, rationale, migration notes, do's and don'ts, why an API looks the way it does, what was tried and rejected, what a breaking change actually means for the team using it — none of this can be pulled from a source of truth, because the "truth" is a decision someone made, not a fact sitting in a file.


Watch for two failure modes:

  • Automating the narrative produces confident-sounding noise — plausible text with no real decision behind it, because there was nothing to distil it from.
  • Not automating the facts leaves you back where you started: manually maintained tables and specs that quietly drift from what the code actually does.


The fix isn't picking one approach over the other. It's letting generated tables and curated guidance live side by side on the same page — the facts refreshed automatically, the story written deliberately.


zeroheight is built for exactly this split, with automated content and human-authored guidance living side by side in one place for the whole organisation.

Illustration of a teal circular character wearing a baseball cap with a 'Z' on it, resting a hand on the character, surrounded by a beige API gear icon and an orange user/team icon, with a cursor on a faint grid background.


What makes automated docs trustworthy


Three properties separate documentation automation that holds up from automation that quietly erodes trust:

  • Deterministic. No AI involved in anything treated as fact, so the same source always produces the same output.
  • Idempotent. Scripts know when to create, update, or skip a file, so changes only appear when reality actually changes — keeping pull request diffs reviewable instead of noisy.
  • CI-enforced. Every generation script has a corresponding check. If someone updates a component and skips the docs step, the build fails. Drift becomes a visible build error instead of something that rots quietly in the background.


None of this is tool-specific — the same principles apply whether your documentation lives in a wiki or plain markdown files. But a dedicated platform like zeroheight goes further, making that content available to your whole organisation and the AI tools building from it.

You can learn more by watching our webinar on Automating Documentation - Markdown Syncing.

Harriet O'Neill
Harriet O'Neill
Try zeroheight
The design systems platform that keeps teams and agents in sync
Start for free
Share this post