Commit f495190
Raise clear error when
Follow up from user contributed PR at #12378
This implementation follows the same idea that we have implemented in
Sphinx:
- if `mkdocs.configuration` YAML key is missing, we show: `MkDocs
configuration file is missing`
- if the file declared in `mkdocs.configuration` doesn't exist, we show:
`Expected file not found` (with the path)
<img width="1188" height="166" alt="Screenshot_2025-10-28_11-57-09"
src="https://github.com/user-attachments/assets/e6409f0f-d23a-413f-90ae-80e672994a98"
/>
<img width="1195" height="179" alt="Screenshot_2025-10-28_11-57-03"
src="https://github.com/user-attachments/assets/41244494-e276-4a39-ad9c-7753207a7622"
/>
Closes #11937
Closes #12378
---------
Co-authored-by: Abhijeet More <moreabhijeet998@gmail.com>
Co-authored-by: RabbitAlbatross <143070183+RabbitAlbatross@users.noreply.github.com>
Co-authored-by: Santos Gallegos <stsewd@proton.me>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: humitos <244656+humitos@users.noreply.github.com>mkdocs.yml config file is missing (#12521)1 parent e61d7a6 commit f495190
File tree
4 files changed
+95
-38
lines changed- readthedocs
- doc_builder/backends
- projects
- tests
- rtd_tests/tests
4 files changed
+95
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | | - | |
16 | | - | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 45 | + | |
77 | 46 | | |
78 | | - | |
| 47 | + | |
79 | 48 | | |
80 | 49 | | |
81 | 50 | | |
82 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
83 | 60 | | |
84 | 61 | | |
85 | 62 | | |
86 | | - | |
| 63 | + | |
87 | 64 | | |
88 | 65 | | |
89 | 66 | | |
| |||
97 | 74 | | |
98 | 75 | | |
99 | 76 | | |
100 | | - | |
| 77 | + | |
101 | 78 | | |
| 79 | + | |
102 | 80 | | |
103 | 81 | | |
104 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
305 | 313 | | |
306 | 314 | | |
307 | 315 | | |
| |||
1413 | 1421 | | |
1414 | 1422 | | |
1415 | 1423 | | |
1416 | | - | |
| 1424 | + | |
1417 | 1425 | | |
1418 | 1426 | | |
1419 | 1427 | | |
| |||
2626 | 2634 | | |
2627 | 2635 | | |
2628 | 2636 | | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
2629 | 2647 | | |
2630 | 2648 | | |
2631 | 2649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
0 commit comments