Vyasa Extension Refactor Audit and Execution Plan

File-Level Audit And Target OwnershipURL copied

vyasa/layout_page.pyURL copied

Current:

  • Owns full page shell, HTMX layout fragments, navbar/sidebar/footer, annotation data attributes, slide asset inclusion, theme font links.

Target:

  • Move to default_layout.
  • Annotation data attrs are contributed by Annotations extension.
  • Slide assets are contributed by Slides extension.
  • Theme font links are contributed by Themes extension.

Action:

  • Create vyasa/extensions_builtin/default_layout/render.py.
  • Move render_layout, _render_htmx_layout, _render_full_layout, _theme_font_links, _section_class.
  • Replace _annotation_attrs with layout hooks: app.layout.main_attrs(provider).
  • Replace slide asset branch with route/layout mode bundle request.