mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-02-21 20:29:55 +01:00
Merge pull request #4303 from ojacques/master
Updated git-committers to 1.1.0
This commit is contained in:
commit
cec89f0c6d
2
.github/workflows/documentation.yml
vendored
2
.github/workflows/documentation.yml
vendored
@ -58,7 +58,7 @@ jobs:
|
|||||||
pip install .
|
pip install .
|
||||||
pip install \
|
pip install \
|
||||||
"cairosvg>=2.5" \
|
"cairosvg>=2.5" \
|
||||||
"mkdocs-git-committers-plugin-2<1" \
|
"mkdocs-git-committers-plugin-2>=1.1.1" \
|
||||||
"mkdocs-git-revision-date-localized-plugin>=1.0" \
|
"mkdocs-git-revision-date-localized-plugin>=1.0" \
|
||||||
"mkdocs-minify-plugin>=0.3" \
|
"mkdocs-minify-plugin>=0.3" \
|
||||||
"mkdocs-rss-plugin>=1.1" \
|
"mkdocs-rss-plugin>=1.1" \
|
||||||
|
@ -26,11 +26,6 @@
|
|||||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#+git-committers.repository",
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#+git-committers.repository",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"token": {
|
|
||||||
"title": "Personal access token",
|
|
||||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#+git-committers.token",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -250,7 +250,7 @@ Then, add the following lines to `mkdocs.yml`:
|
|||||||
plugins:
|
plugins:
|
||||||
- git-committers:
|
- git-committers:
|
||||||
repository: squidfunk/mkdocs-material
|
repository: squidfunk/mkdocs-material
|
||||||
token: !ENV GH_TOKEN
|
branch: main
|
||||||
```
|
```
|
||||||
|
|
||||||
The following configuration options are supported:
|
The following configuration options are supported:
|
||||||
@ -267,21 +267,15 @@ The following configuration options are supported:
|
|||||||
repository: squidfunk/mkdocs-material
|
repository: squidfunk/mkdocs-material
|
||||||
```
|
```
|
||||||
|
|
||||||
[`token`](#+git-committers.token){ #+git-committers.token }
|
`branch`{ #committers-repository }
|
||||||
|
|
||||||
: :octicons-milestone-24: Default: _none_ – This property should[^3] be set to
|
: :octicons-milestone-24: Default: `master` – This property should be set to
|
||||||
a [personal access token], which is used by the plugin to query GitHub's API
|
the branch of the repository from which to retrieve the contributors. To use the `main` branch:
|
||||||
for document contributor information:
|
|
||||||
|
|
||||||
[^3]:
|
|
||||||
Setting a [personal access token] is not required, but recommended, as
|
|
||||||
GitHub has very low [rate limits] on their APIs that you'll probably run
|
|
||||||
into. When using a token, [rate limits] are much higher.
|
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- git-committers:
|
- git-committers:
|
||||||
token: !ENV GH_TOKEN
|
branch: main
|
||||||
```
|
```
|
||||||
|
|
||||||
The other configuration options of this extension are not officially supported
|
The other configuration options of this extension are not officially supported
|
||||||
|
Loading…
x
Reference in New Issue
Block a user