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

Fix exclude option ignoring exclusions #40

Merged
merged 2 commits into from
Jan 7, 2024
Merged

Conversation

PTKay
Copy link
Contributor

@PTKay PTKay commented Nov 3, 2023

It seems like the exclude option was not working properly and ignoring some exclusions that we've set in our project (https://github.com/HedgeDocs/HedgeDocs.github.io). However, moving this check to the on_page_context function seemed to fix our issue.

I assume the actual problem is the usage of path.lstrip, but doing the check in on_page_context allows us to skip over excluded files earlier as well, so I think it makes sense to do this change.

@ojacques
Copy link
Owner

ojacques commented Jan 7, 2024

Thanks @PTKay !

@ojacques ojacques merged commit 494e37b into ojacques:master Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants