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

Fork codeinclude plugin to enable fail-on-not-found functionality #832

Merged
merged 1 commit into from Jul 1, 2022

Conversation

geel9
Copy link
Member

@geel9 geel9 commented Jul 1, 2022

The codeinclude plugin we use has undesirable behavior: when it can't find the injection target, it instead injects the entire file as opposed to throwing an error

Additionally, it uses the better-setuptools-git-version module, which breaks completely on Python 3.10 -- our fork strips this out as well.

I have forked the plugin to https://github.com/trinsic-id/mkdocs-codeinclude-plugin, and resolved the two above issues in said fork.

This PR changes docs/requirements.txt to use the forked version.

Note: This PR will intentionally enter our docs into a broken state, wherein they fail to build. This is because we have one or more failed code injection sites. This is desirable; I will create a PR to fix these issues as soon as this one is merged.

@geel9 geel9 added the documentation Improvements or additions to documentation label Jul 1, 2022
@geel9 geel9 requested a review from michaeldboyd as a code owner July 1, 2022 15:31
@geel9 geel9 merged commit ec1c54b into main Jul 1, 2022
@geel9 geel9 deleted the JC/fork-codeinclude branch July 1, 2022 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants