File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -972,7 +972,6 @@ def conf_file(self, version=LATEST):
972
972
)
973
973
974
974
raise ProjectConfigurationError (ProjectConfigurationError .NOT_FOUND )
975
-
976
975
977
976
def yaml_file (self , version = LATEST ):
978
977
"""Find a mkdocs ``mkdocs.yml`` file in the project checkout."""
@@ -981,8 +980,7 @@ def yaml_file(self, version=LATEST):
981
980
files = self .full_find ("mkdocs.yml" , version )
982
981
if len (files ) == 1 :
983
982
return files [0 ]
984
- ## TODO Handle for multiple Files
985
-
983
+ # TODO: Handle for multiple Files
986
984
raise MkDocsYAMLParseError (MkDocsYAMLParseError .NOT_FOUND )
987
985
988
986
def conf_dir (self , version = LATEST ):
@@ -991,11 +989,9 @@ def conf_dir(self, version=LATEST):
991
989
return os .path .dirname (conf_file )
992
990
993
991
def yaml_dir (self , version = LATEST ):
994
- conf_file = self .conf_file (version )
995
- if conf_file :
996
- return os .path .dirname (conf_file )
997
-
998
-
992
+ yaml_file = self .yaml_file (version )
993
+ if yaml_file :
994
+ return os .path .dirname (yaml_file )
999
995
1000
996
@property
1001
997
def has_good_build (self ):
Original file line number Diff line number Diff line change @@ -150,11 +150,11 @@ def test_project_without_mkdocs_yaml(
150
150
_ ,
151
151
docs_dir ,
152
152
):
153
- """
153
+ """
154
154
Test for a project without ``mkdocs.yaml`` file.
155
155
156
156
When this happen, the ``get_mkdocs_yaml_path`` raises a
157
- ``ProjectConfigurationError `` which is captured by our own code.
157
+ ``MkDocsYAMLParseError `` which is captured by our own code.
158
158
"""
159
159
tmp_dir = tempfile .mkdtemp ()
160
160
checkout_path .return_value = tmp_dir
You can’t perform that action at this time.
0 commit comments