File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -540,12 +540,6 @@ def get_conf_py_path(self):
540
540
conf_py_path = os .path .relpath (conf_py_path , checkout_prefix )
541
541
return conf_py_path
542
542
543
- def get_mkdocs_yml_path (self ):
544
- mkdocs_yml_path = self .project .yaml_dir (self .slug )
545
- checkout_prefix = self .project .checkout_path (self .slug )
546
- mkdocs_yml_path = os .path .relpath (mkdocs_yml_path , checkout_prefix )
547
- return mkdocs_yml_path
548
-
549
543
def get_storage_paths (self , version_slug = None ):
550
544
"""
551
545
Return a list of all build artifact storage paths for this version.
Original file line number Diff line number Diff line change @@ -984,12 +984,7 @@ 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
-
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
-
987
+
993
988
@property
994
989
def has_good_build (self ):
995
990
# 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_mkdocs_yml_path " )
141
+ @patch ("readthedocs.builds.models.Version.get_conf_py_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