-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 mkdocs relpath #5749
Fix mkdocs relpath #5749
Conversation
After readthedocs#5377 The code calling the config module is in charge of getting the full path.
I encountered this error here. I was able to reproduce it on the same repo locally. This PR did fix the issue. |
@@ -248,7 +248,7 @@ def build(self): | |||
'--site-dir', | |||
self.build_dir, | |||
'--config-file', | |||
self.yaml_file, | |||
os.path.relpath(self.yaml_file, self.root_path), |
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.
One test was expecting this call to be relative to the checkout path, but with the new change this was a full path.
Relative path is shorter to show in the output and we are already setting the cwd to the checkout path, so we are fine.
I also checked all the usages of |
@stsewd do you think this should be hotfixed today? |
@ericholscher yeah, it affects people using mkdocs with a rtd configuration file. Which I think are most of our users now |
After #5377
The code calling the config module is in charge of getting the full
path.