Repository navigation
v1.0.0
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_commitspath is now relative to the folder ofmkdocs.yml, not the repository root. If the file is missing, the build stops with a clear error. (#139) - Invalid values for
sort_authors_byandauthorship_threshold_percentnow 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_authorsnow use double quotes. (#139)
New features
- Faster builds. Pages are now blamed in parallel, and
mkdocs servereuses 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 optionenable_parallel_processing(defaulttrue). (#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 newurlandavatarfields ingit_info. (#141) - Authors in page metadata. Each page now has
page.meta.git_authorsandpage.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 withadd_page_meta: false. (#140) - New option
copy_detection(default0, 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 whendocs/is its own repository. (#121) - When
docs_diris 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_contributionhas no effect, and the docs show how to work around it. (#118)
Bug fixes
- Site authors now respect
authorship_threshold_percent, andsort_authors_by: contributionnow 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_linesisfalse. (#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_authorsworks 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-Bylines 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_emptynow works as documented. Withstrict: false, the fallback message no longer failsmkdocs 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)