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

Adds htmlproofer plugin for mkdocs #70

Merged
merged 1 commit into from
May 28, 2024
Merged

Adds htmlproofer plugin for mkdocs #70

merged 1 commit into from
May 28, 2024

Conversation

ikirker
Copy link
Collaborator

@ikirker ikirker commented May 20, 2024

This is intended to catch bad anchors and broken external links.

It does also significantly increase build time, though, because of all the checking.

Because of that, two environment variables have been included in the mkdocs.yml file:

DOCS_ENABLE_HTMLPROOFER=True
DOCS_FAIL_ON_BAD_LINK=False

This lets you easily change whether these are enabled, for testing and local builds.

This idea taken from: https://xahteiwi.eu/blog/2023/02/23/mkdocs/

This is intended to catch bad anchors and broken external links.

It does also significantly increase build time, though, because of all
the checking.

Because of that, two environment variables have been included in the
`mkdocs.yml` file:

```
DOCS_ENABLE_HTMLPROOFER=True
DOCS_FAIL_ON_BAD_LINK=False
```

This lets you easily change whether these are enabled, for testing and
local builds.
@ikirker
Copy link
Collaborator Author

ikirker commented May 20, 2024

Made this a branch+PR so people can give it a try locally before we try it and generate a bunch of errors in the builds for the website.

@ikirker ikirker merged commit bc2e3e1 into master May 28, 2024
@ikirker ikirker deleted the feat/htmlproofer branch May 28, 2024 12:32
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.

1 participant