We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ade2e8f commit 202ce9eCopy full SHA for 202ce9e
readthedocs/doc_builder/backends/mkdocs.py
@@ -12,6 +12,7 @@
12
13
from readthedocs.core.utils.filesystem import safe_open
14
from readthedocs.doc_builder.base import BaseBuilder
15
+from readthedocs.doc_builder.exceptions import MkDocsYAMLParseError
16
from readthedocs.projects.constants import MKDOCS, MKDOCS_HTML
17
18
log = structlog.get_logger(__name__)
@@ -80,6 +81,12 @@ def get_yaml_config(self):
80
81
def show_conf(self):
82
"""Show the current ``mkdocs.yaml`` being used."""
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
90
self.run(
91
"cat",
92
os.path.relpath(self.yaml_file, self.project_path),
0 commit comments