Skip to content

Add searchable docs UI, static serving, and browser provider resolver#1

Merged
BleedingXiko merged 3 commits into
mainfrom
dev
Apr 25, 2026
Merged

Add searchable docs UI, static serving, and browser provider resolver#1
BleedingXiko merged 3 commits into
mainfrom
dev

Conversation

@BleedingXiko
Copy link
Copy Markdown
Owner

v0.1.12

Introduce a searchable docs UI and index generation. Adds a search index generator (app/search_index.py) that writes static/search-index.json at boot, registers the static dir in app.__init__.py and ignores the generated file in .gitignore. Implements a /search mount with server/controller, web component and client-side module (docs/app/mounts/search/*) that loads the index, scores results, and renders a search page. Also updates shell.html to include a header search form and nav link, and adds CSS for the header search and search results (app/shell.css).
Adds sprag dev static as a pure static preview server backed by the existing static build pipeline. Static builds now mark surfaces as static and disable websocket/event-source transports so GitHub Pages-style output does not probe /__sprag__/events or /__sprag__/socket on load.

Also improves dev rebuilds by watching app assets beyond Python files and purging cached project modules before rebuilds, and fixes JS pack minification around adjacent source maps.

Docs updated in README.md and CLI reference. Tests cover static surface payloads and runtime transport guards.
Adds Module.provider(name) as the browser-side resolver for page.providers and mount.providers.

The helper compiles to Ragot registry lookup, matching the existing framework model where App.providers are resolved server-side with Controller.service(...). Adds docs and a labs provider demo showing a page-scoped provider Module consumed from a hydrated Module.

Also extends asset/codegen coverage for the emitted helper.
@BleedingXiko BleedingXiko merged commit 5723be2 into main Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant