diff --git a/_includes/comments.html b/_includes/comments.html index dbb90d1e3a0f..b23cea4d3f41 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -35,7 +35,7 @@

{{ site.data.ui-text[site.locale].comments_titl

{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}

{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *

-
+
{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }} diff --git a/docs/_docs/05-configuration.md b/docs/_docs/05-configuration.md index 0775250f3616..2e7598a3ce1b 100644 --- a/docs/_docs/05-configuration.md +++ b/docs/_docs/05-configuration.md @@ -334,7 +334,7 @@ For example, | **disqus** | Disqus | | **discourse** | Discourse | | **facebook** | Facebook Comments | -| **staticman_v2** | Staticman v2 | +| **staticman_v2** | Staticman v2 / v3 | | **staticman** | Staticman v1 (deprecated) | | **utterances** | utterances | | **custom** | Other | @@ -425,13 +425,16 @@ Transform user comments into `_data` files that live inside of your GitHub repos **Note:** Looking to migrate comments from a WordPress based site? Give [this tool](https://github.com/arthurlacoste/wordpress-comments-jekyll-staticman) a try. {: .notice--info} -**Note:** Please note that as of September 2018, Staticman is reaching GitHub API limits due to its popularity, and it is recommended by its maintainer that users deploy their own instances for production (use `site.staticman.endpoint`). +**Note:** Please note that as of September 2018, Staticman is reaching GitHub API limits due to its popularity, and it is recommended by its maintainer that users deploy their own instances for production (use `site.staticman.endpoint`). Consult the Staticman "[Get Started](https://staticman.net/docs/index.html)" guide for more info. {: .notice--warning} -##### Add Staticman as a collaborator +##### Add Staticman as a collaborator on GitHub (legacy) -1. Allow Staticman push access to your GitHub repository by clicking on **Settings**, then the **Collaborators** tab and adding `staticmanapp` as a collaborator. -2. To accept the pending invitation visit: `https://api.staticman.net/v2/connect/{your GitHub username}/{your repository name}`. Consult the Staticman "[Get Started](https://staticman.net/docs/index.html)" guide for more info. +1. Allow Staticman push access to your GitHub repository by clicking on **Settings**, then the **Collaborators** tab and adding your GitHub bot as a collaborator. +2. To accept the pending invitation visit: `https://{your Staticman v2/3 API}/v[2|3]/connect/{your GitHub username}/{your repository name}`. + +**Note:** The new GitHub App authentication method is recommended for GitHub repositories to avoid the API rate limit. +{: .notice--info} ##### Configure Staticman @@ -524,7 +527,7 @@ By default comment moderation is enabled in `staticman.yml`. As new comments are To skip this moderation step simply set `moderation: false`. -**ProTip:** Create a GitHub webhook that sends a `POST` request to the following payload URL `https://api.staticman.net/v2/webhook` and triggers a "Pull request" event to delete Staticman branches on merge. +**ProTip:** Create a GitHub webhook that sends a `POST` request to the following payload URL `https://{your Staticman API URL}/v2/webhook` and triggers a "Pull request" event to delete Staticman branches on merge. {: .notice--info} ![pull-request webhook]({{ "/assets/images/mm-staticman-pr-webhook.jpg" | relative_url }}) diff --git a/staticman.yml b/staticman.yml index a4f161b7609b..61b95925167f 100644 --- a/staticman.yml +++ b/staticman.yml @@ -3,7 +3,7 @@ # For example, you can have one property to handle comment submission and # another one to handle posts. # To encrypt strings use the following endpoint: -# https://api.staticman.net/v2/encrypt/{TEXT TO BE ENCRYPTED} +# https://{your Staticman API URL}/v[2|3]/encrypt/{TEXT TO BE ENCRYPTED} comments: # (*) REQUIRED