smplkit docs
Developer documentation site for docs.smplkit.com, built as a static site with VitePress and deployable via AWS Amplify Hosting.
Why VitePress
VitePress is used for long-term maintainability and developer experience:
- Static-first architecture with fast local development
- Built-in local search support
- Minimal JavaScript payload for fast documentation pages
- First-class markdown authoring and syntax highlighting
Project structure
.vitepress/config.ts: site config, top nav, sidebar, search.vitepress/theme/: minimal brand styling overridesindex.md: docs homepage (redirects to Getting Started)getting-started/: install, init, configurationconfig/: Smpl Config developer guide (management + runtime)flags/: Smpl Flags developer guide (management + runtime)logging/: Smpl Logging developer guide (management + runtime)api-reference/: REST API reference (renders OpenAPI specs per service)infrastructure.md: composite SLA and AWS infrastructure overviewpublic/: static assets such as logosamplify.yml: AWS Amplify build and deploy settings
Run locally
bash
npm install
npm run docs:devOpen the local URL shown by VitePress (typically http://localhost:5173).
Build docs
bash
npm run docs:buildVitePress outputs static files to .vitepress/dist.
AWS Amplify deployment
Amplify is configured to:
- Install dependencies
- Build the static docs site
- Publish
.vitepress/distas the deploy artifact
Connect the GitHub repository in Amplify and set the production branch to main.
CI and automated releases
This repository includes GitHub Actions workflows that mirror the website repo setup:
validate.yml: runs on every push and pull request- Conventional Commit linting
- Static docs build (
npm run build)
release.yml: runs on pushes tomain- Installs dependencies and builds docs
- Runs
semantic-releaseto calculate the next semantic version from Conventional Commits - Publishes GitHub release notes and creates version tags
Add new documentation pages
- Create a new markdown file in the relevant section directory.
- Add the page to
.vitepress/config.tssidebar under the correct section. - Run
npm run docs:devand verify navigation and rendering. - Commit changes to
mainto trigger Amplify deployment.
Performance notes
- Static generation only; no backend services required
- Optimized for CDN delivery through Amplify Hosting
- Local search avoids external search dependencies
- Minimal theme customization to keep assets lightweight

