Repository navigation
Doc defaults leak - #879
Open
simonwalbrun-lab wants to merge 3 commits into
Open
simonwalbrun-lab wants to merge 3 commits into
simonwalbrun-lab wants to merge 3 commits into
Conversation
simonwalbrun-lab
force-pushed
the
doc_defaults_leak
branch
from
December 1, 2026 22:37
df4f0fb to
bfac528
Compare
This branch has not been deployed
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.
closes #866
Summary
The document metadata used for publishing (name, title, ref, by, major/minor revision, copyright) is configured under attributes: defaults: doc: in .doorstop.yml. doorstop add applies everything under attributes.defaults to the new item, so every new item also gets a copy of the document's doc: block
-->
The document revision (major/minor) is copied into each item at creation time. When the revision is bumped later, older items keep the old value, so items end up with stale, inconsistent revision data.
I moved the doc block one level up.
attributes: doc:(next todefaults,publish,reviewed), read byget_document_attributes()for LaTeX, HTML and Markdown.attributes: defaults: doc:keeps working. It is moved out of the item defaults on load (so it no longer leaks) and logs a deprecation warning.