Skip to content

refactor: configurable source for highlighting - #881

Merged
robsimmons merged 3 commits into
mainfrom
configurable-fetch
Jun 18, 2026
Merged

refactor: configurable source for highlighting#881
robsimmons merged 3 commits into
mainfrom
configurable-fetch

Conversation

@robsimmons

@robsimmons robsimmons commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

This PR allows doc highlighting information to be be provided from a different source, instead of just a hardcoded -verso-docs.json resource file. It also incidentally turns the get-highlighting-json operation from a chained promise to an await-ed one.

The reason for this change is to eventually allow the lean4web app to generate a single-file page that only refers to external static assets — the main per-document assets for a single-page HTML development are index.html, the highlighting information file, and search data (which can be omitted from a single-page HTML development).

(Hint: the diff is quite small if you preview with whitespace changes off.)

@david-christiansen

Copy link
Copy Markdown
Collaborator

This seems fine - thanks for the whitespace hint!

It would be nice if the PR description included the motivation for the change, because that will be the commit message in the future, and this could be mysterious without a bit of context. Otherwise, LGTM

@robsimmons
robsimmons added this pull request to the merge queue Jun 18, 2026
Merged via the queue into main with commit d6e6aee Jun 18, 2026
12 checks passed
@robsimmons
robsimmons deleted the configurable-fetch branch June 18, 2026 21:35
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.

2 participants