ADR-0029: One GitHub Pages site — the deck at the root, every document in docs/ rendered by VitePress under /docs/
Context and Problem Statement
GitHub Pages serves one site per repository. It used to be planned for the docs (a VitePress branch that was never merged) and now serves the webinar deck (deck/index.html, .github/workflows/deck.yml). The owner wants the deck to stay the main page and the documentation to be readable as a site too, at its own URL, with each one linking to the other.
Decision
- One workflow,
.github/workflows/pages.yml, builds one Pages artifact:deck/index.htmlat the site root (/jarvis-agent/) and the VitePress build ofdocs/under/jarvis-agent/docs/. It replacesdeck.yml. Pull requests build the site without deploying it. - VitePress 1.x with
vitepress-plugin-mermaid(andmermaid) are root dev dependencies;pnpm docs:dev,docs:build,docs:previewrun it. The config lives indocs/.vitepress/config.ts. - Every Markdown file in
docs/is a page. The sidebar is generated from the folders, so a new document appears without editing the config. Sources stay plain Markdown written for github.com:README.mdis a folder index, links that leavedocs/are rewritten to the file on GitHub, raw HTML and{{render as text. - The deck's cover links to
docs/; the docs' nav, sidebar and home page link back to the deck.
Consequences
- Good: the docs are browsable and searchable without leaving the deck's URL; nothing in
docs/changes to fit the site. - Bad: about 400 dev packages more in the root install, used only by the docs build.
- Neutral: the deck redeploys when docs change and vice versa, since both are one artifact.
Confirmation
.github/workflows/pages.ymlis the only workflow that uploads a Pages artifact.pnpm docs:buildpasses on main;docs/.vitepress/config.tssetsbase: '/jarvis-agent/docs/'.- No Markdown under
docs/uses Vue components or VitePress-only syntax.