Skip to content

Commit 806ad3b

Browse files
committed
Fix mkdocs relpath
After readthedocs#5377 The code calling the config module is in charge of getting the full path.
1 parent bbee0c7 commit 806ad3b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readthedocs/doc_builder/backends/mkdocs.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def __init__(self, *args, **kwargs):
6969

7070
def get_yaml_config(self):
7171
"""Find the ``mkdocs.yml`` file in the project root."""
72-
mkdoc_path = self.config.mkdocs.configuration
73-
if not mkdoc_path:
74-
mkdoc_path = os.path.join(
75-
self.project.checkout_path(self.version.slug),
76-
'mkdocs.yml',
77-
)
78-
return mkdoc_path
72+
mkdocs_path = self.config.mkdocs.configuration
73+
if not mkdocs_path:
74+
mkdocs_path = 'mkdocs.yml'
75+
return os.path.join(
76+
self.project.checkout_path(self.version.slug),
77+
mkdocs_path,
78+
)
7979

8080
def load_yaml_config(self):
8181
"""

0 commit comments

Comments
 (0)