-
Notifications
You must be signed in to change notification settings - Fork 3
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
User needs to set PYTHONPATH
to build
#2
Comments
We might raise a feature request to the maintainers of MkDocs to add the directory in which
Thus, as |
Ok, I will create a PR on that basis for the tutorial and change the template accordingly as well. |
An issue was created with a similar problem: mkdocs/mkdocs#3772 |
Just stumbled across the fact that the MkDocs documentation actually documents what I found (under New in MkDocs 1.6). The contents of the directory that a hook is in gets added to the As to the tutorial, I am not so sure. |
Jup, @pawamoy already noted this upstream in mkdocs/mkdocs#3772 (comment). |
I just stumbled across this trying to run |
Jup. Unfortunately no progress on the issue in the last months. |
The custom slugify extensions that the tutorial demonstrates requires that the
PYTHONPATH
variable is set so that.
is on it. This is currently not described and, in any case, a bit annoying because there is always the potential that people forget to do this and, even worse, have to solve the problem over and over again if they do not often write Python code.Another approach might be to merge
hooks/
intoext/
and use the fact that MkDocs puts the directory containing the hooks on thePYTHONPATH
. There is no guarantee, however, that it will continue to do this.Which solution is worse? Thoughts, @squidfunk?
This came up in the discussion of #1.
The text was updated successfully, but these errors were encountered: