Vyasa Extension Refactor Audit and Execution Plan

File-Level Audit And Target OwnershipURL copied

vyasa/build.pyURL copied

Current:

  • Static builder hard-codes shell, CSS, JS, Mermaid, tabs, KaTeX, Highlight.js, sidenotes, and static layout.
  • Calls from_md directly.
  • Copies vyasa/static only.

Target:

  • Split into core static-build runner plus extension-aware page rendering.
  • Layout/theme/render/document behavior comes from runtime.

Action:

  • Create vyasa/extensions_builtin/static_build only if static build should be optional. Otherwise keep a core build.py runner and delegate all behavior to extensions.
  • Remove hard-coded Mermaid/Tabs CSS/JS from generate_static_html.
  • During each page render, collect requested asset bundles.
  • Copy extension static files into output.