File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
readthedocs/doc_builder/backends Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 12
12
13
13
from readthedocs .core .utils .filesystem import safe_open
14
14
from readthedocs .doc_builder .base import BaseBuilder
15
+ from readthedocs .doc_builder .exceptions import MkDocsYAMLParseError
15
16
from readthedocs .projects .constants import MKDOCS , MKDOCS_HTML
16
17
17
18
log = structlog .get_logger (__name__ )
@@ -80,6 +81,12 @@ def get_yaml_config(self):
80
81
def show_conf (self ):
81
82
"""Show the current ``mkdocs.yaml`` being used."""
82
83
# Write the mkdocs.yml to the build logs
84
+ if not os .path .exists (self .yaml_file ):
85
+ raise MkDocsYAMLParseError (
86
+ message_id = MkDocsYAMLParseError .NOT_FOUND ,
87
+
88
+ )
89
+
83
90
self .run (
84
91
"cat" ,
85
92
os .path .relpath (self .yaml_file , self .project_path ),
You can’t perform that action at this time.
0 commit comments