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 attempt: MySubConfig has no '_pre_validate' #59
Conversation
Thanks @GenevieveBuckley ! Sorry for the delay with my responses. I triggered the CI. I'll have a look at both your PRs in the upcoming week hopefully |
Hmm, Expand for details:
|
|
The nox tests pass for me now, I think this is a decent fix. |
default_values = [None, 'gh-pages', 'https://mybinder.org'] | ||
if vals == []: | ||
binder_conf = {} | ||
elif all([val in default_values for val in vals]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not very satisfying. What if someone sets 'branch'
to 'https://mybinder.org'
? Also it duplicates the information in GalleryPlugin
. I would rather find a better way to do this with mkdocs: If you can find your way through mkdocs config class to create a "fixed" MySubConfig
it would probably be better.
I'll try to have a look one of these days ; but as you could notice I have a hard time finding a few minutes to code :( sorry @GenevieveBuckley
I think that I found a solution that is more in the spirit of the new Therefore we can probably close this PR now. Thanks a lot @GenevieveBuckley for pointing me in the right direction ! |
Wonderful! Thank you so much for finding a better fix for this 😄 |
(maybe) closes #57
The way MySubConfig is currently implemented is incompatible with mkdocs versions above 1.2.4. I think getting rid of it entirely removes the issue?
mkdocs build
directly with my own virtual environment. There's probably something wrong with my environment, so it'd be very helpful if you could try this too on your own machine.It's also not entirely clear to me why the
MySubConfig
class exists. It looks like there are two reasons:plugin.py
).