Skip to content

feat: migrate docs from SvelteKit to VitePress #196

Closed

Description

@ajianaz

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 .svelte files)
  • 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

  1. Create docs/ directory at repo root with VitePress config
  2. Convert Svelte → Markdown — extract content from 10 .svelte files to .md
  3. Configure VitePress — sidebar, nav, search (local), dark theme to match landing page
  4. Deploy — Cloudflare Pages with separate build command, or subdomain
  5. Remove docs from website/ — landing page stays SvelteKit, docs go VitePress
  6. 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?

Activity

  1. added
    enhancement
    on Jun 7, 2026
  2. added
    v0.6
    documentation
    on Jun 7, 2026
  3. ajianaz commented on Jun 8, 2026

    @ajianaz
    CollaboratorAuthor

    ✅ Done. VitePress already in place (docs/.vitepress/), all 10 docs pages migrated, deployed to codecora.dev via Cloudflare Pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancementv0.6

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions