Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove documents excluded from output earlier #677

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jenshalm
Copy link
Contributor

@jenshalm jenshalm commented Jan 3, 2025

Since @:include and @:embed now execute earlier as well as their related substitution references (e.g. ${_.embeddedBody}), those references can now lead to errors. They are only valid in the parent document the markup snippet gets included in, they are not valid if the included document gets validated on its own.

Previously that never happened, as validation ran late, where documents configured as excluded from output had already been removed. Now it runs early where they were still present in the tree. This PR adds an extra step where the filtering happens earlier

@jenshalm jenshalm added the bug label Jan 3, 2025
@jenshalm jenshalm added this to the 1.3.2 milestone Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant