Implement schema-to-VitePress integration: wire Griffe JSON API to Vue data loaders #135
+682
−84
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Griffe generates comprehensive JSON API files (
docs/api/*.json), but VitePress data loaders and Vue components weren't consuming this schema. The JSON existed but wasn't wired to the frontend.Implementation
Type System (
docs/.vitepress/types/griffe.d.ts)ExprName,ExprSubscript,ExprTuple,ExprListannotation typesData Loader (
docs/.vitepress/loaders/api.data.ts)opt.members.{category}.members.{submodule}.members.{Class}ExprSubscript→"Callable[[ndarray], float]"Component Registration
APIDoc.vuein theme for algorithm pagesUsage
Algorithm pages can now auto-generate API documentation from Python source:
Test Pages
/api-data-test- Basic data loading verification/api-test/- Full AntColony integration example/api-test/USAGE_GUIDE.md- Developer documentation with import path patternsData Coverage
All 10 optimizer categories loaded: swarm_intelligence (56), evolutionary (6), gradient_based (11), classical (9), metaheuristic (15), physics_inspired (4), probabilistic (5), social_inspired (4), constrained (5), multi_objective (3).
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.