|
29 | 29 | body=_(
|
30 | 30 | textwrap.dedent(
|
31 | 31 | """
|
32 |
| - No default configuration file found at repository's root. |
| 32 | + The required <code>readthedocs.yaml</code> configuration file was not found at repository's root. |
| 33 | + Learn how to use this file in our <a href="https://docs.readthedocs.io/en/stable/config-file/index.html">configuration file tutorial</a>. |
33 | 34 | """
|
34 | 35 | ).strip(),
|
35 | 36 | ),
|
|
66 | 67 | textwrap.dedent(
|
67 | 68 | """
|
68 | 69 | The configuration key <code>python.system_packages</code> has been deprecated and removed.
|
69 |
| - Refer to https://blog.readthedocs.com/drop-support-system-packages/ to read more |
70 |
| - about this change and how to upgrade your config file." |
| 70 | + <a href="https://blog.readthedocs.com/drop-support-system-packages/">Read our blog post</a> |
| 71 | + to learn more about this change and how to upgrade your configuration file." |
71 | 72 | """
|
72 | 73 | ).strip(),
|
73 | 74 | ),
|
|
80 | 81 | textwrap.dedent(
|
81 | 82 | """
|
82 | 83 | The configuration key <code>python.use_system_site_packages</code> has been deprecated and removed.
|
83 |
| - Refer to https://blog.readthedocs.com/drop-support-system-packages/ to read more |
84 |
| - about this change and how to upgrade your config file." |
| 84 | + <a href="https://blog.readthedocs.com/drop-support-system-packages/">Read our blog post</a> |
| 85 | + to learn more about this change and how to upgrade your configuration file." |
85 | 86 | """
|
86 | 87 | ).strip(),
|
87 | 88 | ),
|
|
99 | 100 | ),
|
100 | 101 | type=ERROR,
|
101 | 102 | ),
|
102 |
| - Message( |
103 |
| - id=ConfigError.GENERIC_INVALID_CONFIG_KEY, |
104 |
| - header=_("Invalid configuration option"), |
105 |
| - body=_( |
106 |
| - textwrap.dedent( |
107 |
| - """ |
108 |
| - Invalid configuration option: <code>{{key}}</code>. |
109 |
| -
|
110 |
| - Read the Docs configuration file: <code>{{source_file}}</code>. |
111 |
| -
|
112 |
| - <code>{{error_message}}</code> |
113 |
| - """ |
114 |
| - ).strip(), |
115 |
| - ), |
116 |
| - type=ERROR, |
117 |
| - ), |
118 | 103 | Message(
|
119 | 104 | id=ConfigError.NOT_BUILD_TOOLS_OR_COMMANDS,
|
120 |
| - header=_("Invalid configuration option: <code>build</code>"), |
| 105 | + header=_("Missing configuration option"), |
121 | 106 | body=_(
|
122 | 107 | textwrap.dedent(
|
123 | 108 | """
|
124 |
| - At least one item should be provided in "tools" or "commands". |
| 109 | + At least one of the following configuration options is required: <code>build.tools</code> or <code>build.commands</code>. |
125 | 110 | """
|
126 | 111 | ).strip(),
|
127 | 112 | ),
|
|
169 | 154 | body=_(
|
170 | 155 | textwrap.dedent(
|
171 | 156 | """
|
172 |
| - You need to install your project with pip to use <code>extra_requirements</code>. |
| 157 | + You need to install your project with <code>python.install.method: pip</code> |
| 158 | + to use <code>python.install.extra_requirements</code>. |
173 | 159 | """
|
174 | 160 | ).strip(),
|
175 | 161 | ),
|
176 | 162 | type=ERROR,
|
177 | 163 | ),
|
178 | 164 | Message(
|
179 | 165 | id=ConfigError.PIP_PATH_OR_REQUIREMENT_REQUIRED,
|
180 |
| - header=_("Invalid configuration key"), |
| 166 | + header=_("Missing configuration key"), |
181 | 167 | body=_(
|
182 | 168 | textwrap.dedent(
|
183 | 169 | """
|
184 |
| - <code>path</code> or <code>requirements</code> key is required for <code>python.install</code>. |
| 170 | + When using <code>python.install</code>, |
| 171 | + one of the following keys are required: <code>python.install.path</code> or <code>python.install.requirements</code>. |
185 | 172 | """
|
186 | 173 | ).strip(),
|
187 | 174 | ),
|
|
205 | 192 | body=_(
|
206 | 193 | textwrap.dedent(
|
207 | 194 | """
|
208 |
| - You can not have <code>exclude</code> and <code>include</code> submodules at the same time. |
| 195 | + You can not have <code>submodules.exclude</code> and <code>submodules.include</code> at the same time. |
209 | 196 | """
|
210 | 197 | ).strip(),
|
211 | 198 | ),
|
|
230 | 217 | textwrap.dedent(
|
231 | 218 | """
|
232 | 219 | Error while parsing <code>{{filename}}</code>.
|
| 220 | + Make sure your configuration file doesn't have any errors. |
233 | 221 |
|
234 | 222 | {{error_message}}
|
235 | 223 | """
|
|
261 | 249 | textwrap.dedent(
|
262 | 250 | """
|
263 | 251 | Config validation error in <code>{{key}}</code>.
|
264 |
| - Expected one of (0, 1, true, false), got <code>{{value}}</code>. |
| 252 | + Expected one of <code>[0, 1, true, false]</code>, got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
| 253 | + Make sure the type of the value is not a string. |
265 | 254 | """
|
266 | 255 | ).strip(),
|
267 | 256 | ),
|
|
274 | 263 | textwrap.dedent(
|
275 | 264 | """
|
276 | 265 | Config validation error in <code>{{key}}</code>.
|
277 |
| - Expected one of ({{choices}}), got <code>{{value}}</code>. |
| 266 | + Expected one of ({{choices}}), got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
| 267 | + Double check the type of the value. |
| 268 | + A string may be required (e.g. <code>"3.10"</code> insted of <code>3.10</code>) |
278 | 269 | """
|
279 | 270 | ).strip(),
|
280 | 271 | ),
|
|
287 | 278 | textwrap.dedent(
|
288 | 279 | """
|
289 | 280 | Config validation error in <code>{{key}}</code>.
|
290 |
| - Expected a dictionary, got <code>{{value}}</code>. |
| 281 | + Expected a dictionary, got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
291 | 282 | """
|
292 | 283 | ).strip(),
|
293 | 284 | ),
|
|
326 | 317 | textwrap.dedent(
|
327 | 318 | """
|
328 | 319 | Config validation error in <code>{{key}}</code>.
|
329 |
| - Expected a string, got <code>{{value}}</code>. |
| 320 | + Expected a string, got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
330 | 321 | """
|
331 | 322 | ).strip(),
|
332 | 323 | ),
|
|
339 | 330 | textwrap.dedent(
|
340 | 331 | """
|
341 | 332 | Config validation error in <code>{{key}}</code>.
|
342 |
| - Expected a list, got <code>{{value}}</code>. |
| 333 | + Expected a list, got type <code>{{value|to_class_name}}</code> (<code>{{value}}</code>). |
343 | 334 | """
|
344 | 335 | ).strip(),
|
345 | 336 | ),
|
|
0 commit comments