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 1212
1313from readthedocs .core .utils .filesystem import safe_open
1414from readthedocs .doc_builder .base import BaseBuilder
15+ from readthedocs .doc_builder .exceptions import MkDocsYAMLParseError
1516from readthedocs .projects .constants import MKDOCS , MKDOCS_HTML
1617
1718log = structlog .get_logger (__name__ )
@@ -80,6 +81,12 @@ def get_yaml_config(self):
8081 def show_conf (self ):
8182 """Show the current ``mkdocs.yaml`` being used."""
8283 # 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+
8390 self .run (
8491 "cat" ,
8592 os .path .relpath (self .yaml_file , self .project_path ),
You can’t perform that action at this time.
0 commit comments