File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -984,7 +984,12 @@ def conf_dir(self, version=LATEST):
984
984
conf_file = self .conf_file (version )
985
985
if conf_file :
986
986
return os .path .dirname (conf_file )
987
-
987
+
988
+ def yaml_dir (self , version = LATEST ):
989
+ yaml_file = self .yaml_file (version )
990
+ if yaml_file :
991
+ return os .path .dirname (yaml_file )
992
+
988
993
@property
989
994
def has_good_build (self ):
990
995
# Check if there is `_good_build` annotation in the Queryset.
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def setUp(self):
138
138
139
139
@patch ("readthedocs.doc_builder.backends.mkdocs.BaseMkdocs.docs_dir" )
140
140
@patch ("readthedocs.doc_builder.backends.mkdocs.BaseMkdocs.run" )
141
- @patch ("readthedocs.builds.models.Version.get_conf_py_path " )
141
+ @patch ("readthedocs.builds.models.Version.get_mkdocs_yml_path " )
142
142
@patch ("readthedocs.projects.models.Project.checkout_path" )
143
143
@patch ("readthedocs.doc_builder.python_environments.load_yaml_config" )
144
144
def test_project_without_mkdocs_yaml (
You can’t perform that action at this time.
0 commit comments