Skip to content

Latest commit

 

History

204 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doc Kitty 🐱📚

Common Docs — Kitty Variation: a reusable Astro + Starlight scaffold for human-first, agent-supported documentation sites.

Point it at a documentation tree that follows the convention and you get a docsite plus, out of the box:

  • 🗺️ sitemap.xml — standard search-engine discovery
  • 📰 rss.xml — subscribe to documentation changes
  • 🤖 llms.txt + a JSON agent-API — optimized browsing/discovery for LLM agents (not a RAG index; a structured, crawlable map of the docs)

The toolchain is live: pnpm build, pnpm test, and pnpm validate all run, and CI exercises build, test, frontmatter validation, and accessibility checks on every change. The design and the convention spec — captured across 30+ architecture decision records — live in docs/.

What's in here

This repository is both the toolkit and its own worked example.

Path What it is
src/ The toolkit (@commondocs-kitty/toolkit) — a library you install or copy into a docs repo. Exports the Starlight config preset, the metadata schema + README-as-index loader, the rss / llms.txt / agent-index route handlers, and builder scripts + tests.
example/ A minimal docsite that consumes the toolkit and deploys to GitHub Pages. Start here to see the convention in practice; its README has installation instructions.
docs/ Documentation about the toolkit itself, written in the convention it describes — see the spec. (Not the deliverable docsite.)
agents/ Minimal agent skills (scaffold / write / find / convert), mirroring and extending the Common Docs skills. To be recast as Spec Kitty charter/doctrine later.
.github/ CI: build + test + frontmatter validation + accessibility checks, and a Pages deploy for the example.

The convention, in one breath

Documentation is a repo-root docs/ tree following the twelve-section Common Docs convention, with two Kitty twists: README.md is the section index (instead of index.md) and carries frontmatter, and metadata is first-class — it drives navigation, the RSS feed, and the agent-API. See docs/context/convention.md for the full spec.

Quickstart

corepack enable
pnpm install
pnpm dev        # runs the example docsite
pnpm build      # builds example/ -> static site + sitemap + rss + agent-API
pnpm test       # toolkit unit tests
pnpm validate   # check docs frontmatter against the convention
pnpm clean      # clear ALL build caches before a from-scratch build (see note below)

Note

Astro's content layer persists a render cache at example/node_modules/.astro/ (and Vite pre-bundles some deps under example/node_modules/.vite/) — both survive rm -rf example/.astro example/dist, since they live under node_modules/. If a page's rendered output looks stale after editing the toolkit (src/) while a content file itself didn't change, run pnpm clean (not just a dist/.astro wipe) before rebuilding. A fresh pnpm install (CI, a new clone) never hits this — only a long-lived local checkout can.

License

MIT — see LICENSE.

About

Documentation website template, astro based, kitty-enabled. The goal is to ship a reusable set of scripts, templates, and an accompanying agent pack to allow ourselves and others to easily ship documentation websites.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages