MkDocs "Aborted with a BuildError" in CI
MkDocs hit a fatal condition (a strict-mode warning, a failing plugin, or invalid config) and stopped. "Aborted with a BuildError!" is the summary; the real reason is logged just above it.
What this error means
mkdocs build ends with "Aborted with a BuildError!" preceded by an ERROR line describing the actual problem, and the job exits non-zero.
ERROR - Config value 'plugins': The "search" plugin is not installed
Aborted with a BuildError!Common causes
Strict mode escalated a warning
With --strict (or strict: true), a warning such as a broken link or missing nav entry becomes a BuildError.
A plugin failed or is not installed
A plugin listed in plugins is missing or raised during the build, which MkDocs reports as a BuildError.
How to fix it
Read the ERROR line above the abort
- Scroll up to the
ERRORline directly before "Aborted with a BuildError!". - Fix what it names (install the plugin, correct the config, fix the link).
- Re-run the build.
mkdocs build --strict --verboseInstall missing plugins
Add every plugin named in plugins to docs requirements so the build can load them.
# docs/requirements.txt
mkdocs-material
mkdocs-minify-pluginHow to prevent it
- Run
mkdocs build --strictlocally to catch BuildErrors early. - Install every configured plugin in CI.
- Use
--verboseto see the cause behind the abort.