Repository navigation
Closed
Labels
documentationImprovements or additions to documentationenhancementNew feature or requestv0.6Adoption features
Description
Migration Plan: SvelteKit → VitePress for Documentation
Current State
- Landing page: SvelteKit (
website/src/routes/+page.svelte) at codecora.dev - Docs: SvelteKit pages under
website/src/routes/docs/(10 pages as.sveltefiles) - Deployment: Cloudflare Pages via
deploy-website.yml - Problem: Docs as Svelte components are hard to maintain, no search, no versioning, no sidebar navigation out-of-the-box
Proposed Architecture
codecora.dev/ → SvelteKit SPA (landing page only — marketing)
docs.codecora.dev/ → VitePress (documentation — structured, searchable)
Or single domain:
codecora.dev/ → SvelteKit SPA (landing page)
codecora.dev/docs/ → VitePress (sub-path or subdomain)
Reference: gofin-full Pattern
Follow ajianaz/gofin-full structure:
docs/
├── .vitepress/
│ └── config.mts # nav, sidebar, search, theme
├── index.md # docs landing
├── getting-started.md
├── installation.md
├── configuration.md
├── providers.md
├── cli-reference.md
├── usage.md
├── examples.md
├── changelog.md
├── security.md
└── public/
└── logo.svg
Migration Steps
- Create
docs/directory at repo root with VitePress config - Convert Svelte → Markdown — extract content from 10
.sveltefiles to.md - Configure VitePress — sidebar, nav, search (local), dark theme to match landing page
- Deploy — Cloudflare Pages with separate build command, or subdomain
- Remove docs from
website/— landing page stays SvelteKit, docs go VitePress - Update
deploy-website.yml— build both or separate workflow for docs
Benefits
| Feature | SvelteKit Docs | VitePress Docs |
|---|---|---|
| Search | Custom implementation | Built-in local search |
| Sidebar | Manual component | Auto from config |
| Versioning | Manual | Multi-version support |
| i18n | Manual | Built-in |
| Markdown extensions | Limited | Rich (containers, code groups, etc.) |
| Maintenance | Svelte components | Plain markdown files |
| Contribution barrier | Need to know Svelte | Just write markdown |
Open Questions
- Subdomain (
docs.codecora.dev) vs sub-path (codecora.dev/docs)? - Keep landing page as SvelteKit or also migrate to VitePress theme?
- Deploy both from same workflow or separate?
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationenhancementNew feature or requestv0.6Adoption features
Activity
feat: migrate docs from SvelteKit to VitePress (#197)
ajianaz commentedon Jun 8, 2026
✅ Done. VitePress already in place (docs/.vitepress/), all 10 docs pages migrated, deployed to codecora.dev via Cloudflare Pages.