Workspace Source Explorer in jp-vite
Todo2026-10-31Jean Mertz
Tracking ticket for RFD 128.
Implementation plan
- Validate workspace links and line ranges: Update
rewriteRepositoryLinksinjp-vite/config.mjsto classify links by target and check that source links and their#L<start>-L<end>ranges exist on disk, in build and dev rendering. Also extends thedocs.ymltrigger so pull requests that change, rename, or delete a linked workspace file run the docs build. Mergeable independently. - Add SourceExplorer and dev-server /__source endpoint: Adds
source/index.mdtojp vite sync, implements<SourceExplorer />(file tree, Shiki highlighting, line-range highlighting and selection,Referenced bybadges), and registers/__sourceinmiddleware.mjs. Depends on Phase 1. - Emit source files in the static build: Writes
source-index.jsonandsource-files/inwithJpVite'sbuildEndhook whensource.publishis on, and points eligible source links at/source/?path=<path>#L...in static builds. Setssource.publish = truein JP's.jp/config.toml. Depends on Phase 2.