Repository navigation
Pin default Redoc version - #2738
Merged
Merged
Conversation
…g IDs The katex-version and markmap-version IDs match what Hugo generates (AGENTS.md: explicit IDs only when they differ); rendered IDs verified unchanged.
- Partials: the canary-test comment claimed a reassignment check the lint-posture test no longer has; reworded to what it pins (bare read, no default). - katex.html: prune section banners and the dead $data dict. - theme/hugo.yaml: fix comment typo (fo -> for). Dashes and one-home passes: clean.
The redoc shortcode's script now loads a pinned version from theme/hugo.yaml (params.redoc.version) instead of the CDN's latest. Same pattern as the sibling pins (docsy#2703, docsy#2705, docsy#2706): fail-closed errorf when the param is unset, suppressible warnidf on floating versions, canary-test row, Renovate customManager entry, docs.
Redoc 3 moves the CDN script from bundles/redoc.standalone.js to bundle/redoc.js, which the shortcode URL hardcodes: cap Renovate at <3 and note the manual migration in the maintainer notes. Changelog maintainers entry now names all four pins.
…hortcode
- Canary: the accepted URL-interpolation form is per-row data (printf
rows accept %s, literal-src rows require {{ $version }}), closing the
literal-%s false-clean on redoc and markmap.
- Maintainer notes: the pins' live readers are the script partials plus
the redoc shortcode; say so instead of 'the partials'.
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.
redocversion instead of loadinglatest#2737.theme/hugo.yaml(params.redoc.version), completing the script-dependency pin set (Mermaid: pin default version, droplatest#2704, Pin default KaTeX and markmap-autoloader versions #2736): fail-closederrorfwhen the param is unset, suppressiblewarnidfon floating versions, canary-test row, Renovate customManager entry.