Add searchable docs UI, static serving, and browser provider resolver#1
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
v0.1.12