Skip to content

Refactor bibliography generation - #8283

Merged
laurmaedje merged 3 commits into
mainfrom
refactor-bib
May 22, 2026
Merged

laurmaedje merged 3 commits into
mainfrom
refactor-bib

Conversation

@laurmaedje

Copy link
Copy Markdown
Member

This refactors the bibliography handling subsystem in preparation of tidying up and integrating #7277. The previous code was a bit of a mess with regards to control and data flow.

@isuffix isuffix added the bibliography Anything about citations and bibliographies. label May 17, 2026
Previously, a failure to render a single citation or bibliography would propagate to all elements because it propagated to `StrResult<Works>`. We can instead store the error locally for the citation or bibliography. Note that this kind of error almost never happens. Currently, the only way to trigger it is to have an empty URL in a bibliography. So this is more of a cleanup than an impactful change.
Refactors the bibliography generation code to have much less implicit state, less temporary data structure and overall clearer control and data flow.
@laurmaedje
laurmaedje merged commit 69ca278 into main May 22, 2026
18 checks passed
@laurmaedje
laurmaedje deleted the refactor-bib branch May 22, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bibliography Anything about citations and bibliographies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants