Fix mkdocs relpath
After
The code calling the config module is in charge of getting the full
path.
@@ -69,13 +69,13 @@ class BaseMkdocs(BaseBuilder):
def get_yaml_config(self):
"""Find the ``mkdocs.yml`` file in the project root."""
- mkdoc_path = self.config.mkdocs.configuration
- if not mkdoc_path:
- mkdoc_path = os.path.join(
+ mkdocs_path = self.config.mkdocs.configuration
+ if not mkdocs_path:
+ mkdocs_path = 'mkdocs.yml'
+ return os.path.join(
self.project.checkout_path(self.version.slug),
- 'mkdocs.yml',
+ mkdocs_path,
)
- return mkdoc_path
def load_yaml_config(self):
"""
