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 for invalid warning when using hooks in mkdocs #120

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

BartvanWoesik
Copy link
Contributor

The following configuration in the mkdocs.yaml file kept creating this warning despite having the print-site pluggin defined as the last pluggin:
image
image

This behaviour can be explained by the fact that hooks are now added to the pluggin config in mkdocs:
image

Thus only checking if the pluggin is in the last position will not work if custom hooks are provided. Therefore we also check how many hooks are provided and keep this in mind when checking for the right pluggin position.

Resulting in:
image

@timvink
Copy link
Owner

timvink commented Sep 12, 2024

Hi Bart!

Thanks, nice catch!

@timvink timvink merged commit cabda6f into timvink:master Sep 12, 2024
11 checks passed
@timvink
Copy link
Owner

timvink commented Sep 12, 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