Repository navigation
Conversation
Contributor
Author
|
Updated with current |
Contributor
Author
|
The citation-link implementation and regression test are folded into #290 so the consolidation has one implementation PR. |
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.
What: On the "what changed" preview page, inline citation links (Quarto renders e.g. "He et al. 2026" as
<a href="#ref-<key>" role="doc-biblioref">) now point at the full page's bibliography,<page>.html#ref-<key>, instead of a same-page#ref-<key>anchor.Why: The page copies only the changed sections, so the bibliography entries those anchors target aren't on it, and clicking a citation did nothing.
How: A small
link_citations()helper rewriteshref="#ref-…"in each embedded section body to the same deep link the section title already uses (the preview URL plus the page path, or the bare relative path). Removed pages are left alone since they have no full page to link to.Tested: Added
test_citation_links_point_at_the_full_page_bibliography, which covers both relative and absolute preview URLs.pytest tests/test_what_changed.pypasses (21 tests), andruff format/ruff checkare clean.AI-review: skipped — small script fix; human review requested directly
Suggested-by: @jbragg
🤖 Generated with Claude Code