Skip to content

v1.0.0

Choose a tag to compare

@timvink timvink released this 04 Dec 17:02
aa076c5

This is the first v1 release. It brings faster builds, author profiles, many bug fixes, and new docs at https://timvink.github.io/mkdocs-git-authors-plugin/. Thanks Opus 5.5 :)

This is also the last major release. mkdocs hasn't been maintained for years now. I recommend it's successor zensical (from the mkdocs-material team), however do note it hasn't reached full feature parity yet, and doesn't support custom open source plugins yet.

Breaking changes

  • Python 3.11 or newer is now required. Python 3.11 to 3.15 are supported. On Python 3.8, 3.9 or 3.10, pip and uv will keep installing 0.10.x. (#130)
  • MkDocs 1.5 or newer is now required. (#139)
  • A relative ignore_commits path is now relative to the folder of mkdocs.yml, not the repository root. If the file is missing, the build stops with a clear error. (#139)
  • Invalid values for sort_authors_by and authorship_threshold_percent now fail with a config error instead of being silently accepted. (#139)
  • Author names and links in the generated HTML are now escaped. Links in git_page_authors now use double quotes. (#139)

New features

  • Faster builds. Pages are now blamed in parallel, and mkdocs serve reuses results between rebuilds. On a 200-page site, a build went from 1.6s to 0.5s, and a serve rebuild to 0.13s. New option enable_parallel_processing (default true). (#142)
  • Author profiles. New option authors_file: a YAML file that maps an email address to a display name, a profile link and an avatar. Templates can use the new url and avatar fields in git_info. (#141)
  • Authors in page metadata. Each page now has page.meta.git_authors and page.meta.git_authors_names, so other plugins (like mkdocs-macros) and templates can use them, for example in a <meta name="author"> tag. Turn it off with add_page_meta: false. (#140)
  • New option copy_detection (default 0, which keeps the old behaviour). When you split a page into smaller pages, or copy a page, the lines can now keep their original authors instead of being credited to whoever did the split or the copy. Higher values find more copies but make builds slower. (#116)
  • Pages generated by mkdocs-gen-files (for example API docs from mkdocstrings) now show the authors of their source file. (#123)
  • New pages that are not committed yet now show the author "Not Committed Yet", the same as uncommitted changes to existing pages. They no longer cause a warning that fails mkdocs build --strict. (#122)
  • The plugin now works when the git repository is inside docs_dir, for example when docs/ is its own repository. (#121)
  • When docs_dir is outside the git repository (as with mkdocs-monorepo-plugin), you get one clear message instead of a warning for every page. (#125)
  • With Material for MkDocs, the plugin explains in the build log why show_contribution has no effect, and the docs show how to work around it. (#118)

Bug fixes

  • Site authors now respect authorship_threshold_percent, and sort_authors_by: contribution now lists the largest contributors first. (#120)
  • Empty lines that contain only spaces, or Windows line endings, are no longer counted as content when count_empty_lines is false. (#119)
  • With add_co_authors: true, co-authors are now found when your git config sets a custom log format (#117). Pages with uncommitted changes no longer lose all their authors (#122).
  • Email addresses are now matched without regard to case. ignore_authors works with uppercase emails, and co-authors are no longer counted twice. Ignored authors no longer appear in the site authors list. (#124)
  • Pages that are not valid UTF-8 no longer crash the build, and author names with a backslash no longer crash it either. (#139)
  • Co-Authored-By lines are now found regardless of capitalization, and a co-author can no longer show more than 100%. (#139)
  • If git is not installed, fallback_to_empty now works as documented. With strict: false, the fallback message no longer fails mkdocs build --strict. (#139)
  • Fixed a few smaller issues: the HTML of the site authors summary, and the shallow-clone warnings on Bitbucket and Azure Pipelines. (#124)

Other changes

  • The documentation was rewritten to be shorter and clearer. (#138)
  • The code was restructured into small, well-tested modules. (#139)