Phase: Jinja2 Removal (pal-e-docs backend)

phase-pal-e-docs-4b-jinja2-removal Phase

phase
Goal: Remove the dead Jinja2 frontend from the pal-e-docs backend now that SvelteKit serves all routes.
Owner: Dev agent
Repo: forgejo_admin/pal-e-docs
Depends on: phase-pal-e-docs-note-renderer

Problem

SvelteKit (pal-e-app) now renders all note types from the blocks API. The Jinja2 frontend (/browse/* routes) is dead code still deployed in the backend. ~320 lines of routing + ~460 lines of templates + dependencies.

Fix

  • Delete src/pal_e_docs/routes/frontend.py
  • Delete src/pal_e_docs/templates/ directory (base.html, note.html, landing.html, projects.html, project_notes.html, tags.html, tag_notes.html, repos.html, login.html)
  • Remove Jinja2Templates import and setup
  • Remove frontend.router from the FastAPI app includes
  • Remove session auth middleware if only used by frontend (check if API uses it too)
  • Remove autolink.py, sanitize.py, wrap_tables.py if only consumed by frontend routes (check if blocks/sync.py or API routes use them)
  • Remove Jinja2 and itsdangerous (sessions) from dependencies if no longer needed
  • Run tests: pytest tests/ -v
  • phase-pal-e-docs-note-renderer — parent phase
  • plan-pal-e-docs — parent plan