jekyll-open-sdg-plugins 1.2.0.pre.beta3 → 1.3.0.pre.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jekyll-open-sdg-plugins/create_goals.rb +11 -0
- data/lib/jekyll-open-sdg-plugins/create_indicators.rb +12 -3
- data/lib/jekyll-open-sdg-plugins/create_pages.rb +1 -1
- data/lib/jekyll-open-sdg-plugins/schema-indicator-config.json +87 -33
- data/lib/jekyll-open-sdg-plugins/schema-site-config.json +198 -114
- data/lib/jekyll-open-sdg-plugins/sdg_variables.rb +44 -7
- data/lib/jekyll-open-sdg-plugins/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1579412cd0fc422e1af1ee418f9dcf89d10a8491ff0ce362c269ca49ad3b8f9d
|
4
|
+
data.tar.gz: c67a8ba97b93d0264e28f9cd764cd90f6a7db755ad10e1e5823a1cd4a25b927d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a40b3a54553c73cc1ff3a560310f97e709b94be07c1b539ed92b0423803ba628454484b3910dc62b4175463fd520c7cd4c5a90c9f051cb6fde6bf6842c6f2a
|
7
|
+
data.tar.gz: d556a58a95a4627a25d947c8dd66470b3f3a580f56baa3c86da25b2b82499a5913a4ef3ec42083676cf7b7e3dffd2f8c9b944a8499e9492ab00a64d6ab0d1191
|
@@ -23,6 +23,9 @@ module JekyllOpenSdgPlugins
|
|
23
23
|
metadata = site.data['meta']
|
24
24
|
end
|
25
25
|
metadata.each do |inid, indicator|
|
26
|
+
if indicator.has_key?('standalone') and indicator['standalone']
|
27
|
+
next
|
28
|
+
end
|
26
29
|
goal = inid.split('-')[0].to_i
|
27
30
|
goals[goal] = true
|
28
31
|
end
|
@@ -60,6 +63,14 @@ module JekyllOpenSdgPlugins
|
|
60
63
|
@dir = dir
|
61
64
|
@name = 'index.html'
|
62
65
|
|
66
|
+
goal_content = ''
|
67
|
+
if site.config['create_goals'].has_key?('goals')
|
68
|
+
if !site.config['create_goals']['goals'][goal - 1].nil?
|
69
|
+
goal_content = site.config['create_goals']['goals'][goal - 1]['content']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
@content = goal_content
|
73
|
+
|
63
74
|
self.process(@name)
|
64
75
|
self.data = {}
|
65
76
|
self.data['goal_number'] = goal.to_s
|
@@ -34,8 +34,13 @@ module JekyllOpenSdgPlugins
|
|
34
34
|
end
|
35
35
|
# Loop through the indicators (using metadata as a list).
|
36
36
|
metadata.each do |inid, meta|
|
37
|
+
permalink = inid
|
38
|
+
if meta.has_key?('permalink') and meta['permalink'] != ''
|
39
|
+
permalink = meta['permalink']
|
40
|
+
end
|
37
41
|
# Add the language subfolder for all except the default (first) language.
|
38
|
-
dir = index == 0 ?
|
42
|
+
dir = index == 0 ? permalink : File.join(language_public, permalink)
|
43
|
+
|
39
44
|
# Create the indicator page.
|
40
45
|
site.collections['indicators'].docs << IndicatorPage.new(site, site.source, dir, inid, language, layout)
|
41
46
|
end
|
@@ -64,9 +69,13 @@ module JekyllOpenSdgPlugins
|
|
64
69
|
language_public = languages_public[language]
|
65
70
|
end
|
66
71
|
metadata.each do |inid, meta|
|
67
|
-
|
72
|
+
permalink = inid
|
73
|
+
if meta.has_key?('permalink') and meta['permalink'] != ''
|
74
|
+
permalink = meta['permalink']
|
75
|
+
end
|
76
|
+
dir = File.join('config', permalink)
|
68
77
|
if index != 0
|
69
|
-
dir = File.join(language_public, 'config',
|
78
|
+
dir = File.join(language_public, 'config', permalink)
|
70
79
|
end
|
71
80
|
site.collections['pages'].docs << IndicatorConfigPage.new(site, site.source, dir, inid, language, meta, layout)
|
72
81
|
end
|
@@ -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
|
|
@@ -3,13 +3,24 @@
|
|
3
3
|
"title": "Open SDG indicator configuration",
|
4
4
|
"description": "This form will produce an indicator's configuration for your Open SDG implementation.",
|
5
5
|
"properties": {
|
6
|
+
"composite_breakdown_label": {
|
7
|
+
"type": "string",
|
8
|
+
"title": "Composite breakdown label",
|
9
|
+
"description": "Used as a label for the COMPOSITE_BREAKDOWN column, if it appears in the indicator data.",
|
10
|
+
"links": [
|
11
|
+
{
|
12
|
+
"rel": "More information on the composite breakdown label setting",
|
13
|
+
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#composite-breakdown-label"
|
14
|
+
}
|
15
|
+
]
|
16
|
+
},
|
6
17
|
"computation_units": {
|
7
18
|
"type": "string",
|
8
19
|
"title": "Unit of measurement",
|
9
20
|
"description": "Unit of measurement which displays below the indicator chart.",
|
10
21
|
"links": [
|
11
22
|
{
|
12
|
-
"rel": "More information",
|
23
|
+
"rel": "More information on the units of measurement setting",
|
13
24
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#recommended-special-fields"
|
14
25
|
}
|
15
26
|
]
|
@@ -20,7 +31,7 @@
|
|
20
31
|
"description": "Copyright which displays below the indicator chart.",
|
21
32
|
"links": [
|
22
33
|
{
|
23
|
-
"rel": "More information",
|
34
|
+
"rel": "More information on the copyright setting",
|
24
35
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#footer"
|
25
36
|
}
|
26
37
|
]
|
@@ -32,7 +43,7 @@
|
|
32
43
|
"description": "Footnote which displays below the indicator chart.",
|
33
44
|
"links": [
|
34
45
|
{
|
35
|
-
"rel": "More information",
|
46
|
+
"rel": "More information on the footnote setting",
|
36
47
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#footer"
|
37
48
|
}
|
38
49
|
]
|
@@ -44,7 +55,7 @@
|
|
44
55
|
"format": "checkbox",
|
45
56
|
"links": [
|
46
57
|
{
|
47
|
-
"rel": "More information",
|
58
|
+
"rel": "More information the non-statistical setting",
|
48
59
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-fields"
|
49
60
|
}
|
50
61
|
]
|
@@ -55,7 +66,7 @@
|
|
55
66
|
"description": "A CSS class to apply to the data notice for this indicator.",
|
56
67
|
"links": [
|
57
68
|
{
|
58
|
-
"rel": "More information",
|
69
|
+
"rel": "More information on the data notice setting",
|
59
70
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#data-notice"
|
60
71
|
}
|
61
72
|
]
|
@@ -66,7 +77,7 @@
|
|
66
77
|
"description": "A title to display above the data notice for this indicator.",
|
67
78
|
"links": [
|
68
79
|
{
|
69
|
-
"rel": "More information",
|
80
|
+
"rel": "More information on the data notice heading setting",
|
70
81
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#data-notice"
|
71
82
|
}
|
72
83
|
]
|
@@ -78,7 +89,7 @@
|
|
78
89
|
"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
90
|
"links": [
|
80
91
|
{
|
81
|
-
"rel": "More information",
|
92
|
+
"rel": "More information on the data notice text setting",
|
82
93
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#data-notice"
|
83
94
|
}
|
84
95
|
]
|
@@ -90,14 +101,13 @@
|
|
90
101
|
"format": "checkbox",
|
91
102
|
"links": [
|
92
103
|
{
|
93
|
-
"rel": "More information",
|
104
|
+
"rel": "More information on the map setting",
|
94
105
|
"href": "https://open-sdg.readthedocs.io/en/latest/maps/#metadata-field-data_show_map"
|
95
106
|
}
|
96
107
|
]
|
97
108
|
},
|
98
109
|
"data_start_values": {
|
99
110
|
"options": {"collapsed": true},
|
100
|
-
"format": "table",
|
101
111
|
"type": "array",
|
102
112
|
"title": "Starting values",
|
103
113
|
"description": "Disaggregation values for a an indicator to start with already selected",
|
@@ -121,7 +131,7 @@
|
|
121
131
|
},
|
122
132
|
"links": [
|
123
133
|
{
|
124
|
-
"rel": "More information",
|
134
|
+
"rel": "More information on the starting values setting",
|
125
135
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#starting-values"
|
126
136
|
}
|
127
137
|
]
|
@@ -133,7 +143,7 @@
|
|
133
143
|
"description": "A footer that displays below the embedded feature. Only used with either embedded_feature_url or embedded_feature_html.",
|
134
144
|
"links": [
|
135
145
|
{
|
136
|
-
"rel": "More information",
|
146
|
+
"rel": "More information on the embed footer setting",
|
137
147
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
|
138
148
|
}
|
139
149
|
]
|
@@ -145,7 +155,7 @@
|
|
145
155
|
"description": "Any HTML to display in another tab, after Chart/Table/etc.",
|
146
156
|
"links": [
|
147
157
|
{
|
148
|
-
"rel": "More information",
|
158
|
+
"rel": "More information on the embed HTML setting",
|
149
159
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
|
150
160
|
}
|
151
161
|
]
|
@@ -156,7 +166,7 @@
|
|
156
166
|
"description": "A title for the embedded feature tab (ie, Chart/Table/[this]). Only used with either embedded_feature_url or embedded_feature_html.",
|
157
167
|
"links": [
|
158
168
|
{
|
159
|
-
"rel": "More information",
|
169
|
+
"rel": "More information on the embed tab title setting",
|
160
170
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
|
161
171
|
}
|
162
172
|
]
|
@@ -167,7 +177,7 @@
|
|
167
177
|
"description": "A title that displays above the embedded feature. Only used with either embedded_feature_url or embedded_feature_html.",
|
168
178
|
"links": [
|
169
179
|
{
|
170
|
-
"rel": "More information",
|
180
|
+
"rel": "More information on the embed title setting",
|
171
181
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
|
172
182
|
}
|
173
183
|
]
|
@@ -179,11 +189,27 @@
|
|
179
189
|
"description": "Any URL to display as an iframe in another tab, after Chart/Table/etc.",
|
180
190
|
"links": [
|
181
191
|
{
|
182
|
-
"rel": "More information",
|
192
|
+
"rel": "More information on the embed URL setting",
|
183
193
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#embedded-feature-metadata"
|
184
194
|
}
|
185
195
|
]
|
186
196
|
},
|
197
|
+
"expected_disaggregations": {
|
198
|
+
"options": {"collapsed": true},
|
199
|
+
"type": "array",
|
200
|
+
"title": "Expected disaggregations",
|
201
|
+
"description": "An optional list of disaggregations (ie, data column names) to use when calculating the disaggregation status statistics.",
|
202
|
+
"items": {
|
203
|
+
"type": "string",
|
204
|
+
"title": "Expected disaggregation"
|
205
|
+
},
|
206
|
+
"links": [
|
207
|
+
{
|
208
|
+
"rel": "More information on the expected disaggregation setting",
|
209
|
+
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#recommended-special-fields"
|
210
|
+
}
|
211
|
+
]
|
212
|
+
},
|
187
213
|
"graph_annotations": {
|
188
214
|
"options": {"collapsed": true},
|
189
215
|
"type": "array",
|
@@ -195,7 +221,6 @@
|
|
195
221
|
"properties": {
|
196
222
|
"preset": {
|
197
223
|
"type": "string",
|
198
|
-
"format": "choices",
|
199
224
|
"title": "Preset",
|
200
225
|
"enum": ["target_line"],
|
201
226
|
"description": "A preset bundle of configurations."
|
@@ -239,7 +264,7 @@
|
|
239
264
|
"description": "The color of the line.",
|
240
265
|
"links": [
|
241
266
|
{
|
242
|
-
"rel": "More information",
|
267
|
+
"rel": "More information on the border color setting",
|
243
268
|
"href": "https://github.com/chartjs/chartjs-plugin-annotation/blob/master/README.md"
|
244
269
|
}
|
245
270
|
]
|
@@ -250,7 +275,7 @@
|
|
250
275
|
"description": "The type of line dash.",
|
251
276
|
"links": [
|
252
277
|
{
|
253
|
-
"rel": "More information",
|
278
|
+
"rel": "More information on the line dash setting",
|
254
279
|
"href": "https://github.com/chartjs/chartjs-plugin-annotation/blob/master/README.md"
|
255
280
|
}
|
256
281
|
]
|
@@ -332,14 +357,13 @@
|
|
332
357
|
},
|
333
358
|
"links": [
|
334
359
|
{
|
335
|
-
"rel": "More information",
|
360
|
+
"rel": "More information on the graph annotations setting",
|
336
361
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#graph-metadata"
|
337
362
|
}
|
338
363
|
]
|
339
364
|
},
|
340
365
|
"graph_limits": {
|
341
366
|
"options": {"collapsed": true},
|
342
|
-
"format": "table",
|
343
367
|
"type": "array",
|
344
368
|
"title": "Graph limits",
|
345
369
|
"description": "A list of min/max limits controlling the lowest/highest values to be shown on the y-axis.",
|
@@ -373,7 +397,7 @@
|
|
373
397
|
},
|
374
398
|
"links": [
|
375
399
|
{
|
376
|
-
"rel": "More information",
|
400
|
+
"rel": "More information on the graph limits setting",
|
377
401
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#graph-metadata"
|
378
402
|
}
|
379
403
|
]
|
@@ -384,7 +408,7 @@
|
|
384
408
|
"description": "This can be used with the bar graph type to place a certain disaggregation into the same stacked bars.",
|
385
409
|
"links": [
|
386
410
|
{
|
387
|
-
"rel": "More information",
|
411
|
+
"rel": "More information on the stacked disaggregation setting",
|
388
412
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#recommended-special-fields"
|
389
413
|
}
|
390
414
|
]
|
@@ -395,14 +419,13 @@
|
|
395
419
|
"description": "The title that displays above the graph/chart.",
|
396
420
|
"links": [
|
397
421
|
{
|
398
|
-
"rel": "More information",
|
422
|
+
"rel": "More information on the graph title setting",
|
399
423
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-for-statistical-indicators"
|
400
424
|
}
|
401
425
|
]
|
402
426
|
},
|
403
427
|
"graph_titles": {
|
404
428
|
"options": {"collapsed": true},
|
405
|
-
"format": "table",
|
406
429
|
"type": "array",
|
407
430
|
"title": "Graph titles",
|
408
431
|
"description": "As an alternative to `graph_title`, this can be used to set specific titles for particular units and/or series.",
|
@@ -431,13 +454,12 @@
|
|
431
454
|
},
|
432
455
|
"graph_type": {
|
433
456
|
"type": "string",
|
434
|
-
"format": "choices",
|
435
457
|
"title": "Graph type",
|
436
458
|
"description": "What type of graph to use for the indicator.",
|
437
459
|
"enum": ["line", "bar", "binary"],
|
438
460
|
"links": [
|
439
461
|
{
|
440
|
-
"rel": "More information",
|
462
|
+
"rel": "More information on the graph titles setting",
|
441
463
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-for-statistical-indicators"
|
442
464
|
}
|
443
465
|
]
|
@@ -448,7 +470,7 @@
|
|
448
470
|
"description": "The name for the indicator, which displays at the top of the indicator page.",
|
449
471
|
"links": [
|
450
472
|
{
|
451
|
-
"rel": "More information",
|
473
|
+
"rel": "More information on the indicator name setting",
|
452
474
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-fields"
|
453
475
|
}
|
454
476
|
]
|
@@ -459,7 +481,7 @@
|
|
459
481
|
"description": "The number (or 'id') for the indicator.",
|
460
482
|
"links": [
|
461
483
|
{
|
462
|
-
"rel": "More information",
|
484
|
+
"rel": "More information on the indicator number setting",
|
463
485
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-fields"
|
464
486
|
}
|
465
487
|
]
|
@@ -470,7 +492,7 @@
|
|
470
492
|
"description": "A label used in the absence of any disaggregation.",
|
471
493
|
"links": [
|
472
494
|
{
|
473
|
-
"rel": "More information",
|
495
|
+
"rel": "More information on the geographical coverage setting",
|
474
496
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-for-statistical-indicators"
|
475
497
|
}
|
476
498
|
]
|
@@ -481,22 +503,54 @@
|
|
481
503
|
"title": "Page content",
|
482
504
|
"description": "Content which displays in the main content area of the indicator page."
|
483
505
|
},
|
506
|
+
"permalink": {
|
507
|
+
"type": "string",
|
508
|
+
"title": "Permalink",
|
509
|
+
"description": "Overrides the normal path of the indicator page. Not recommended, execpt for 'standalone' indicators.",
|
510
|
+
"links": [
|
511
|
+
{
|
512
|
+
"rel": "More information the permalink setting",
|
513
|
+
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#standalone-indicators"
|
514
|
+
}
|
515
|
+
]
|
516
|
+
},
|
484
517
|
"reporting_status": {
|
485
518
|
"type": "string",
|
486
|
-
"format": "choices",
|
487
519
|
"title": "Reporting status",
|
488
520
|
"enum": ["complete", "inprogress", "notstarted", "notapplicable"],
|
489
521
|
"description": "The status of the indicator.",
|
490
522
|
"links": [
|
491
523
|
{
|
492
|
-
"rel": "More information",
|
524
|
+
"rel": "More information on the reporting status setting",
|
493
525
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#mandatory-fields"
|
494
526
|
}
|
495
527
|
]
|
496
528
|
},
|
529
|
+
"sort": {
|
530
|
+
"type": "string",
|
531
|
+
"title": "Sort order",
|
532
|
+
"description": "Override the default order in which this indicator is displayed in lists. This can be left blank, and it will be automatically determined.",
|
533
|
+
"links": [
|
534
|
+
{
|
535
|
+
"rel": "More information on the sort setting",
|
536
|
+
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#sorting-in-lists"
|
537
|
+
}
|
538
|
+
]
|
539
|
+
},
|
540
|
+
"standalone": {
|
541
|
+
"title": "Standalone indicator",
|
542
|
+
"type": "boolean",
|
543
|
+
"description": "Whether the indicator is standalone (separate from the SDGs) or not.",
|
544
|
+
"format": "checkbox",
|
545
|
+
"links": [
|
546
|
+
{
|
547
|
+
"rel": "More information the standalone setting",
|
548
|
+
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#standalone-indicators"
|
549
|
+
}
|
550
|
+
]
|
551
|
+
},
|
497
552
|
"tags": {
|
498
553
|
"options": {"collapsed": true},
|
499
|
-
"format": "table",
|
500
554
|
"type": "array",
|
501
555
|
"title": "Tags",
|
502
556
|
"description": "An optional list of 'tags' to display under an indicator when it is listed on its goal page.",
|
@@ -506,7 +560,7 @@
|
|
506
560
|
},
|
507
561
|
"links": [
|
508
562
|
{
|
509
|
-
"rel": "More information",
|
563
|
+
"rel": "More information on the tags setting",
|
510
564
|
"href": "https://open-sdg.readthedocs.io/en/latest/metadata-format/#recommended-special-fields"
|
511
565
|
}
|
512
566
|
]
|
@@ -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,35 @@
|
|
165
166
|
]
|
166
167
|
},
|
167
168
|
"description": "The layout to use for the goal pages."
|
169
|
+
},
|
170
|
+
"previous_next_links": {
|
171
|
+
"title": "Previous/next links",
|
172
|
+
"type": "boolean",
|
173
|
+
"description": "This setting can be used to show navigation links to the previous/next goals.",
|
174
|
+
"format": "checkbox"
|
175
|
+
},
|
176
|
+
"goals": {
|
177
|
+
"options": {"collapsed": true},
|
178
|
+
"type": "array",
|
179
|
+
"title": "Content per goal",
|
180
|
+
"description": "This setting can be used to enter details for each goal.",
|
181
|
+
"items": {
|
182
|
+
"type": "object",
|
183
|
+
"title": "Goal",
|
184
|
+
"properties": {
|
185
|
+
"content": {
|
186
|
+
"type": "string",
|
187
|
+
"title": "Content",
|
188
|
+
"format": "markdown",
|
189
|
+
"description": "Markdown content or a translation key for this goal."
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
168
193
|
}
|
169
194
|
},
|
170
195
|
"links": [
|
171
196
|
{
|
172
|
-
"rel": "More information",
|
197
|
+
"rel": "More information on the create goals setting",
|
173
198
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#create_goals"
|
174
199
|
}
|
175
200
|
]
|
@@ -183,7 +208,6 @@
|
|
183
208
|
"layout": {
|
184
209
|
"type": "string",
|
185
210
|
"title": "Layout",
|
186
|
-
"format": "choices",
|
187
211
|
"enum": [
|
188
212
|
"",
|
189
213
|
"indicator"
|
@@ -195,18 +219,23 @@
|
|
195
219
|
]
|
196
220
|
},
|
197
221
|
"description": "The layout to use for the indicator pages."
|
222
|
+
},
|
223
|
+
"previous_next_links": {
|
224
|
+
"title": "Previous/next links",
|
225
|
+
"type": "boolean",
|
226
|
+
"description": "This setting can be used to show navigation links to the previous/next indicators.",
|
227
|
+
"format": "checkbox"
|
198
228
|
}
|
199
229
|
},
|
200
230
|
"links": [
|
201
231
|
{
|
202
|
-
"rel": "More information",
|
232
|
+
"rel": "More information on the create indicators setting",
|
203
233
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#create_indicators"
|
204
234
|
}
|
205
235
|
]
|
206
236
|
},
|
207
237
|
"create_pages": {
|
208
238
|
"options": {"collapsed": true},
|
209
|
-
"format": "table",
|
210
239
|
"type": "array",
|
211
240
|
"title": "Create pages",
|
212
241
|
"description": "This setting can be used to automatically create the pages.",
|
@@ -240,14 +269,13 @@
|
|
240
269
|
},
|
241
270
|
"links": [
|
242
271
|
{
|
243
|
-
"rel": "More information",
|
272
|
+
"rel": "More information on the create pages setting",
|
244
273
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#create_pages"
|
245
274
|
}
|
246
275
|
]
|
247
276
|
},
|
248
277
|
"custom_css": {
|
249
278
|
"options": {"collapsed": true},
|
250
|
-
"format": "table",
|
251
279
|
"type": "array",
|
252
280
|
"title": "Custom CSS files",
|
253
281
|
"description": "Deprecated: instead of using this, it is recommended to put custom CSS in a _sass/custom.scss file.",
|
@@ -257,14 +285,13 @@
|
|
257
285
|
},
|
258
286
|
"links": [
|
259
287
|
{
|
260
|
-
"rel": "More information",
|
288
|
+
"rel": "More information on the custom CSS setting",
|
261
289
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#custom_css"
|
262
290
|
}
|
263
291
|
]
|
264
292
|
},
|
265
293
|
"custom_js": {
|
266
294
|
"options": {"collapsed": true},
|
267
|
-
"format": "table",
|
268
295
|
"type": "array",
|
269
296
|
"title": "Custom JavaScript files",
|
270
297
|
"description": "This setting can be used to load additional JavaScript files on each page.",
|
@@ -274,7 +301,7 @@
|
|
274
301
|
},
|
275
302
|
"links": [
|
276
303
|
{
|
277
|
-
"rel": "More information",
|
304
|
+
"rel": "More information on the custom JS setting",
|
278
305
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#custom_js"
|
279
306
|
}
|
280
307
|
]
|
@@ -286,14 +313,37 @@
|
|
286
313
|
"description": "This setting controls the URL of the 'Edit Data' buttons that appear on the staging site's indicator pages.",
|
287
314
|
"links": [
|
288
315
|
{
|
289
|
-
"rel": "More information",
|
316
|
+
"rel": "More information on the data edit URL setting",
|
290
317
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#data_edit_url"
|
291
318
|
}
|
292
319
|
]
|
293
320
|
},
|
321
|
+
"data_fields": {
|
322
|
+
"options": {"collapsed": true},
|
323
|
+
"type": "object",
|
324
|
+
"title": "Data fields",
|
325
|
+
"description": "Control the names of fields used for special purposes in data.",
|
326
|
+
"properties": {
|
327
|
+
"units": {
|
328
|
+
"type": "string",
|
329
|
+
"title": "Units",
|
330
|
+
"description": "Field to reserve for units of measurement. Defaults to 'Units'."
|
331
|
+
},
|
332
|
+
"series": {
|
333
|
+
"type": "string",
|
334
|
+
"title": "Series",
|
335
|
+
"description": "Field to reserve for the SDG series. Defaults to 'Series'."
|
336
|
+
}
|
337
|
+
},
|
338
|
+
"links": [
|
339
|
+
{
|
340
|
+
"rel": "More information on the data fields setting",
|
341
|
+
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#data_fields"
|
342
|
+
}
|
343
|
+
]
|
344
|
+
},
|
294
345
|
"date_formats": {
|
295
346
|
"options": {"collapsed": true},
|
296
|
-
"format": "table",
|
297
347
|
"type": "array",
|
298
348
|
"title": "Date formats",
|
299
349
|
"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 +373,7 @@
|
|
323
373
|
},
|
324
374
|
"links": [
|
325
375
|
{
|
326
|
-
"rel": "More information",
|
376
|
+
"rel": "More information on the date formats setting",
|
327
377
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#date_formats"
|
328
378
|
}
|
329
379
|
]
|
@@ -347,7 +397,7 @@
|
|
347
397
|
},
|
348
398
|
"links": [
|
349
399
|
{
|
350
|
-
"rel": "More information",
|
400
|
+
"rel": "More information on the disclaimer setting",
|
351
401
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#disclaimer"
|
352
402
|
}
|
353
403
|
]
|
@@ -382,7 +432,7 @@
|
|
382
432
|
},
|
383
433
|
"links": [
|
384
434
|
{
|
385
|
-
"rel": "More information",
|
435
|
+
"rel": "More information on the email contacts setting",
|
386
436
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#email_contacts"
|
387
437
|
}
|
388
438
|
]
|
@@ -392,11 +442,10 @@
|
|
392
442
|
"minLength": 1,
|
393
443
|
"title": "Environment",
|
394
444
|
"description": "Which environment (staging or production) this configuration is for.",
|
395
|
-
"format": "choices",
|
396
445
|
"enum": ["staging", "production"],
|
397
446
|
"links": [
|
398
447
|
{
|
399
|
-
"rel": "More information",
|
448
|
+
"rel": "More information on the environment setting",
|
400
449
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#environment"
|
401
450
|
}
|
402
451
|
]
|
@@ -405,18 +454,16 @@
|
|
405
454
|
"type": "string",
|
406
455
|
"title": "Footer language toggle",
|
407
456
|
"description": "This setting controls the type of language toggle to be used in the footer.",
|
408
|
-
"format": "choices",
|
409
457
|
"enum": ["none", "dropdown", "links"],
|
410
458
|
"links": [
|
411
459
|
{
|
412
|
-
"rel": "More information",
|
460
|
+
"rel": "More information on the footer language toggle setting",
|
413
461
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#footer_language_toggle"
|
414
462
|
}
|
415
463
|
]
|
416
464
|
},
|
417
465
|
"footer_menu": {
|
418
466
|
"options": {"collapsed": true},
|
419
|
-
"format": "table",
|
420
467
|
"type": "array",
|
421
468
|
"title": "Footer menu",
|
422
469
|
"description": "The links to display in the footer menu.",
|
@@ -425,7 +472,7 @@
|
|
425
472
|
},
|
426
473
|
"links": [
|
427
474
|
{
|
428
|
-
"rel": "More information",
|
475
|
+
"rel": "More information on the footer menu setting",
|
429
476
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#footer_menu"
|
430
477
|
}
|
431
478
|
]
|
@@ -475,7 +522,7 @@
|
|
475
522
|
},
|
476
523
|
"links": [
|
477
524
|
{
|
478
|
-
"rel": "More information",
|
525
|
+
"rel": "More information on the frontpage cards setting",
|
479
526
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_cards"
|
480
527
|
}
|
481
528
|
]
|
@@ -488,7 +535,7 @@
|
|
488
535
|
"$ref": "#/definitions/title_and_description",
|
489
536
|
"links": [
|
490
537
|
{
|
491
|
-
"rel": "More information",
|
538
|
+
"rel": "More information on the frontpage goals grid setting",
|
492
539
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_goals_grid"
|
493
540
|
}
|
494
541
|
]
|
@@ -499,7 +546,7 @@
|
|
499
546
|
"description": "This setting can control the heading that appears on the front page. This setting is only used in the frontpage layout.",
|
500
547
|
"links": [
|
501
548
|
{
|
502
|
-
"rel": "More information",
|
549
|
+
"rel": "More information on the frontpage heading setting",
|
503
550
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_heading"
|
504
551
|
}
|
505
552
|
]
|
@@ -510,7 +557,7 @@
|
|
510
557
|
"description": "This setting can control the instructions that appear on the front page. This setting is only used in the frontpage layout.",
|
511
558
|
"links": [
|
512
559
|
{
|
513
|
-
"rel": "More information",
|
560
|
+
"rel": "More information on the frontpage instructions setting",
|
514
561
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_instructions"
|
515
562
|
}
|
516
563
|
]
|
@@ -523,7 +570,7 @@
|
|
523
570
|
"$ref": "#/definitions/title_and_description",
|
524
571
|
"links": [
|
525
572
|
{
|
526
|
-
"rel": "More information",
|
573
|
+
"rel": "More information on the frontpage introduction banner setting",
|
527
574
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#frontpage_introduction_banner"
|
528
575
|
}
|
529
576
|
]
|
@@ -535,7 +582,7 @@
|
|
535
582
|
"description": "This setting controls the base URL for downloading the imagery for the goals.",
|
536
583
|
"links": [
|
537
584
|
{
|
538
|
-
"rel": "More information",
|
585
|
+
"rel": "More information on the goal image base setting",
|
539
586
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#goal_image_base"
|
540
587
|
}
|
541
588
|
]
|
@@ -546,7 +593,7 @@
|
|
546
593
|
"description": "This setting controls the type of file (the file extension) that will be used for the goal images.",
|
547
594
|
"links": [
|
548
595
|
{
|
549
|
-
"rel": "More information",
|
596
|
+
"rel": "More information on the goal image extension setting",
|
550
597
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#goal_image_extension"
|
551
598
|
}
|
552
599
|
]
|
@@ -559,7 +606,7 @@
|
|
559
606
|
"$ref": "#/definitions/title_and_description",
|
560
607
|
"links": [
|
561
608
|
{
|
562
|
-
"rel": "More information",
|
609
|
+
"rel": "More information on the goals page setting",
|
563
610
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#goals_page"
|
564
611
|
}
|
565
612
|
]
|
@@ -569,18 +616,16 @@
|
|
569
616
|
"title": "Graph color set",
|
570
617
|
"description": "This setting can be used to customize the color set used in the charts.",
|
571
618
|
"examples": [],
|
572
|
-
"
|
573
|
-
"enum": ["default", "sdg", "goal", "custom"],
|
619
|
+
"enum": ["default", "accessible", "sdg", "goal", "custom"],
|
574
620
|
"links": [
|
575
621
|
{
|
576
|
-
"rel": "More information",
|
622
|
+
"rel": "More information on the graph color set setting",
|
577
623
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#graph_color_set"
|
578
624
|
}
|
579
625
|
]
|
580
626
|
},
|
581
627
|
"graph_color_list": {
|
582
628
|
"options": {"collapsed": true},
|
583
|
-
"format": "table",
|
584
629
|
"type": "array",
|
585
630
|
"title": "Graph color list",
|
586
631
|
"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 +637,7 @@
|
|
592
637
|
},
|
593
638
|
"links": [
|
594
639
|
{
|
595
|
-
"rel": "More information",
|
640
|
+
"rel": "More information on the graph color list setting",
|
596
641
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#graph_color_list"
|
597
642
|
}
|
598
643
|
]
|
@@ -603,20 +648,48 @@
|
|
603
648
|
"description": "This setting can be used to limit the length of the list of colors selected via graph_color_set.",
|
604
649
|
"links": [
|
605
650
|
{
|
606
|
-
"rel": "More information",
|
651
|
+
"rel": "More information on the graph color number setting",
|
607
652
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#graph_color_number"
|
608
653
|
}
|
609
654
|
]
|
610
655
|
},
|
656
|
+
"header": {
|
657
|
+
"options": {"collapsed": true},
|
658
|
+
"type": "object",
|
659
|
+
"title": "Header",
|
660
|
+
"description": "This setting can be used to customise the header.",
|
661
|
+
"properties": {
|
662
|
+
"include": {
|
663
|
+
"type": "string",
|
664
|
+
"title": "Include file",
|
665
|
+
"enum": [
|
666
|
+
"header-default.html",
|
667
|
+
"header-menu-left-aligned.html"
|
668
|
+
],
|
669
|
+
"options": {
|
670
|
+
"enum_titles": [
|
671
|
+
"Default header",
|
672
|
+
"Menu left-aligned"
|
673
|
+
]
|
674
|
+
},
|
675
|
+
"description": "The header style to use on all pages."
|
676
|
+
}
|
677
|
+
},
|
678
|
+
"links": [
|
679
|
+
{
|
680
|
+
"rel": "More information on the header setting",
|
681
|
+
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#header"
|
682
|
+
}
|
683
|
+
]
|
684
|
+
},
|
611
685
|
"header_language_toggle": {
|
612
686
|
"type": "string",
|
613
687
|
"title": "Header language toggle",
|
614
688
|
"description": "This setting controls the type of language toggle to be used in the header.",
|
615
|
-
"format": "choices",
|
616
689
|
"enum": ["none", "dropdown", "links"],
|
617
690
|
"links": [
|
618
691
|
{
|
619
|
-
"rel": "More information",
|
692
|
+
"rel": "More information on the header language toggle setting",
|
620
693
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#header_language_toggle"
|
621
694
|
}
|
622
695
|
]
|
@@ -628,7 +701,7 @@
|
|
628
701
|
"format": "checkbox",
|
629
702
|
"links": [
|
630
703
|
{
|
631
|
-
"rel": "More information",
|
704
|
+
"rel": "More information on the hide empty metadata setting",
|
632
705
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#hide_empty_metadata"
|
633
706
|
}
|
634
707
|
]
|
@@ -642,7 +715,6 @@
|
|
642
715
|
},
|
643
716
|
"languages": {
|
644
717
|
"options": {"collapsed": true},
|
645
|
-
"format": "table",
|
646
718
|
"type": "array",
|
647
719
|
"minItems": 1,
|
648
720
|
"title": "Languages",
|
@@ -654,14 +726,13 @@
|
|
654
726
|
},
|
655
727
|
"links": [
|
656
728
|
{
|
657
|
-
"rel": "More information",
|
729
|
+
"rel": "More information on the languages setting",
|
658
730
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#languages"
|
659
731
|
}
|
660
732
|
]
|
661
733
|
},
|
662
734
|
"languages_public": {
|
663
735
|
"options": {"collapsed": true},
|
664
|
-
"format": "table",
|
665
736
|
"type": "array",
|
666
737
|
"title": "Language code overrides",
|
667
738
|
"description": "This setting can be used if you are not happy with any of the standard language codes.",
|
@@ -685,14 +756,13 @@
|
|
685
756
|
},
|
686
757
|
"links": [
|
687
758
|
{
|
688
|
-
"rel": "More information",
|
759
|
+
"rel": "More information on the language override setting",
|
689
760
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#languages_public"
|
690
761
|
}
|
691
762
|
]
|
692
763
|
},
|
693
764
|
"map_layers": {
|
694
765
|
"options": {"collapsed": true},
|
695
|
-
"format": "table",
|
696
766
|
"type": "array",
|
697
767
|
"title": "Map layers",
|
698
768
|
"description": "Configure any number of layers to display on all indicator maps. A minimum of one layer is required to display maps.",
|
@@ -730,7 +800,7 @@
|
|
730
800
|
},
|
731
801
|
"links": [
|
732
802
|
{
|
733
|
-
"rel": "More information",
|
803
|
+
"rel": "More information on the map layers setting",
|
734
804
|
"href": "https://open-sdg.readthedocs.io/en/latest/maps/#map_layers"
|
735
805
|
}
|
736
806
|
]
|
@@ -740,41 +810,18 @@
|
|
740
810
|
"type": "object",
|
741
811
|
"title": "Map options",
|
742
812
|
"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
813
|
"properties": {
|
769
814
|
"minZoom": {
|
770
815
|
"title": "Minimum zoom",
|
771
816
|
"type": "integer",
|
772
|
-
"description": "The lowest amount of 'zoom' possible for users."
|
817
|
+
"description": "The lowest amount of 'zoom' possible for users.",
|
818
|
+
"default": 5
|
773
819
|
},
|
774
820
|
"maxZoom": {
|
775
821
|
"title": "Maximum zoom",
|
776
822
|
"type": "integer",
|
777
|
-
"description": "The highest amount of 'zoom' possible for users."
|
823
|
+
"description": "The highest amount of 'zoom' possible for users.",
|
824
|
+
"default": 10
|
778
825
|
},
|
779
826
|
"tileURL": {
|
780
827
|
"title": "Tile URL",
|
@@ -806,9 +853,10 @@
|
|
806
853
|
"type": "string",
|
807
854
|
"title": "Color range",
|
808
855
|
"description": "The color range for the choropleth map.",
|
856
|
+
"default": "chroma.brewer.BuGn",
|
809
857
|
"links": [
|
810
858
|
{
|
811
|
-
"ref": "More information",
|
859
|
+
"ref": "More information on the color range setting",
|
812
860
|
"href": "https://gka.github.io/chroma.js/#chroma-brewer"
|
813
861
|
}
|
814
862
|
]
|
@@ -817,50 +865,82 @@
|
|
817
865
|
"type": "string",
|
818
866
|
"format": "color",
|
819
867
|
"title": "No-value color",
|
820
|
-
"description": "Color for boundaries that have no data."
|
868
|
+
"description": "Color for boundaries that have no data.",
|
869
|
+
"default": "#f0f0f0"
|
821
870
|
},
|
822
871
|
"styleNormal": {
|
823
872
|
"type": "object",
|
824
|
-
"format": "table",
|
825
873
|
"title": "Style (normal)",
|
826
874
|
"description": "Style for boundaries in normal state",
|
827
|
-
"$ref": "#/definitions/map_style"
|
875
|
+
"$ref": "#/definitions/map_style",
|
876
|
+
"default": {
|
877
|
+
"weight": 1,
|
878
|
+
"opacity": 1,
|
879
|
+
"fillOpacity": 0.7,
|
880
|
+
"color": "#888888"
|
881
|
+
}
|
828
882
|
},
|
829
883
|
"styleHighlighted": {
|
830
884
|
"type": "object",
|
831
|
-
"format": "table",
|
832
885
|
"title": "Style (highlighted)",
|
833
886
|
"description": "Style for boundaries in highlighted state",
|
834
|
-
"$ref": "#/definitions/map_style"
|
887
|
+
"$ref": "#/definitions/map_style",
|
888
|
+
"default": {
|
889
|
+
"weight": 1,
|
890
|
+
"opacity": 1,
|
891
|
+
"fillOpacity": 0.7,
|
892
|
+
"color": "#111111"
|
893
|
+
}
|
835
894
|
},
|
836
895
|
"styleStatic": {
|
837
896
|
"type": "object",
|
838
|
-
"format": "table",
|
839
897
|
"title": "Style (static)",
|
840
898
|
"description": "Style for boundaries in static state (map layers using the 'static boundaries' option).",
|
841
|
-
"$ref": "#/definitions/map_style"
|
899
|
+
"$ref": "#/definitions/map_style",
|
900
|
+
"default": {
|
901
|
+
"weight": 2,
|
902
|
+
"opacity": 1,
|
903
|
+
"fillOpacity": 0,
|
904
|
+
"color": "#172d44",
|
905
|
+
"dashArray": "5,5"
|
906
|
+
}
|
842
907
|
}
|
843
908
|
},
|
844
909
|
"links": [
|
845
910
|
{
|
846
|
-
"rel": "More information",
|
911
|
+
"rel": "More information on the map options setting",
|
847
912
|
"href": "https://open-sdg.readthedocs.io/en/latest/maps/#map_options"
|
848
913
|
}
|
849
914
|
]
|
850
915
|
},
|
851
916
|
"menu": {
|
852
917
|
"options": {"collapsed": true},
|
853
|
-
"format": "table",
|
854
918
|
"type": "array",
|
855
919
|
"minItems": 1,
|
856
920
|
"title": "Main menu",
|
857
921
|
"description": "The links to display in the main menu.",
|
858
922
|
"items": {
|
859
|
-
"
|
923
|
+
"title": "Menu item",
|
924
|
+
"allOf": [
|
925
|
+
{ "$ref": "#/definitions/menu_item" },
|
926
|
+
{
|
927
|
+
"properties": {
|
928
|
+
"dropdown": {
|
929
|
+
"title": "Dropdown menu",
|
930
|
+
"type": "array",
|
931
|
+
"description": "Enter menu items here to turn this into a dropdown.",
|
932
|
+
"items": {
|
933
|
+
"$ref": "#/definitions/menu_item",
|
934
|
+
"title": "Dropdown menu item"
|
935
|
+
}
|
936
|
+
}
|
937
|
+
}
|
938
|
+
}
|
939
|
+
]
|
860
940
|
},
|
861
941
|
"links": [
|
862
942
|
{
|
863
|
-
"rel": "More information",
|
943
|
+
"rel": "More information on the menu setting",
|
864
944
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#menu"
|
865
945
|
}
|
866
946
|
]
|
@@ -872,14 +952,13 @@
|
|
872
952
|
"description": "This setting controls the URL of the 'Edit Metadata' buttons that appear on the staging site's indicator pages.",
|
873
953
|
"links": [
|
874
954
|
{
|
875
|
-
"rel": "More information",
|
955
|
+
"rel": "More information on the metadata edit URL setting",
|
876
956
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#metadata_edit_url"
|
877
957
|
}
|
878
958
|
]
|
879
959
|
},
|
880
960
|
"metadata_tabs": {
|
881
961
|
"options": {"collapsed": true},
|
882
|
-
"format": "table",
|
883
962
|
"type": "array",
|
884
963
|
"title": "Metadata tabs",
|
885
964
|
"description": "This setting can control the metadata tabs which appear on the indicator pages.",
|
@@ -909,7 +988,7 @@
|
|
909
988
|
},
|
910
989
|
"links": [
|
911
990
|
{
|
912
|
-
"rel": "More information",
|
991
|
+
"rel": "More information on the metadata tabs setting",
|
913
992
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#metadata_tabs"
|
914
993
|
}
|
915
994
|
]
|
@@ -929,7 +1008,7 @@
|
|
929
1008
|
},
|
930
1009
|
"links": [
|
931
1010
|
{
|
932
|
-
"rel": "More information",
|
1011
|
+
"rel": "More information on the news setting",
|
933
1012
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#news"
|
934
1013
|
}
|
935
1014
|
]
|
@@ -940,7 +1019,7 @@
|
|
940
1019
|
"description": "This setting can be used to control the text of the tab containing non-global metadata.",
|
941
1020
|
"links": [
|
942
1021
|
{
|
943
|
-
"rel": "More information",
|
1022
|
+
"rel": "More information on the non-global metadata setting",
|
944
1023
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#non_global_metadata"
|
945
1024
|
}
|
946
1025
|
]
|
@@ -952,7 +1031,7 @@
|
|
952
1031
|
"description": "Specify the URL of your published data repository.",
|
953
1032
|
"links": [
|
954
1033
|
{
|
955
|
-
"rel": "More information",
|
1034
|
+
"rel": "More information on the remote data prefix setting",
|
956
1035
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#remote_data_prefix"
|
957
1036
|
}
|
958
1037
|
]
|
@@ -962,17 +1041,28 @@
|
|
962
1041
|
"type": "object",
|
963
1042
|
"title": "Reporting status",
|
964
1043
|
"description": "This setting is used in the 'reportingstatus' layout. It can display a title and description above the reporting status page.",
|
965
|
-
"
|
1044
|
+
"allOf": [
|
1045
|
+
{ "$ref": "#/definitions/title_and_description" },
|
1046
|
+
{
|
1047
|
+
"properties": {
|
1048
|
+
"disaggregation_tabs": {
|
1049
|
+
"title": "Disaggregation tabs",
|
1050
|
+
"type": "boolean",
|
1051
|
+
"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.",
|
1052
|
+
"format": "checkbox"
|
1053
|
+
}
|
1054
|
+
}
|
1055
|
+
}
|
1056
|
+
],
|
966
1057
|
"links": [
|
967
1058
|
{
|
968
|
-
"rel": "More information",
|
1059
|
+
"rel": "More information on the reporting status setting",
|
969
1060
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#reporting_status"
|
970
1061
|
}
|
971
1062
|
]
|
972
1063
|
},
|
973
1064
|
"search_index_boost": {
|
974
1065
|
"options": {"collapsed": true},
|
975
|
-
"format": "table",
|
976
1066
|
"type": "array",
|
977
1067
|
"title": "Search index boost",
|
978
1068
|
"description": "This setting can be used to give a boost to one or more fields in the search index.",
|
@@ -996,14 +1086,13 @@
|
|
996
1086
|
},
|
997
1087
|
"links": [
|
998
1088
|
{
|
999
|
-
"rel": "More information",
|
1089
|
+
"rel": "More information on the search index boost setting",
|
1000
1090
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#search_index_boost"
|
1001
1091
|
}
|
1002
1092
|
]
|
1003
1093
|
},
|
1004
1094
|
"search_index_extra_fields": {
|
1005
1095
|
"options": {"collapsed": true},
|
1006
|
-
"format": "table",
|
1007
1096
|
"type": "array",
|
1008
1097
|
"title": "Search index extra fields",
|
1009
1098
|
"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 +1102,7 @@
|
|
1013
1102
|
},
|
1014
1103
|
"links": [
|
1015
1104
|
{
|
1016
|
-
"rel": "More information",
|
1105
|
+
"rel": "More information on the search index extra fields setting",
|
1017
1106
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#search_index_extra_fields"
|
1018
1107
|
}
|
1019
1108
|
]
|
@@ -1025,7 +1114,7 @@
|
|
1025
1114
|
"format": "checkbox",
|
1026
1115
|
"links": [
|
1027
1116
|
{
|
1028
|
-
"rel": "More information",
|
1117
|
+
"rel": "More information on the series toggle setting",
|
1029
1118
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#series_toggle"
|
1030
1119
|
}
|
1031
1120
|
]
|
@@ -1036,7 +1125,7 @@
|
|
1036
1125
|
"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
1126
|
"links": [
|
1038
1127
|
{
|
1039
|
-
"rel": "More information",
|
1128
|
+
"rel": "More information on the sharethis setting",
|
1040
1129
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#sharethis_property"
|
1041
1130
|
}
|
1042
1131
|
]
|
@@ -1055,7 +1144,7 @@
|
|
1055
1144
|
"format": "checkbox",
|
1056
1145
|
"links": [
|
1057
1146
|
{
|
1058
|
-
"rel": "More information",
|
1147
|
+
"rel": "More information on the validate indicator config setting",
|
1059
1148
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#validate_indicator_config"
|
1060
1149
|
}
|
1061
1150
|
]
|
@@ -1067,7 +1156,7 @@
|
|
1067
1156
|
"format": "checkbox",
|
1068
1157
|
"links": [
|
1069
1158
|
{
|
1070
|
-
"rel": "More information",
|
1159
|
+
"rel": "More information on the validate site config setting",
|
1071
1160
|
"href": "https://open-sdg.readthedocs.io/en/latest/configuration/#validate_site_config"
|
1072
1161
|
}
|
1073
1162
|
]
|
@@ -1116,12 +1205,10 @@
|
|
1116
1205
|
"properties": {
|
1117
1206
|
"title": {
|
1118
1207
|
"type": "string",
|
1119
|
-
"minLength": 1,
|
1120
1208
|
"title": "Title"
|
1121
1209
|
},
|
1122
1210
|
"description": {
|
1123
1211
|
"type": "string",
|
1124
|
-
"minLength": 1,
|
1125
1212
|
"title": "Description",
|
1126
1213
|
"format": "markdown"
|
1127
1214
|
}
|
@@ -1166,7 +1253,6 @@
|
|
1166
1253
|
"description": "Set options for any dropdown lists.",
|
1167
1254
|
"items": {
|
1168
1255
|
"type": "object",
|
1169
|
-
"format": "table",
|
1170
1256
|
"title": "Dropdown list",
|
1171
1257
|
"properties": {
|
1172
1258
|
"jsonschema": {
|
@@ -1176,7 +1262,6 @@
|
|
1176
1262
|
},
|
1177
1263
|
"values": {
|
1178
1264
|
"type": "array",
|
1179
|
-
"format": "table",
|
1180
1265
|
"title": "Values",
|
1181
1266
|
"description": "List of dropdown option values",
|
1182
1267
|
"items": {
|
@@ -1186,7 +1271,6 @@
|
|
1186
1271
|
},
|
1187
1272
|
"labels": {
|
1188
1273
|
"type": "array",
|
1189
|
-
"format": "table",
|
1190
1274
|
"title": "Labels",
|
1191
1275
|
"description": "Optional list of dropdown option labels. Should correspond to the values above.",
|
1192
1276
|
"items": {
|