Documentation site for the Sight Chrome extension, built with VitePress - the same static-site framework used by Vue.js, Vite, Vitest, and Pinia.
Light/dark mode is built into VitePress by default (toggle in the top-right of the nav bar) - no extra setup needed.
npm install
npm run docs:devOpens a local dev server (default http://localhost:5173) with hot reload as you edit the Markdown files in docs/.
npm run docs:buildOutputs a fully static site to docs/.vitepress/dist/ - just upload that folder anywhere (Vercel, Netlify, GitHub Pages, S3, etc.).
npm run docs:previewdocs/
├── .vitepress/
│ ├── config.js # site title, nav, sidebar, theme options
│ └── theme/
│ ├── index.js # extends the default theme
│ └── custom.css # brand color overrides (light + dark)
├── public/
│ └── favicon.svg # site icon
├── index.md # homepage (hero + feature grid)
├── changelog.md
└── guide/
├── getting-started.md
├── features.md
├── advanced-features.md
├── permissions.md
├── architecture.md
├── sound.md
└── limitations.md
VitePress has a built-in guide for this: https://vitepress.dev/guide/deploy#github-pages - in short, build the site and publish docs/.vitepress/dist to your gh-pages branch (or use their sample GitHub Action).
Every page is plain Markdown in docs/. To add a new page:
- Create
docs/guide/my-page.md - Add it to the
sidebararray indocs/.vitepress/config.js