Skip to content

feat: shim code for lean4web#884

Draft
robsimmons wants to merge 6 commits into
mainfrom
versobox-shim
Draft

feat: shim code for lean4web#884
robsimmons wants to merge 6 commits into
mainfrom
versobox-shim

Conversation

@robsimmons

@robsimmons robsimmons commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

This adds three components that enable live preview of VersoManual documents in lean4web, but is not intended to be merged in its current form.

  1. Adds finalizers that run when a full-screen document evaluates — this would be entirely suitable for adding to main verso (Verso.Doc.Elab.Elab.Finalize, Verso.Doc.Concrete)
  2. An RPC Verso.getLiveDocument that allows the LSP to be queried to return a single-page examples. As an interface, this is entirely reasonable to upstream to Verso, though the standalonePage implementation (VersoManual.Html) probably would want some iteration.
  3. Implementation of Verso.getLiveDocument. This is not at all what we want in the real implementation to do, because the finalizer eagerly produces the standalone HTML. In a final implementation we'd want to wait for HTML to be generated by the RPC request.

@robsimmons robsimmons changed the title shim code for lean4web RPC shim code for lean4web Jun 19, 2026
@robsimmons robsimmons changed the title shim code for lean4web feat: shim code for lean4web Jun 19, 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