Skip to content

docs: migrate from VitePress to Scalar Docs - #8

Open
yanboishere wants to merge 4 commits into
felinics:mainfrom
yanboishere:docs/migrate-to-scalar
Open

docs: migrate from VitePress to Scalar Docs#8
yanboishere wants to merge 4 commits into
felinics:mainfrom
yanboishere:docs/migrate-to-scalar

Conversation

@yanboishere

@yanboishere yanboishere commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Migrate the docs site from VitePress to Scalar Docs, based on the latest main (already includes the Quick Start guide, source-sync cleanup, and unified 应用市场 terminology from #7). Also restructures the navigation into a single References tree and adds per-page "Edit on GitHub" links.

What changed

1. Framework migration (VitePress → Scalar Docs)

  • Removed .vitepress/, Vue theme components, and all 88 VitePress redirect stubs.
  • 102 pages (51 English + 51 Chinese) under docs/en/ and docs/zh/.
  • scalar.config.json rewritten to the multi-version schema (versions: default | zh) — this is what Scalar CLI's preview converter actually consumes, fixing the empty-preview bug.
  • Added docs/footer.html; removed Vue deps (vitepress, vue).
  • CI (validate-docs.yml / deploy) runs scalar project check-config + link check on Node 24.

2. Navigation restructure → single "References" tree

  • Merged the former Guides / Integrations / Self-hosted top-level groups into one References section with three subgroups:
    • Getting Started — Quick Start, Preferences, Bot, Sessions, Files, Slash Commands, Deployment, Channels (12 adapters)
    • Advanced — ACP, Access, Workspace, Computers, Browser/Computer Use, Skills, Supermarket, Connectors, Hooks, MCP, Memory, Compaction, Schedule, Email, Providers (LLM / Web Search / Video / Memory / TTS)
    • Use Cases — placeholder
  • 62 redirects generated so all old URLs (/guides/..., /integrations/..., /self-hosted/...) keep working.

3. UX polish

  • Language/version selector moved to the far right of the header (EN + ZH).
  • Per-page "Edit on GitHub" link appended at the bottom of every page (English shows "Edit on GitHub", Chinese shows "在 GitHub 上编辑"), mapping each URL to its source file via an injected script.
  • Removed the "planned use cases" filler from the Use Cases placeholder page.

4. Tooling

  • scripts/build-config.py: single source of truth for the sidebar; emits the versions schema, the 62 redirects, and the edit-link URL→file map.
  • scripts/check-links.py: now versions-aware (previously flagged all 102 pages as orphan).

Verification

  • scalar project check-config → SUCCESS
  • python3 scripts/check-links.py102 pages, 102 listed, 0 problems
  • config regenerated from build-config.py is byte-identical to the committed config (no drift)

Notes

Supersedes #6: that PR is based on an older main (before #7 merged), so it is missing the Quick Start guide, the source-sync cleanup (removed heartbeat/plugins/sqlite/kata/qdrant pages), and the 应用市场 terminology. This branch carries all of that and fixes the empty-preview issue.

@yanboishere
yanboishere force-pushed the docs/migrate-to-scalar branch from 5476ed5 to 7d4de9c Compare September 9, 2026 07:41
Align the language/version selector to the right side of the header,
next to the GitHub link, using Scalar's native version-selector header
entry with align: end.

Applied to both the English (default) and Chinese (zh) versions, and
fixed in scripts/build-config.py so the change survives config
regeneration.
- Merge guides/integrations/self-hosted into a single References
  section with Getting Started / Advanced / Use Cases subgroups
- Trim use-cases page to a minimal placeholder (EN+ZH)
- Add per-page 'Edit on GitHub' link via injected head script
- Regenerate Scalar config (62 redirects, edit-link map)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant