mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added git-committers plugin to blog post
This commit is contained in:
parent
d3d8964c63
commit
b276146fc7
@ -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
|
||||
|
||||
<!-- more -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user