Skip to content

Commit 9d07f2e

Browse files
datesssjescalan
authored andcommitted
Update README to use url instead of name (#98)
fix typo in README, where ‘name’ is passed as a parameter into the constructor instead of ‘url’
1 parent 3b76cf7 commit 9d07f2e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const locals = {}
2727

2828
module.exports = {
2929
plugins: [
30-
new Rooftop({ addDataTo: locals, name: 'xxx', apiToken: 'xxx' })
30+
new Rooftop({ addDataTo: locals, url: 'xxx', apiToken: 'xxx' })
3131
],
3232
reshape: htmlStandards({ locals: () => locals })
3333
}
@@ -53,7 +53,7 @@ const locals = {}
5353

5454
new Rooftop({
5555
addDataTo: locals,
56-
name: 'xxx',
56+
url: 'xxx',
5757
apiToken: 'xxx',
5858
contentTypes: ['posts', 'case_studies']
5959
})
@@ -68,7 +68,7 @@ const locals = {}
6868

6969
new Rooftop({
7070
addDataTo: locals,
71-
name: 'xxx',
71+
url: 'xxx',
7272
apiToken: 'xxx',
7373
contentTypes: [{
7474
name: 'posts',
@@ -89,7 +89,7 @@ const locals = {}
8989

9090
new Rooftop({
9191
addDataTo: locals,
92-
name: 'xxx',
92+
url: 'xxx',
9393
apiToken: 'xxx',
9494
contentTypes: [{
9595
name: 'posts',
@@ -108,7 +108,7 @@ const locals = {}
108108

109109
new Rooftop({
110110
addDataTo: locals,
111-
name: 'xxx',
111+
url: 'xxx',
112112
apiToken: 'xxx',
113113
contentTypes: [{
114114
name: 'posts',
@@ -126,7 +126,7 @@ const locals = {}
126126

127127
new Rooftop({
128128
addDataTo: locals,
129-
name: 'xxx',
129+
url: 'xxx',
130130
apiToken: 'xxx',
131131
contentTypes: [{
132132
name: 'posts',
@@ -151,7 +151,7 @@ const locals = {}
151151

152152
new Rooftop({
153153
addDataTo: locals,
154-
name: 'xxx',
154+
url: 'xxx',
155155
apiToken: 'xxx',
156156
contentTypes: ['posts'],
157157
json: 'data.json'
@@ -179,7 +179,7 @@ const locals = {}
179179

180180
new Rooftop({
181181
addDataTo: locals,
182-
name: 'xxx',
182+
url: 'xxx',
183183
apiToken: 'xxx',
184184
hooks: {
185185
postTransform: (posts, locals) => {

0 commit comments

Comments
 (0)