Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 26, 2025

MkDocs builds failed with unclear errors when the configuration file was missing. This aligns MkDocs error handling with the existing Sphinx implementation.

Changes

  • Error messaging: When mkdocs.configuration is declared but the file doesn't exist, raises UserFileNotFound with the path
  • Test coverage: Added MkDocsBuilderTest.test_project_without_mkdocs_yml to verify the error behavior

Error Examples

Missing mkdocs.configuration key:
MkDocs configuration file is missing

Declared file doesn't exist:
Expected file not found

Closes #11937
Closes #12378


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: humitos <244656+humitos@users.noreply.github.com>
Copilot AI changed the title [WIP] Raise clear error when mkdocs.yml config file is missing Raise clear error when mkdocs.yml config file is missing Nov 26, 2025
Copilot AI requested a review from humitos November 26, 2025 11:35
Copilot finished work on behalf of humitos November 26, 2025 11:35
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! This looks good 😄

@humitos humitos marked this pull request as ready for review November 26, 2025 11:47
@humitos humitos requested a review from a team as a code owner November 26, 2025 11:47
@humitos humitos requested a review from stsewd November 26, 2025 11:47
@humitos humitos merged commit 4273d8c into humitos/followup-12378 Nov 26, 2025
4 of 5 checks passed
@humitos humitos deleted the copilot/sub-pr-12521 branch November 26, 2025 11:54
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.

2 participants