From b276146fc7c03bf89a46e628d59c792faa825e82 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 22 Sep 2023 21:01:14 +0200 Subject: [PATCH] Added git-committers plugin to blog post --- docs/blog/posts/git-sparse-checkout.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/blog/posts/git-sparse-checkout.md b/docs/blog/posts/git-sparse-checkout.md index e5cb8bc2f..b4fd6ce05 100644 --- a/docs/blog/posts/git-sparse-checkout.md +++ b/docs/blog/posts/git-sparse-checkout.md @@ -18,17 +18,20 @@ seconds to just 2 seconds.__ Developing an efficient approach to build documentation in CI workflows is essential, especially when working in large repositories with thousands of commits, like ours. Of course, we want to build documentation quickly and -efficiently, ensuring fast and productive workflows. When using the wonderful -[`git-revision-date-localized`][git-revision-date-localized] plugin to display -[document contributors] at the bottom of each page, we are required to set -`fetch-depth: 0`, which resulted in checkout times of 20 to 30 seconds on our -repository. By leveraging [`git sparse-checkout`][git sparse-checkout] within -[GitHub Actions], we were able to bring down checkout time to 2 seconds. +efficiently, ensuring fast and productive workflows. When using both the +wonderful [`git-committers`][git-committers] and [`git-revision-date-localized`] +[git-revision-date-localized] plugins to display [document contributors] and +[dates] at the bottom of each page, we are required to set `fetch-depth: 0`, +which resulted in checkout times of 20 to 30 seconds on our repository. By +leveraging [`git sparse-checkout`][git sparse-checkout] within [GitHub Actions], +we were able to bring down checkout time to 2 seconds. [git sparse-checkout]: https://git-scm.com/docs/git-sparse-checkout [GitHub Actions]: ../../publishing-your-site.md#with-github-actions [git-revision-date-localized]: https://github.com/timvink/mkdocs-git-revision-date-localized-plugin + [git-committers]: https://github.com/ojacques/mkdocs-git-committers-plugin-2 [document contributors]: ../../setup/adding-a-git-repository.md#document-contributors + [dates]: ../../setup/adding-a-git-repository.md#document-dates