Skip to content

Commit 60f0f1c

Browse files
committedMar 9, 2020
Remove deprecated Staticman v1 config
Close #2386
1 parent e1724ae commit 60f0f1c

File tree

3 files changed

+6
-51
lines changed

3 files changed

+6
-51
lines changed
 

‎_config.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,9 @@ comments:
4343
utterances:
4444
theme : # "github-light" (default), "github-dark"
4545
issue_term : # "pathname" (default)
46-
staticman:
47-
allowedFields : # ['name', 'email', 'url', 'message']
48-
branch : # "master"
49-
commitMessage : # "New comment by {fields.name}"
50-
filename : # comment-{@timestamp}
51-
format : # "yml"
52-
moderation : # true
53-
path : # "/_data/comments/{options.slug}" (default)
54-
requiredFields : # ['name', 'email', 'message']
55-
transforms:
56-
email : # "md5"
57-
generatedFields:
58-
date:
59-
type : # "date"
60-
options:
61-
format : # "iso8601" (default), "timestamp-seconds", "timestamp-milliseconds"
62-
endpoint : # URL of your own deployment with trailing slash, will fallback to the public instance
46+
staticman:
47+
branch : # "master"
48+
endpoint : # "https://{your Staticman v3 API}/v3/entry/github/"
6349
reCaptcha:
6450
siteKey :
6551
secret :

‎docs/_config.yml

-17
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,6 @@ comments:
3838
utterances:
3939
theme : # "github-light" (default), "github-dark"
4040
issue_term : # "pathname" (default)
41-
staticman:
42-
allowedFields : # ['name', 'email', 'url', 'message']
43-
branch : # "master"
44-
commitMessage : # "New comment by {fields.name}"
45-
filename : # comment-{@timestamp}
46-
format : # "yml"
47-
moderation : # true
48-
path : # "_data/comments/{options.slug}"
49-
requiredFields : # ['name', 'email', 'message']
50-
transforms:
51-
email : # "md5"
52-
generatedFields:
53-
date:
54-
type : # "date"
55-
options:
56-
format : # "iso8601" (default), "timestamp-seconds", "timestamp-milliseconds"
57-
endpoint : # URL of your own deployment with trailing slash, will fallback to the public instance
5841
reCaptcha:
5942
siteKey : # "6LdRBykTAAAAAFB46MnIu6ixuxwu9W1ihFF8G60Q"
6043
secret : # "PznnZGu3P6eTHRPLORniSq+J61YEf+A9zmColXDM5icqF49gbunH51B8+h+i2IvewpuxtA9TFoK68TuhUp/X3YKmmqhXasegHYabY50fqF9nJh9npWNhvITdkQHeaOqnFXUIwxfiEeUt49Yoa2waRR7a5LdRAP3SVM8hz0KIBT4="

‎test/_config.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,9 @@ comments:
3737
utterances:
3838
theme : # "github-light" (default), "github-dark"
3939
issue_term : # "pathname" (default)
40-
staticman:
41-
allowedFields : ['name', 'email', 'url', 'message']
42-
branch : # "master", "gh-pages"
43-
commitMessage : "New comment by {fields.name}"
44-
filename : comment-{@timestamp}
45-
format : "yml"
46-
moderation : true
47-
path : "_data/comments/{options.slug}"
48-
requiredFields : ['name', 'email', 'message']
49-
transforms:
50-
email : "md5"
51-
generatedFields:
52-
date:
53-
type : "date"
54-
options:
55-
format : "iso8601" # "iso8601" (default), "timestamp-seconds", "timestamp-milliseconds"
56-
endpoint : # URL of your own deployment with trailing slash, will fallback to the public instance
40+
staticman:
41+
branch : # "master"
42+
endpoint : # "https://{your Staticman v3 API}/v3/entry/github/"
5743
atom_feed:
5844
path : # blank (default) uses feed.xml
5945
search : true # true, false (default)

0 commit comments

Comments
 (0)