Skip to content

Conversation

humitos
Copy link
Member

@humitos humitos commented Oct 13, 2025

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)

Closes #11937
Closes #12378

RabbitAlbatross and others added 8 commits August 4, 2025 21:49
Sorry for being so late.
added MKDOCS_NOT_FOUND constant to ProjectConfigurationError
added MkDocs notification for missing mkdocs.yml
raise MKDOCS_NOT_FOUND when mkdocs.yml is missing
Copy link

read-the-docs-community bot commented Oct 13, 2025

Documentation build overview

📚 dev | 🛠️ Build #29920908 | 📁 Comparing fbe1745 against latest (b971a08)


🔍 Preview build

Show files changed (1 files in total): 📝 1 modified | ➕ 0 added | ➖ 0 deleted
File Status
settings.html 📝 modified

Copy link

read-the-docs-community bot commented Oct 13, 2025

Documentation build overview

📚 docs | 🛠️ Build #29920909 | 📁 Comparing fbe1745 against latest (b971a08)


🔍 Preview build

Show files changed (9 files in total): 📝 9 modified | ➕ 0 added | ➖ 0 deleted
File Status
build-customization.html 📝 modified
visual-diff.html 📝 modified
config-file/index.html 📝 modified
config-file/v2.html 📝 modified
guides/conda.html 📝 modified
guides/private-submodules.html 📝 modified
guides/pull-requests.html 📝 modified
intro/add-project.html 📝 modified
reference/git-integration.html 📝 modified

@humitos humitos changed the title fix(build): raise clear error if mkdocs.yml config file is missing Raise clear error when mkdocs.yml config file is missing Oct 13, 2025
@humitos humitos marked this pull request as ready for review October 13, 2025 10:24
@humitos humitos requested a review from a team as a code owner October 13, 2025 10:24
@humitos humitos requested a review from stsewd October 13, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build: "Unknown" error when mkdocs.yml is not found

2 participants