jekyll-open-sdg-plugins 1.2.0.pre.beta5 → 1.2.0.pre.beta6

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: 55f3d80d4acc19d67bb4d70f17c1297f04ec33d313e7a26e34a2f82e63c8c91c
4
- data.tar.gz: 524cf624a527082236c885139cc0b2582c8b9ace8cf7d57292e2c74e8e076ebe
3
+ metadata.gz: 175c1098b80cdde83f1b14cf976f2c5a14d4ef5605bd5970712276c5ac4e0098
4
+ data.tar.gz: 053f7aae3bc5b4b1a0c1ffbb51ffab2029e1058d62e40fda80567b2ac522279d
5
5
  SHA512:
6
- metadata.gz: d7da9b8f7fb2399ec8de5b90866fe7fab567ac4feeba5f4a91f6c4a7e550d498506caf649b6153c13befe51bcc80d71fc2da22ba74f62ac45e4cb47dfb246ba1
7
- data.tar.gz: 2497c3cfec27dd90cab528becda64da55f14521f6e5cfbfb0b6399df14072d96cd930e8675b6c8d5959d850c5c2b658c31da4510c6ad1515d3c88f61399b41c5
6
+ metadata.gz: 47644a62f2244696045fb915262421fcf0f83b2ade9ee37824f76a172ad2851f68513ee00e92495334c0d2ffa1f43aa54deb95ebabfeeb58f923806670624fd5
7
+ data.tar.gz: fb4aee69cf0c348d0d08af195dace95571444d72394ba7259c6078583387361665f8d472160a3695e79ccc341b534faabde0943c08afd2d7f117c4b1e098cecc
@@ -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
@@ -97,7 +97,6 @@
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",
@@ -186,7 +185,6 @@
186
185
  },
187
186
  "expected_disaggregations": {
188
187
  "options": {"collapsed": true},
189
- "format": "table",
190
188
  "type": "array",
191
189
  "title": "Expected disaggregations",
192
190
  "description": "An optional list of disaggregations (ie, data column names) to use when calculating the disaggregation status statistics.",
@@ -355,7 +353,6 @@
355
353
  },
356
354
  "graph_limits": {
357
355
  "options": {"collapsed": true},
358
- "format": "table",
359
356
  "type": "array",
360
357
  "title": "Graph limits",
361
358
  "description": "A list of min/max limits controlling the lowest/highest values to be shown on the y-axis.",
@@ -418,7 +415,6 @@
418
415
  },
419
416
  "graph_titles": {
420
417
  "options": {"collapsed": true},
421
- "format": "table",
422
418
  "type": "array",
423
419
  "title": "Graph titles",
424
420
  "description": "As an alternative to `graph_title`, this can be used to set specific titles for particular units and/or series.",
@@ -510,7 +506,6 @@
510
506
  },
511
507
  "tags": {
512
508
  "options": {"collapsed": true},
513
- "format": "table",
514
509
  "type": "array",
515
510
  "title": "Tags",
516
511
  "description": "An optional list of 'tags' to display under an indicator when it is listed on its goal page.",
@@ -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.",
@@ -169,6 +166,24 @@
169
166
  ]
170
167
  },
171
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
+ }
172
187
  }
173
188
  },
174
189
  "links": [
@@ -209,7 +224,6 @@
209
224
  },
210
225
  "create_pages": {
211
226
  "options": {"collapsed": true},
212
- "format": "table",
213
227
  "type": "array",
214
228
  "title": "Create pages",
215
229
  "description": "This setting can be used to automatically create the pages.",
@@ -250,7 +264,6 @@
250
264
  },
251
265
  "custom_css": {
252
266
  "options": {"collapsed": true},
253
- "format": "table",
254
267
  "type": "array",
255
268
  "title": "Custom CSS files",
256
269
  "description": "Deprecated: instead of using this, it is recommended to put custom CSS in a _sass/custom.scss file.",
@@ -267,7 +280,6 @@
267
280
  },
268
281
  "custom_js": {
269
282
  "options": {"collapsed": true},
270
- "format": "table",
271
283
  "type": "array",
272
284
  "title": "Custom JavaScript files",
273
285
  "description": "This setting can be used to load additional JavaScript files on each page.",
@@ -296,7 +308,6 @@
296
308
  },
297
309
  "date_formats": {
298
310
  "options": {"collapsed": true},
299
- "format": "table",
300
311
  "type": "array",
301
312
  "title": "Date formats",
302
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.",
@@ -417,7 +428,6 @@
417
428
  },
418
429
  "footer_menu": {
419
430
  "options": {"collapsed": true},
420
- "format": "table",
421
431
  "type": "array",
422
432
  "title": "Footer menu",
423
433
  "description": "The links to display in the footer menu.",
@@ -580,7 +590,6 @@
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'.",
@@ -641,7 +650,6 @@
641
650
  },
642
651
  "languages": {
643
652
  "options": {"collapsed": true},
644
- "format": "table",
645
653
  "type": "array",
646
654
  "minItems": 1,
647
655
  "title": "Languages",
@@ -660,7 +668,6 @@
660
668
  },
661
669
  "languages_public": {
662
670
  "options": {"collapsed": true},
663
- "format": "table",
664
671
  "type": "array",
665
672
  "title": "Language code overrides",
666
673
  "description": "This setting can be used if you are not happy with any of the standard language codes.",
@@ -691,7 +698,6 @@
691
698
  },
692
699
  "map_layers": {
693
700
  "options": {"collapsed": true},
694
- "format": "table",
695
701
  "type": "array",
696
702
  "title": "Map layers",
697
703
  "description": "Configure any number of layers to display on all indicator maps. A minimum of one layer is required to display maps.",
@@ -799,7 +805,6 @@
799
805
  },
800
806
  "styleNormal": {
801
807
  "type": "object",
802
- "format": "table",
803
808
  "title": "Style (normal)",
804
809
  "description": "Style for boundaries in normal state",
805
810
  "$ref": "#/definitions/map_style",
@@ -812,7 +817,6 @@
812
817
  },
813
818
  "styleHighlighted": {
814
819
  "type": "object",
815
- "format": "table",
816
820
  "title": "Style (highlighted)",
817
821
  "description": "Style for boundaries in highlighted state",
818
822
  "$ref": "#/definitions/map_style",
@@ -825,7 +829,6 @@
825
829
  },
826
830
  "styleStatic": {
827
831
  "type": "object",
828
- "format": "table",
829
832
  "title": "Style (static)",
830
833
  "description": "Style for boundaries in static state (map layers using the 'static boundaries' option).",
831
834
  "$ref": "#/definitions/map_style",
@@ -847,7 +850,6 @@
847
850
  },
848
851
  "menu": {
849
852
  "options": {"collapsed": true},
850
- "format": "table",
851
853
  "type": "array",
852
854
  "minItems": 1,
853
855
  "title": "Main menu",
@@ -876,7 +878,6 @@
876
878
  },
877
879
  "metadata_tabs": {
878
880
  "options": {"collapsed": true},
879
- "format": "table",
880
881
  "type": "array",
881
882
  "title": "Metadata tabs",
882
883
  "description": "This setting can control the metadata tabs which appear on the indicator pages.",
@@ -959,7 +960,19 @@
959
960
  "type": "object",
960
961
  "title": "Reporting status",
961
962
  "description": "This setting is used in the 'reportingstatus' layout. It can display a title and description above the reporting status page.",
962
- "$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
+ ],
963
976
  "links": [
964
977
  {
965
978
  "rel": "More information on the reporting status setting",
@@ -969,7 +982,6 @@
969
982
  },
970
983
  "search_index_boost": {
971
984
  "options": {"collapsed": true},
972
- "format": "table",
973
985
  "type": "array",
974
986
  "title": "Search index boost",
975
987
  "description": "This setting can be used to give a boost to one or more fields in the search index.",
@@ -1000,7 +1012,6 @@
1000
1012
  },
1001
1013
  "search_index_extra_fields": {
1002
1014
  "options": {"collapsed": true},
1003
- "format": "table",
1004
1015
  "type": "array",
1005
1016
  "title": "Search index extra fields",
1006
1017
  "description": "This setting can be used to index additional metadata fields in your indicators, for the purposes of affecting the site-wide search.",
@@ -1161,7 +1172,6 @@
1161
1172
  "description": "Set options for any dropdown lists.",
1162
1173
  "items": {
1163
1174
  "type": "object",
1164
- "format": "table",
1165
1175
  "title": "Dropdown list",
1166
1176
  "properties": {
1167
1177
  "jsonschema": {
@@ -1171,7 +1181,6 @@
1171
1181
  },
1172
1182
  "values": {
1173
1183
  "type": "array",
1174
- "format": "table",
1175
1184
  "title": "Values",
1176
1185
  "description": "List of dropdown option values",
1177
1186
  "items": {
@@ -1181,7 +1190,6 @@
1181
1190
  },
1182
1191
  "labels": {
1183
1192
  "type": "array",
1184
- "format": "table",
1185
1193
  "title": "Labels",
1186
1194
  "description": "Optional list of dropdown option labels. Should correspond to the values above.",
1187
1195
  "items": {
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "1.2.0-beta5".freeze
2
+ VERSION = "1.2.0-beta6".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.beta5
4
+ version: 1.2.0.pre.beta6
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-12-04 00:00:00.000000000 Z
11
+ date: 2020-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll