jekyll-open-sdg-plugins 1.2.0.pre.beta2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c83cab37937dfcf97c1bfbef8746287e6297755250e89c7a6e5e45edfbc366d5
4
- data.tar.gz: 8fee68ec2cff47f46d217c12f97af1b1953d1bef5eae6020937345d69c641859
3
+ metadata.gz: d2c1ce04469e6f2a44c30979e06c5a2782bb2fc0468baa4eb7d8521e4d87750d
4
+ data.tar.gz: 452f3790764b11cfe9934fb95f310f294b4c8ecca7b200d916b64e85e0354a43
5
5
  SHA512:
6
- metadata.gz: 87d899fbed0085ac3b376251ba97189415b685c5673b6d1096eb48db87898e2ae54d32f8757b16d59f3b96e7a9994d183ffa68bcac3ab2164865cf6a77190ebc
7
- data.tar.gz: d54c8b23f83c63bbded2cb46f77358756f61d37164839a800f7c615af07446693368fa80873ad7d81bc69b7384540ca407658770550bc5716a009dfecf68a123
6
+ metadata.gz: 9e6baf613af1260e093345739182b08d84d41008495bb2e224b0b4181cb086348636277bbc16e0fe9b67f3d94ca2dae93c84609de49b52c03dc3477b11e818e2
7
+ data.tar.gz: 6be0fc2e582b7fa8dfb1c945f656ea9220b6d1e277e8953b3d6ab4b6f4a8ac0f66b4d255f2a3b12814343a030ea71789c93441f1f7cb3098634ce5425e66ef5e
@@ -60,6 +60,14 @@ module JekyllOpenSdgPlugins
60
60
  @dir = dir
61
61
  @name = 'index.html'
62
62
 
63
+ goal_content = ''
64
+ if site.config['create_goals'].has_key?('goals')
65
+ if !site.config['create_goals']['goals'][goal - 1].nil?
66
+ goal_content = site.config['create_goals']['goals'][goal - 1]['content']
67
+ end
68
+ end
69
+ @content = goal_content
70
+
63
71
  self.process(@name)
64
72
  self.data = {}
65
73
  self.data['goal_number'] = goal.to_s
@@ -109,7 +109,7 @@ module JekyllOpenSdgPlugins
109
109
  @site = site
110
110
  @base = base
111
111
 
112
- index_files = (!page.key?('filename') or page['filename'] == 'index.html')
112
+ index_files = (!page.key?('filename') or page['filename'] == 'index.html' or page['filename'] == '')
113
113
  @dir = index_files ? File.join(dir, '/') : dir
114
114
  @name = index_files ? 'index.html' : page['filename']
115
115
 
@@ -9,7 +9,7 @@
9
9
  "description": "Unit of measurement which displays below the indicator chart.",
10
10
  "links": [
11
11
  {
12
- "rel": "More information",
12
+ "rel": "More information on the units of measurement setting",
13
13
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#recommended-special-fields"
14
14
  }
15
15
  ]
@@ -20,7 +20,7 @@
20
20
  "description": "Copyright which displays below the indicator chart.",
21
21
  "links": [
22
22
  {
23
- "rel": "More information",
23
+ "rel": "More information on the copyright setting",
24
24
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#footer"
25
25
  }
26
26
  ]
@@ -32,7 +32,7 @@
32
32
  "description": "Footnote which displays below the indicator chart.",
33
33
  "links": [
34
34
  {
35
- "rel": "More information",
35
+ "rel": "More information on the footnote setting",
36
36
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#footer"
37
37
  }
38
38
  ]
@@ -44,7 +44,7 @@
44
44
  "format": "checkbox",
45
45
  "links": [
46
46
  {
47
- "rel": "More information",
47
+ "rel": "More information the non-statistical setting",
48
48
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-fields"
49
49
  }
50
50
  ]
@@ -55,7 +55,7 @@
55
55
  "description": "A CSS class to apply to the data notice for this indicator.",
56
56
  "links": [
57
57
  {
58
- "rel": "More information",
58
+ "rel": "More information on the data notice setting",
59
59
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#data-notice"
60
60
  }
61
61
  ]
@@ -66,7 +66,7 @@
66
66
  "description": "A title to display above the data notice for this indicator.",
67
67
  "links": [
68
68
  {
69
- "rel": "More information",
69
+ "rel": "More information on the data notice heading setting",
70
70
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#data-notice"
71
71
  }
72
72
  ]
@@ -78,7 +78,7 @@
78
78
  "description": "Text to display as a data notice for this indicator, intended to contain very important information which site viewers must keep in mind when using the data provided.",
79
79
  "links": [
80
80
  {
81
- "rel": "More information",
81
+ "rel": "More information on the data notice text setting",
82
82
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#data-notice"
83
83
  }
84
84
  ]
@@ -90,14 +90,13 @@
90
90
  "format": "checkbox",
91
91
  "links": [
92
92
  {
93
- "rel": "More information",
93
+ "rel": "More information on the map setting",
94
94
  "href": "https://open-sdg.readthedocs.io/en/latest/maps/#metadata-field-data_show_map"
95
95
  }
96
96
  ]
97
97
  },
98
98
  "data_start_values": {
99
99
  "options": {"collapsed": true},
100
- "format": "table",
101
100
  "type": "array",
102
101
  "title": "Starting values",
103
102
  "description": "Disaggregation values for a an indicator to start with already selected",
@@ -121,7 +120,7 @@
121
120
  },
122
121
  "links": [
123
122
  {
124
- "rel": "More information",
123
+ "rel": "More information on the starting values setting",
125
124
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#starting-values"
126
125
  }
127
126
  ]
@@ -133,7 +132,7 @@
133
132
  "description": "A footer that displays below the embedded feature. Only used with either embedded_feature_url or embedded_feature_html.",
134
133
  "links": [
135
134
  {
136
- "rel": "More information",
135
+ "rel": "More information on the embed footer setting",
137
136
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
138
137
  }
139
138
  ]
@@ -145,7 +144,7 @@
145
144
  "description": "Any HTML to display in another tab, after Chart/Table/etc.",
146
145
  "links": [
147
146
  {
148
- "rel": "More information",
147
+ "rel": "More information on the embed HTML setting",
149
148
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
150
149
  }
151
150
  ]
@@ -156,7 +155,7 @@
156
155
  "description": "A title for the embedded feature tab (ie, Chart/Table/[this]). Only used with either embedded_feature_url or embedded_feature_html.",
157
156
  "links": [
158
157
  {
159
- "rel": "More information",
158
+ "rel": "More information on the embed tab title setting",
160
159
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
161
160
  }
162
161
  ]
@@ -167,7 +166,7 @@
167
166
  "description": "A title that displays above the embedded feature. Only used with either embedded_feature_url or embedded_feature_html.",
168
167
  "links": [
169
168
  {
170
- "rel": "More information",
169
+ "rel": "More information on the embed title setting",
171
170
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
172
171
  }
173
172
  ]
@@ -179,11 +178,27 @@
179
178
  "description": "Any URL to display as an iframe in another tab, after Chart/Table/etc.",
180
179
  "links": [
181
180
  {
182
- "rel": "More information",
181
+ "rel": "More information on the embed URL setting",
183
182
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
184
183
  }
185
184
  ]
186
185
  },
186
+ "expected_disaggregations": {
187
+ "options": {"collapsed": true},
188
+ "type": "array",
189
+ "title": "Expected disaggregations",
190
+ "description": "An optional list of disaggregations (ie, data column names) to use when calculating the disaggregation status statistics.",
191
+ "items": {
192
+ "type": "string",
193
+ "title": "Expected disaggregation"
194
+ },
195
+ "links": [
196
+ {
197
+ "rel": "More information on the expected disaggregation setting",
198
+ "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#recommended-special-fields"
199
+ }
200
+ ]
201
+ },
187
202
  "graph_annotations": {
188
203
  "options": {"collapsed": true},
189
204
  "type": "array",
@@ -195,7 +210,6 @@
195
210
  "properties": {
196
211
  "preset": {
197
212
  "type": "string",
198
- "format": "choices",
199
213
  "title": "Preset",
200
214
  "enum": ["target_line"],
201
215
  "description": "A preset bundle of configurations."
@@ -239,7 +253,7 @@
239
253
  "description": "The color of the line.",
240
254
  "links": [
241
255
  {
242
- "rel": "More information",
256
+ "rel": "More information on the border color setting",
243
257
  "href": "https://github.com/chartjs/chartjs-plugin-annotation/blob/master/README.md"
244
258
  }
245
259
  ]
@@ -250,7 +264,7 @@
250
264
  "description": "The type of line dash.",
251
265
  "links": [
252
266
  {
253
- "rel": "More information",
267
+ "rel": "More information on the line dash setting",
254
268
  "href": "https://github.com/chartjs/chartjs-plugin-annotation/blob/master/README.md"
255
269
  }
256
270
  ]
@@ -332,14 +346,13 @@
332
346
  },
333
347
  "links": [
334
348
  {
335
- "rel": "More information",
349
+ "rel": "More information on the graph annotations setting",
336
350
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#graph-metadata"
337
351
  }
338
352
  ]
339
353
  },
340
354
  "graph_limits": {
341
355
  "options": {"collapsed": true},
342
- "format": "table",
343
356
  "type": "array",
344
357
  "title": "Graph limits",
345
358
  "description": "A list of min/max limits controlling the lowest/highest values to be shown on the y-axis.",
@@ -373,7 +386,7 @@
373
386
  },
374
387
  "links": [
375
388
  {
376
- "rel": "More information",
389
+ "rel": "More information on the graph limits setting",
377
390
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#graph-metadata"
378
391
  }
379
392
  ]
@@ -384,7 +397,7 @@
384
397
  "description": "This can be used with the bar graph type to place a certain disaggregation into the same stacked bars.",
385
398
  "links": [
386
399
  {
387
- "rel": "More information",
400
+ "rel": "More information on the stacked disaggregation setting",
388
401
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#recommended-special-fields"
389
402
  }
390
403
  ]
@@ -395,14 +408,13 @@
395
408
  "description": "The title that displays above the graph/chart.",
396
409
  "links": [
397
410
  {
398
- "rel": "More information",
411
+ "rel": "More information on the graph title setting",
399
412
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-for-statistical-indicators"
400
413
  }
401
414
  ]
402
415
  },
403
416
  "graph_titles": {
404
417
  "options": {"collapsed": true},
405
- "format": "table",
406
418
  "type": "array",
407
419
  "title": "Graph titles",
408
420
  "description": "As an alternative to `graph_title`, this can be used to set specific titles for particular units and/or series.",
@@ -431,13 +443,12 @@
431
443
  },
432
444
  "graph_type": {
433
445
  "type": "string",
434
- "format": "choices",
435
446
  "title": "Graph type",
436
447
  "description": "What type of graph to use for the indicator.",
437
448
  "enum": ["line", "bar", "binary"],
438
449
  "links": [
439
450
  {
440
- "rel": "More information",
451
+ "rel": "More information on the graph titles setting",
441
452
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-for-statistical-indicators"
442
453
  }
443
454
  ]
@@ -448,7 +459,7 @@
448
459
  "description": "The name for the indicator, which displays at the top of the indicator page.",
449
460
  "links": [
450
461
  {
451
- "rel": "More information",
462
+ "rel": "More information on the indicator name setting",
452
463
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-fields"
453
464
  }
454
465
  ]
@@ -459,7 +470,7 @@
459
470
  "description": "The number (or 'id') for the indicator.",
460
471
  "links": [
461
472
  {
462
- "rel": "More information",
473
+ "rel": "More information on the indicator number setting",
463
474
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-fields"
464
475
  }
465
476
  ]
@@ -470,7 +481,7 @@
470
481
  "description": "A label used in the absence of any disaggregation.",
471
482
  "links": [
472
483
  {
473
- "rel": "More information",
484
+ "rel": "More information on the geographical coverage setting",
474
485
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-for-statistical-indicators"
475
486
  }
476
487
  ]
@@ -483,20 +494,18 @@
483
494
  },
484
495
  "reporting_status": {
485
496
  "type": "string",
486
- "format": "choices",
487
497
  "title": "Reporting status",
488
498
  "enum": ["complete", "inprogress", "notstarted", "notapplicable"],
489
499
  "description": "The status of the indicator.",
490
500
  "links": [
491
501
  {
492
- "rel": "More information",
502
+ "rel": "More information on the reporting status setting",
493
503
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-fields"
494
504
  }
495
505
  ]
496
506
  },
497
507
  "tags": {
498
508
  "options": {"collapsed": true},
499
- "format": "table",
500
509
  "type": "array",
501
510
  "title": "Tags",
502
511
  "description": "An optional list of 'tags' to display under an indicator when it is listed on its goal page.",
@@ -506,7 +515,7 @@
506
515
  },
507
516
  "links": [
508
517
  {
509
- "rel": "More information",
518
+ "rel": "More information on the tags setting",
510
519
  "href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#recommended-special-fields"
511
520
  }
512
521
  ]
@@ -10,7 +10,7 @@
10
10
  "format": "checkbox",
11
11
  "links": [
12
12
  {
13
- "rel": "More information",
13
+ "rel": "More information on the accessible charts setting",
14
14
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#accessible_charts"
15
15
  }
16
16
  ]
@@ -22,7 +22,7 @@
22
22
  "format": "checkbox",
23
23
  "links": [
24
24
  {
25
- "rel": "More information",
25
+ "rel": "More information on the accessible tabs setting",
26
26
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#accessible_tabs"
27
27
  }
28
28
  ]
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "links": [
43
43
  {
44
- "rel": "More information",
44
+ "rel": "More information on the analytics setting",
45
45
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#analytics"
46
46
  }
47
47
  ]
@@ -54,7 +54,6 @@
54
54
  "properties": {
55
55
  "goal": {
56
56
  "options": {"collapsed": true},
57
- "format": "table",
58
57
  "type": "array",
59
58
  "title": "Goal breadcrumbs",
60
59
  "description": "The breadcrumb items for goal pages.",
@@ -64,7 +63,6 @@
64
63
  },
65
64
  "indicator": {
66
65
  "options": {"collapsed": true},
67
- "format": "table",
68
66
  "type": "array",
69
67
  "title": "Indicator breadcrumbs",
70
68
  "description": "The breadcrumb items for indicator pages. Note that there will automatically be a final item, which is a link to the goal that the indicator belongs to. You do not need to specify this, since it is done dynamically and automatically.",
@@ -74,7 +72,6 @@
74
72
  },
75
73
  "post": {
76
74
  "options": {"collapsed": true},
77
- "format": "table",
78
75
  "type": "array",
79
76
  "title": "Post breadcrumbs",
80
77
  "description": "The breadcrumb items for post pages.",
@@ -85,7 +82,7 @@
85
82
  },
86
83
  "links": [
87
84
  {
88
- "rel": "More information",
85
+ "rel": "More information on the breadcrumbs setting",
89
86
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#breadcrumbs"
90
87
  }
91
88
  ]
@@ -111,7 +108,7 @@
111
108
  },
112
109
  "links": [
113
110
  {
114
- "rel": "More information",
111
+ "rel": "More information on the country setting",
115
112
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#country"
116
113
  }
117
114
  ]
@@ -125,7 +122,6 @@
125
122
  "layout": {
126
123
  "type": "string",
127
124
  "title": "Layout",
128
- "format": "choices",
129
125
  "enum": [
130
126
  "",
131
127
  "config-builder"
@@ -138,7 +134,13 @@
138
134
  },
139
135
  "description": "The layout to use for the configuration form pages."
140
136
  }
141
- }
137
+ },
138
+ "links": [
139
+ {
140
+ "rel": "More information on the create config forms setting",
141
+ "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#create_config_forms"
142
+ }
143
+ ]
142
144
  },
143
145
  "create_goals": {
144
146
  "options": {"collapsed": true},
@@ -149,7 +151,6 @@
149
151
  "layout": {
150
152
  "type": "string",
151
153
  "title": "Layout",
152
- "format": "choices",
153
154
  "enum": [
154
155
  "",
155
156
  "goal",
@@ -165,11 +166,29 @@
165
166
  ]
166
167
  },
167
168
  "description": "The layout to use for the goal pages."
169
+ },
170
+ "goals": {
171
+ "options": {"collapsed": true},
172
+ "type": "array",
173
+ "title": "Content per goal",
174
+ "description": "This setting can be used to enter details for each goal.",
175
+ "items": {
176
+ "type": "object",
177
+ "title": "Goal",
178
+ "properties": {
179
+ "content": {
180
+ "type": "string",
181
+ "title": "Content",
182
+ "format": "markdown",
183
+ "description": "Markdown content or a translation key for this goal."
184
+ }
185
+ }
186
+ }
168
187
  }
169
188
  },
170
189
  "links": [
171
190
  {
172
- "rel": "More information",
191
+ "rel": "More information on the create goals setting",
173
192
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#create_goals"
174
193
  }
175
194
  ]
@@ -183,7 +202,6 @@
183
202
  "layout": {
184
203
  "type": "string",
185
204
  "title": "Layout",
186
- "format": "choices",
187
205
  "enum": [
188
206
  "",
189
207
  "indicator"
@@ -199,14 +217,13 @@
199
217
  },
200
218
  "links": [
201
219
  {
202
- "rel": "More information",
220
+ "rel": "More information on the create indicators setting",
203
221
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#create_indicators"
204
222
  }
205
223
  ]
206
224
  },
207
225
  "create_pages": {
208
226
  "options": {"collapsed": true},
209
- "format": "table",
210
227
  "type": "array",
211
228
  "title": "Create pages",
212
229
  "description": "This setting can be used to automatically create the pages.",
@@ -240,14 +257,13 @@
240
257
  },
241
258
  "links": [
242
259
  {
243
- "rel": "More information",
260
+ "rel": "More information on the create pages setting",
244
261
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#create_pages"
245
262
  }
246
263
  ]
247
264
  },
248
265
  "custom_css": {
249
266
  "options": {"collapsed": true},
250
- "format": "table",
251
267
  "type": "array",
252
268
  "title": "Custom CSS files",
253
269
  "description": "Deprecated: instead of using this, it is recommended to put custom CSS in a _sass/custom.scss file.",
@@ -257,14 +273,13 @@
257
273
  },
258
274
  "links": [
259
275
  {
260
- "rel": "More information",
276
+ "rel": "More information on the custom CSS setting",
261
277
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#custom_css"
262
278
  }
263
279
  ]
264
280
  },
265
281
  "custom_js": {
266
282
  "options": {"collapsed": true},
267
- "format": "table",
268
283
  "type": "array",
269
284
  "title": "Custom JavaScript files",
270
285
  "description": "This setting can be used to load additional JavaScript files on each page.",
@@ -274,7 +289,7 @@
274
289
  },
275
290
  "links": [
276
291
  {
277
- "rel": "More information",
292
+ "rel": "More information on the custom JS setting",
278
293
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#custom_js"
279
294
  }
280
295
  ]
@@ -286,14 +301,13 @@
286
301
  "description": "This setting controls the URL of the 'Edit Data' buttons that appear on the staging site's indicator pages.",
287
302
  "links": [
288
303
  {
289
- "rel": "More information",
304
+ "rel": "More information on the data edit URL setting",
290
305
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#data_edit_url"
291
306
  }
292
307
  ]
293
308
  },
294
309
  "date_formats": {
295
310
  "options": {"collapsed": true},
296
- "format": "table",
297
311
  "type": "array",
298
312
  "title": "Date formats",
299
313
  "description": "This setting can be used to control date formats for use in the site, such as in the news/category/post layouts. Any number date formats can be entered, and each must have an arbitrary type, such as `standard`. Make sure that each type has a variant for each of your languages.",
@@ -323,7 +337,7 @@
323
337
  },
324
338
  "links": [
325
339
  {
326
- "rel": "More information",
340
+ "rel": "More information on the date formats setting",
327
341
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#date_formats"
328
342
  }
329
343
  ]
@@ -347,7 +361,7 @@
347
361
  },
348
362
  "links": [
349
363
  {
350
- "rel": "More information",
364
+ "rel": "More information on the disclaimer setting",
351
365
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#disclaimer"
352
366
  }
353
367
  ]
@@ -382,7 +396,7 @@
382
396
  },
383
397
  "links": [
384
398
  {
385
- "rel": "More information",
399
+ "rel": "More information on the email contacts setting",
386
400
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#email_contacts"
387
401
  }
388
402
  ]
@@ -392,11 +406,10 @@
392
406
  "minLength": 1,
393
407
  "title": "Environment",
394
408
  "description": "Which environment (staging or production) this configuration is for.",
395
- "format": "choices",
396
409
  "enum": ["staging", "production"],
397
410
  "links": [
398
411
  {
399
- "rel": "More information",
412
+ "rel": "More information on the environment setting",
400
413
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#environment"
401
414
  }
402
415
  ]
@@ -405,18 +418,16 @@
405
418
  "type": "string",
406
419
  "title": "Footer language toggle",
407
420
  "description": "This setting controls the type of language toggle to be used in the footer.",
408
- "format": "choices",
409
421
  "enum": ["none", "dropdown", "links"],
410
422
  "links": [
411
423
  {
412
- "rel": "More information",
424
+ "rel": "More information on the footer language toggle setting",
413
425
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#footer_language_toggle"
414
426
  }
415
427
  ]
416
428
  },
417
429
  "footer_menu": {
418
430
  "options": {"collapsed": true},
419
- "format": "table",
420
431
  "type": "array",
421
432
  "title": "Footer menu",
422
433
  "description": "The links to display in the footer menu.",
@@ -425,7 +436,7 @@
425
436
  },
426
437
  "links": [
427
438
  {
428
- "rel": "More information",
439
+ "rel": "More information on the footer menu setting",
429
440
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#footer_menu"
430
441
  }
431
442
  ]
@@ -475,7 +486,7 @@
475
486
  },
476
487
  "links": [
477
488
  {
478
- "rel": "More information",
489
+ "rel": "More information on the frontpage cards setting",
479
490
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_cards"
480
491
  }
481
492
  ]
@@ -488,7 +499,7 @@
488
499
  "$ref": "#/definitions/title_and_description",
489
500
  "links": [
490
501
  {
491
- "rel": "More information",
502
+ "rel": "More information on the frontpage goals grid setting",
492
503
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_goals_grid"
493
504
  }
494
505
  ]
@@ -499,7 +510,7 @@
499
510
  "description": "This setting can control the heading that appears on the front page. This setting is only used in the frontpage layout.",
500
511
  "links": [
501
512
  {
502
- "rel": "More information",
513
+ "rel": "More information on the frontpage heading setting",
503
514
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_heading"
504
515
  }
505
516
  ]
@@ -510,7 +521,7 @@
510
521
  "description": "This setting can control the instructions that appear on the front page. This setting is only used in the frontpage layout.",
511
522
  "links": [
512
523
  {
513
- "rel": "More information",
524
+ "rel": "More information on the frontpage instructions setting",
514
525
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_instructions"
515
526
  }
516
527
  ]
@@ -523,7 +534,7 @@
523
534
  "$ref": "#/definitions/title_and_description",
524
535
  "links": [
525
536
  {
526
- "rel": "More information",
537
+ "rel": "More information on the frontpage introduction banner setting",
527
538
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_introduction_banner"
528
539
  }
529
540
  ]
@@ -535,7 +546,7 @@
535
546
  "description": "This setting controls the base URL for downloading the imagery for the goals.",
536
547
  "links": [
537
548
  {
538
- "rel": "More information",
549
+ "rel": "More information on the goal image base setting",
539
550
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#goal_image_base"
540
551
  }
541
552
  ]
@@ -546,7 +557,7 @@
546
557
  "description": "This setting controls the type of file (the file extension) that will be used for the goal images.",
547
558
  "links": [
548
559
  {
549
- "rel": "More information",
560
+ "rel": "More information on the goal image extension setting",
550
561
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#goal_image_extension"
551
562
  }
552
563
  ]
@@ -559,7 +570,7 @@
559
570
  "$ref": "#/definitions/title_and_description",
560
571
  "links": [
561
572
  {
562
- "rel": "More information",
573
+ "rel": "More information on the goals page setting",
563
574
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#goals_page"
564
575
  }
565
576
  ]
@@ -569,18 +580,16 @@
569
580
  "title": "Graph color set",
570
581
  "description": "This setting can be used to customize the color set used in the charts.",
571
582
  "examples": [],
572
- "format": "choices",
573
583
  "enum": ["default", "sdg", "goal", "custom"],
574
584
  "links": [
575
585
  {
576
- "rel": "More information",
586
+ "rel": "More information on the graph color set setting",
577
587
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#graph_color_set"
578
588
  }
579
589
  ]
580
590
  },
581
591
  "graph_color_list": {
582
592
  "options": {"collapsed": true},
583
- "format": "table",
584
593
  "type": "array",
585
594
  "title": "Graph color list",
586
595
  "description": "This setting can be used to define a set of colors to be used in the charts. This is only used when graph_color_set is 'custom'.",
@@ -592,7 +601,7 @@
592
601
  },
593
602
  "links": [
594
603
  {
595
- "rel": "More information",
604
+ "rel": "More information on the graph color list setting",
596
605
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#graph_color_list"
597
606
  }
598
607
  ]
@@ -603,7 +612,7 @@
603
612
  "description": "This setting can be used to limit the length of the list of colors selected via graph_color_set.",
604
613
  "links": [
605
614
  {
606
- "rel": "More information",
615
+ "rel": "More information on the graph color number setting",
607
616
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#graph_color_number"
608
617
  }
609
618
  ]
@@ -612,11 +621,10 @@
612
621
  "type": "string",
613
622
  "title": "Header language toggle",
614
623
  "description": "This setting controls the type of language toggle to be used in the header.",
615
- "format": "choices",
616
624
  "enum": ["none", "dropdown", "links"],
617
625
  "links": [
618
626
  {
619
- "rel": "More information",
627
+ "rel": "More information on the header language toggle setting",
620
628
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#header_language_toggle"
621
629
  }
622
630
  ]
@@ -628,7 +636,7 @@
628
636
  "format": "checkbox",
629
637
  "links": [
630
638
  {
631
- "rel": "More information",
639
+ "rel": "More information on the hide empty metadata setting",
632
640
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#hide_empty_metadata"
633
641
  }
634
642
  ]
@@ -642,7 +650,6 @@
642
650
  },
643
651
  "languages": {
644
652
  "options": {"collapsed": true},
645
- "format": "table",
646
653
  "type": "array",
647
654
  "minItems": 1,
648
655
  "title": "Languages",
@@ -654,14 +661,13 @@
654
661
  },
655
662
  "links": [
656
663
  {
657
- "rel": "More information",
664
+ "rel": "More information on the languages setting",
658
665
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#languages"
659
666
  }
660
667
  ]
661
668
  },
662
669
  "languages_public": {
663
670
  "options": {"collapsed": true},
664
- "format": "table",
665
671
  "type": "array",
666
672
  "title": "Language code overrides",
667
673
  "description": "This setting can be used if you are not happy with any of the standard language codes.",
@@ -685,14 +691,13 @@
685
691
  },
686
692
  "links": [
687
693
  {
688
- "rel": "More information",
694
+ "rel": "More information on the language override setting",
689
695
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#languages_public"
690
696
  }
691
697
  ]
692
698
  },
693
699
  "map_layers": {
694
700
  "options": {"collapsed": true},
695
- "format": "table",
696
701
  "type": "array",
697
702
  "title": "Map layers",
698
703
  "description": "Configure any number of layers to display on all indicator maps. A minimum of one layer is required to display maps.",
@@ -730,7 +735,7 @@
730
735
  },
731
736
  "links": [
732
737
  {
733
- "rel": "More information",
738
+ "rel": "More information on the map layers setting",
734
739
  "href": "https://open-sdg.readthedocs.io/en/latest/maps/#map_layers"
735
740
  }
736
741
  ]
@@ -740,41 +745,18 @@
740
745
  "type": "object",
741
746
  "title": "Map options",
742
747
  "description": "Site-wide configuration of map behavior and style.",
743
- "default": {
744
- "minZoom": 5,
745
- "maxZoom": 10,
746
- "colorRange": "chroma.brewer.BuGn",
747
- "noValueColor": "#f0f0f0",
748
- "styleNormal": {
749
- "weight": 1,
750
- "opacity": 1,
751
- "fillOpacity": 0.7,
752
- "color": "#888888"
753
- },
754
- "styleHighlighted": {
755
- "weight": 1,
756
- "opacity": 1,
757
- "fillOpacity": 0.7,
758
- "color": "#111111"
759
- },
760
- "styleStatic": {
761
- "weight": 2,
762
- "opacity": 1,
763
- "fillOpacity": 0,
764
- "color": "#172d44",
765
- "dashArray": "5,5"
766
- }
767
- },
768
748
  "properties": {
769
749
  "minZoom": {
770
750
  "title": "Minimum zoom",
771
751
  "type": "integer",
772
- "description": "The lowest amount of 'zoom' possible for users."
752
+ "description": "The lowest amount of 'zoom' possible for users.",
753
+ "default": 5
773
754
  },
774
755
  "maxZoom": {
775
756
  "title": "Maximum zoom",
776
757
  "type": "integer",
777
- "description": "The highest amount of 'zoom' possible for users."
758
+ "description": "The highest amount of 'zoom' possible for users.",
759
+ "default": 10
778
760
  },
779
761
  "tileURL": {
780
762
  "title": "Tile URL",
@@ -806,9 +788,10 @@
806
788
  "type": "string",
807
789
  "title": "Color range",
808
790
  "description": "The color range for the choropleth map.",
791
+ "default": "chroma.brewer.BuGn",
809
792
  "links": [
810
793
  {
811
- "ref": "More information",
794
+ "ref": "More information on the color range setting",
812
795
  "href": "https://gka.github.io/chroma.js/#chroma-brewer"
813
796
  }
814
797
  ]
@@ -817,40 +800,56 @@
817
800
  "type": "string",
818
801
  "format": "color",
819
802
  "title": "No-value color",
820
- "description": "Color for boundaries that have no data."
803
+ "description": "Color for boundaries that have no data.",
804
+ "default": "#f0f0f0"
821
805
  },
822
806
  "styleNormal": {
823
807
  "type": "object",
824
- "format": "table",
825
808
  "title": "Style (normal)",
826
809
  "description": "Style for boundaries in normal state",
827
- "$ref": "#/definitions/map_style"
810
+ "$ref": "#/definitions/map_style",
811
+ "default": {
812
+ "weight": 1,
813
+ "opacity": 1,
814
+ "fillOpacity": 0.7,
815
+ "color": "#888888"
816
+ }
828
817
  },
829
818
  "styleHighlighted": {
830
819
  "type": "object",
831
- "format": "table",
832
820
  "title": "Style (highlighted)",
833
821
  "description": "Style for boundaries in highlighted state",
834
- "$ref": "#/definitions/map_style"
822
+ "$ref": "#/definitions/map_style",
823
+ "default": {
824
+ "weight": 1,
825
+ "opacity": 1,
826
+ "fillOpacity": 0.7,
827
+ "color": "#111111"
828
+ }
835
829
  },
836
830
  "styleStatic": {
837
831
  "type": "object",
838
- "format": "table",
839
832
  "title": "Style (static)",
840
833
  "description": "Style for boundaries in static state (map layers using the 'static boundaries' option).",
841
- "$ref": "#/definitions/map_style"
834
+ "$ref": "#/definitions/map_style",
835
+ "default": {
836
+ "weight": 2,
837
+ "opacity": 1,
838
+ "fillOpacity": 0,
839
+ "color": "#172d44",
840
+ "dashArray": "5,5"
841
+ }
842
842
  }
843
843
  },
844
844
  "links": [
845
845
  {
846
- "rel": "More information",
846
+ "rel": "More information on the map options setting",
847
847
  "href": "https://open-sdg.readthedocs.io/en/latest/maps/#map_options"
848
848
  }
849
849
  ]
850
850
  },
851
851
  "menu": {
852
852
  "options": {"collapsed": true},
853
- "format": "table",
854
853
  "type": "array",
855
854
  "minItems": 1,
856
855
  "title": "Main menu",
@@ -860,7 +859,7 @@
860
859
  },
861
860
  "links": [
862
861
  {
863
- "rel": "More information",
862
+ "rel": "More information on the menu setting",
864
863
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#menu"
865
864
  }
866
865
  ]
@@ -872,14 +871,13 @@
872
871
  "description": "This setting controls the URL of the 'Edit Metadata' buttons that appear on the staging site's indicator pages.",
873
872
  "links": [
874
873
  {
875
- "rel": "More information",
874
+ "rel": "More information on the metadata edit URL setting",
876
875
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#metadata_edit_url"
877
876
  }
878
877
  ]
879
878
  },
880
879
  "metadata_tabs": {
881
880
  "options": {"collapsed": true},
882
- "format": "table",
883
881
  "type": "array",
884
882
  "title": "Metadata tabs",
885
883
  "description": "This setting can control the metadata tabs which appear on the indicator pages.",
@@ -909,7 +907,7 @@
909
907
  },
910
908
  "links": [
911
909
  {
912
- "rel": "More information",
910
+ "rel": "More information on the metadata tabs setting",
913
911
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#metadata_tabs"
914
912
  }
915
913
  ]
@@ -929,7 +927,7 @@
929
927
  },
930
928
  "links": [
931
929
  {
932
- "rel": "More information",
930
+ "rel": "More information on the news setting",
933
931
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#news"
934
932
  }
935
933
  ]
@@ -940,7 +938,7 @@
940
938
  "description": "This setting can be used to control the text of the tab containing non-global metadata.",
941
939
  "links": [
942
940
  {
943
- "rel": "More information",
941
+ "rel": "More information on the non-global metadata setting",
944
942
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#non_global_metadata"
945
943
  }
946
944
  ]
@@ -952,7 +950,7 @@
952
950
  "description": "Specify the URL of your published data repository.",
953
951
  "links": [
954
952
  {
955
- "rel": "More information",
953
+ "rel": "More information on the remote data prefix setting",
956
954
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#remote_data_prefix"
957
955
  }
958
956
  ]
@@ -962,17 +960,28 @@
962
960
  "type": "object",
963
961
  "title": "Reporting status",
964
962
  "description": "This setting is used in the 'reportingstatus' layout. It can display a title and description above the reporting status page.",
965
- "$ref": "#/definitions/title_and_description",
963
+ "allOf": [
964
+ { "$ref": "#/definitions/title_and_description" },
965
+ {
966
+ "properties": {
967
+ "disaggregation_tabs": {
968
+ "title": "Disaggregation tabs",
969
+ "type": "boolean",
970
+ "description": "Whether or not to display disaggregation status tabs. If you enable this setting, you should also use 'expected_disaggregations' in your indicator configuration, in order to provide the disaggregation status report with useful metrics.",
971
+ "format": "checkbox"
972
+ }
973
+ }
974
+ }
975
+ ],
966
976
  "links": [
967
977
  {
968
- "rel": "More information",
978
+ "rel": "More information on the reporting status setting",
969
979
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#reporting_status"
970
980
  }
971
981
  ]
972
982
  },
973
983
  "search_index_boost": {
974
984
  "options": {"collapsed": true},
975
- "format": "table",
976
985
  "type": "array",
977
986
  "title": "Search index boost",
978
987
  "description": "This setting can be used to give a boost to one or more fields in the search index.",
@@ -996,14 +1005,13 @@
996
1005
  },
997
1006
  "links": [
998
1007
  {
999
- "rel": "More information",
1008
+ "rel": "More information on the search index boost setting",
1000
1009
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#search_index_boost"
1001
1010
  }
1002
1011
  ]
1003
1012
  },
1004
1013
  "search_index_extra_fields": {
1005
1014
  "options": {"collapsed": true},
1006
- "format": "table",
1007
1015
  "type": "array",
1008
1016
  "title": "Search index extra fields",
1009
1017
  "description": "This setting can be used to index additional metadata fields in your indicators, for the purposes of affecting the site-wide search.",
@@ -1013,7 +1021,7 @@
1013
1021
  },
1014
1022
  "links": [
1015
1023
  {
1016
- "rel": "More information",
1024
+ "rel": "More information on the search index extra fields setting",
1017
1025
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#search_index_extra_fields"
1018
1026
  }
1019
1027
  ]
@@ -1025,7 +1033,7 @@
1025
1033
  "format": "checkbox",
1026
1034
  "links": [
1027
1035
  {
1028
- "rel": "More information",
1036
+ "rel": "More information on the series toggle setting",
1029
1037
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#series_toggle"
1030
1038
  }
1031
1039
  ]
@@ -1036,7 +1044,7 @@
1036
1044
  "description": "This setting creates a ShareThis widget along the left side of every page. It should be the property id for your ShareThis account.",
1037
1045
  "links": [
1038
1046
  {
1039
- "rel": "More information",
1047
+ "rel": "More information on the sharethis setting",
1040
1048
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#sharethis_property"
1041
1049
  }
1042
1050
  ]
@@ -1055,7 +1063,7 @@
1055
1063
  "format": "checkbox",
1056
1064
  "links": [
1057
1065
  {
1058
- "rel": "More information",
1066
+ "rel": "More information on the validate indicator config setting",
1059
1067
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#validate_indicator_config"
1060
1068
  }
1061
1069
  ]
@@ -1067,7 +1075,7 @@
1067
1075
  "format": "checkbox",
1068
1076
  "links": [
1069
1077
  {
1070
- "rel": "More information",
1078
+ "rel": "More information on the validate site config setting",
1071
1079
  "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#validate_site_config"
1072
1080
  }
1073
1081
  ]
@@ -1116,12 +1124,10 @@
1116
1124
  "properties": {
1117
1125
  "title": {
1118
1126
  "type": "string",
1119
- "minLength": 1,
1120
1127
  "title": "Title"
1121
1128
  },
1122
1129
  "description": {
1123
1130
  "type": "string",
1124
- "minLength": 1,
1125
1131
  "title": "Description",
1126
1132
  "format": "markdown"
1127
1133
  }
@@ -1166,7 +1172,6 @@
1166
1172
  "description": "Set options for any dropdown lists.",
1167
1173
  "items": {
1168
1174
  "type": "object",
1169
- "format": "table",
1170
1175
  "title": "Dropdown list",
1171
1176
  "properties": {
1172
1177
  "jsonschema": {
@@ -1176,7 +1181,6 @@
1176
1181
  },
1177
1182
  "values": {
1178
1183
  "type": "array",
1179
- "format": "table",
1180
1184
  "title": "Values",
1181
1185
  "description": "List of dropdown option values",
1182
1186
  "items": {
@@ -1186,7 +1190,6 @@
1186
1190
  },
1187
1191
  "labels": {
1188
1192
  "type": "array",
1189
- "format": "table",
1190
1193
  "title": "Labels",
1191
1194
  "description": "Optional list of dropdown option labels. Should correspond to the values above.",
1192
1195
  "items": {
@@ -170,7 +170,7 @@ module JekyllOpenSdgPlugins
170
170
  goal_image_base = site.config['goal_image_base']
171
171
  end
172
172
  goal_image_extension = 'png'
173
- if site.config.has_key? 'goal_image_extension'
173
+ if site.config.has_key?('goal_image_extension') && site.config['goal_image_extension'] != ''
174
174
  goal_image_extension = site.config['goal_image_extension']
175
175
  end
176
176
 
@@ -347,7 +347,7 @@ module JekyllOpenSdgPlugins
347
347
  doc.data['t'] = site.data['translations'][language]
348
348
 
349
349
  # Set the remote_data_prefix for this page.
350
- if site.config.has_key? 'remote_data_prefix' && opensdg_is_path_remote(site.config['remote_data_prefix'])
350
+ if site.config.has_key?('remote_data_prefix') && opensdg_is_path_remote(site.config['remote_data_prefix'])
351
351
  doc.data['remote_data_prefix'] = site.config['remote_data_prefix']
352
352
  else
353
353
  doc.data['remote_data_prefix'] = normalize_baseurl(baseurl)
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "1.2.0-beta2".freeze
2
+ VERSION = "1.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-open-sdg-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.pre.beta2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brock Fanning
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-10 00:00:00.000000000 Z
11
+ date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -100,9 +100,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ">"
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: 1.3.1
105
+ version: '0'
106
106
  requirements: []
107
107
  rubygems_version: 3.1.4
108
108
  signing_key: