You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-17Lines changed: 22 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,22 @@ I had to create this fork so that it could be uploaded and distributed through P
8
8
9
9
This "v2" differs from the original by:
10
10
11
-
* Fetch contributors directly from GitHub
12
-
* Eliminate the need to match git commit logs with entries in GitHub, and thus GitHub API calls
13
-
* No more risk of matching the incorrect contributor as the information comes directly from GitHub
14
-
* last_commit_date is now populated with local git info
15
-
* No need for GitHub personal access token, as there are no more GitHub GraphQL API calls
11
+
- Fetch contributors directly from GitHub
12
+
- Eliminate the need to match git commit logs with entries in GitHub, and thus GitHub API calls
13
+
- No more risk of matching the incorrect contributor as the information comes directly from GitHub
14
+
- last_commit_date is now populated with local git info
15
+
- No need for GitHub personal access token, as there are no more GitHub GraphQL API calls
16
16
17
17
All of the above massively improves accuracy and performances.
18
18
19
19
Note: the plugin configuration in `mkdocs.yml` still uses the original `git-committers` sections.
20
20
21
+
## Limitations
22
+
23
+
- Getting the contributors relies on what is available on GitHub. This means that for new files, the build will report no contributors (and informed you with a 404 error which can be ignored)
24
+
When the file is merged, the contributors will be added normally.
25
+
- For now, Git submodule is not supported and will report no contributors.
26
+
21
27
## Setup
22
28
23
29
Install the plugin using pip:
@@ -33,18 +39,17 @@ plugins:
33
39
branch: main
34
40
```
35
41
36
-
37
42
> **Note:** If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set, but now you have to enable it explicitly.
38
43
39
44
More information about plugins in the [MkDocs documentation][mkdocs-plugins].
40
45
41
46
## Config
42
47
43
-
* `enabled` - Disables plugin if set to `False` for e.g. local builds (default: `True`)
44
-
* `repository` - The name of the repository, e.g. 'ojacques/mkdocs-git-committers-plugin-2'
45
-
* `branch` - The name of the branch to get contributors from. Example: 'master' (default)
46
-
* `enterprise_hostname` - For GitHub enterprise: the enterprise hostname.
47
-
* `docs_path` - the path to the documentation folder. Defaults to `docs`.
48
+
-`enabled` - Disables plugin if set to `False` for e.g. local builds (default: `True`)
49
+
-`repository`- The name of the repository, e.g. 'ojacques/mkdocs-git-committers-plugin-2'
50
+
-`branch` - The name of the branch to get contributors from. Example: 'master'(default)
51
+
-`enterprise_hostname` - For GitHub enterprise: the enterprise hostname.
52
+
-`docs_path`- the path to the documentation folder. Defaults to `docs`.
48
53
49
54
If the token is not set in `mkdocs.yml` it will be read from the `MKDOCS_GIT_COMMITTERS_APIKEY` environment variable.
50
55
@@ -56,7 +61,7 @@ In addition to displaying a list of committers for a file, you can also access
56
61
the last commit date for a page if you want to display the date the file was
Copy file name to clipboardExpand all lines: setup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
setup(
5
5
name='mkdocs-git-committers-plugin-2',
6
-
version='1.0.1',
6
+
version='1.0.2',
7
7
description='An MkDocs plugin to create a list of contributors on the page',
8
8
long_description='The git-committers plugin will seed the template context with a list of github committers and other useful GIT info such as last modified date',
0 commit comments