Skip to content

fix: remove invalid top-level version key from mkdocs.yml#23

Merged
eman merged 1 commit into
mainfrom
docs/github-actions-pages
May 12, 2026
Merged

fix: remove invalid top-level version key from mkdocs.yml#23
eman merged 1 commit into
mainfrom
docs/github-actions-pages

Conversation

@eman
Copy link
Copy Markdown
Owner

@eman eman commented May 12, 2026

Problem

The GitHub Pages deployment was failing because mkdocs.yml contained an unrecognised top-level version key. With --strict mode the build aborted:

WARNING - Config value 'version': Unrecognised configuration name: version
Aborted with 1 configuration warnings in 'strict' mode!

Fix

Remove the invalid version: "0.5.0" key from mkdocs.yml. The project version is already dynamically injected at build time via the macros.py define_env hook (using setuptools_scm), so removing the static key has no effect on the published docs.

MkDocs does not recognise 'version' as a valid top-level config key.
Running with --strict aborted the build with:

  WARNING - Config value 'version': Unrecognised configuration name: version
  Aborted with 1 configuration warnings in 'strict' mode!

Removing the key fixes the GitHub Pages workflow.
Copilot AI review requested due to automatic review settings May 12, 2026 21:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes an invalid top-level version key from mkdocs.yml that causes MkDocs builds to fail in --strict mode, aligning version display with the existing dynamic injection done via the MkDocs macros hook.

Changes:

  • Deleted the unsupported top-level version: "0.5.0" entry from mkdocs.yml to prevent strict-mode config warnings from aborting the build.

@eman eman merged commit 7661ff2 into main May 12, 2026
10 checks passed
@eman eman deleted the docs/github-actions-pages branch May 12, 2026 21:54
@eman eman restored the docs/github-actions-pages branch May 12, 2026 21:54
@eman eman deleted the docs/github-actions-pages branch May 15, 2026 15:35
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