Skip to content

v4.0.0

Choose a tag to compare

@joapuiib joapuiib released this 30 Sep 16:42
· 51 commits to main since this release

Highlights

  • Cover parameters unified under cover: (breaking) — Every cover parameter now sits in a single cover: block with the same nested structure in mkdocs.yml (theme.cover) and in page front matter. The old flat front matter keys (subtitle, curs, author, email, original_author and license_type/license_text/license_link/license_image) are now ignored without a warning by the cover and the print footer, so move them under cover (license keys go under cover.license). Cover docs
  • Per-field overrides and theme-wide cover defaults — Page values are merged field by field with theme.cover, so a page can override a single value such as cover.license.text and keep the other defaults. cover.author falls back to site_author, cover.license.* falls back to theme.license.*, and a page can hide the cover with cover: false. Cover docs
  • Custom license icon on the cover — The new cover.license.icon option replaces the icon that is otherwise picked automatically from license.type (material/copyleft, material/creative-commons or material/copyright). Cover docs
  • site_email moved to theme.email (breaking) — Set the contact email with theme.email in mkdocs.yml instead of site_email, which MkDocs doesn't recognise and warned about on every build. The cover's cover.email falls back to it. Cover docs
  • Print footer follows the cover settings — The print footer now takes the author and license from the cover parameters. The web footer (copyright.html) still reads the old root-level author and license_* keys, so pages that changed that footer must keep those keys at the root as well. Cover docs

Full Changelog: v3.11.0...v4.0.0