jekyll-open-sdg-plugins 1.3.0.pre.beta1 → 1.3.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: 1579412cd0fc422e1af1ee418f9dcf89d10a8491ff0ce362c269ca49ad3b8f9d
4
- data.tar.gz: c67a8ba97b93d0264e28f9cd764cd90f6a7db755ad10e1e5823a1cd4a25b927d
3
+ metadata.gz: ee38bdf65103fdf29cdc1c5718b11ade6f0af536bbc2df47744b2d4864178adb
4
+ data.tar.gz: 45620f6186df1d77b8ec1b831ad178e9f038b3f07ac38ce627fe7a6590d096f3
5
5
  SHA512:
6
- metadata.gz: 77a40b3a54553c73cc1ff3a560310f97e709b94be07c1b539ed92b0423803ba628454484b3910dc62b4175463fd520c7cd4c5a90c9f051cb6fde6bf6842c6f2a
7
- data.tar.gz: d556a58a95a4627a25d947c8dd66470b3f3a580f56baa3c86da25b2b82499a5913a4ef3ec42083676cf7b7e3dffd2f8c9b944a8499e9492ab00a64d6ab0d1191
6
+ metadata.gz: 33d1c39b8177fb409b3b094b0b0ca85c856087746d5538440fea445e98260f83bd55dd1052431b6b8d3886475f7f82c2637ae2ee0cec33aec4bd5545dfa35e36
7
+ data.tar.gz: 18543063111561aa2d5ba9c5ce2e73773e0b4c842c7067beecc0a8a5f7c9de5a2f618c9a4feb87fd7fcf6734d994aed74bcaaed9a858029d0f0bcd0998026726
@@ -218,142 +218,131 @@
218
218
  "items": {
219
219
  "type": "object",
220
220
  "title": "Graph annotation",
221
- "properties": {
222
- "preset": {
223
- "type": "string",
224
- "title": "Preset",
225
- "enum": ["target_line"],
226
- "description": "A preset bundle of configurations."
227
- },
228
- "value": {
229
- "type": "number",
230
- "minimum": 0,
231
- "title": "Value",
232
- "description": "The value at which to draw the line. For horizontal lines, this number corresponds to your actual data. For vertical lines, this number should be between 0 (the left side of the chart) and the number of years minus 1 (the right side of the chart)."
233
- },
234
- "endValue": {
235
- "type": "number",
236
- "title": "End value",
237
- "description": "Optionally add a different ending value for the line."
238
- },
239
- "description": {
240
- "type": "string",
241
- "title": "Description",
242
- "description": "A description of the annotation to be read by screenreaders."
243
- },
244
- "unit": {
245
- "type": "string",
246
- "title": "Unit",
247
- "description": "The unit of measurement the annotation displays on."
248
- },
249
- "series": {
250
- "type": "string",
251
- "title": "Series",
252
- "description": "The series the annotation displays on."
253
- },
254
- "mode": {
255
- "type": "string",
256
- "title": "Mode",
257
- "description": "Whether the line will be vertical or horizontal.",
258
- "enum": ["horizontal", "vertical"]
259
- },
260
- "borderColor": {
261
- "type": "string",
262
- "format": "color",
263
- "title": "Line color",
264
- "description": "The color of the line.",
265
- "links": [
266
- {
267
- "rel": "More information on the border color setting",
268
- "href": "https://github.com/chartjs/chartjs-plugin-annotation/blob/master/README.md"
269
- }
270
- ]
271
- },
272
- "borderDash": {
273
- "type": "string",
274
- "title": "Line dash type",
275
- "description": "The type of line dash.",
276
- "links": [
277
- {
278
- "rel": "More information on the line dash setting",
279
- "href": "https://github.com/chartjs/chartjs-plugin-annotation/blob/master/README.md"
280
- }
281
- ]
282
- },
283
- "label": {
284
- "type": "object",
285
- "title": "Label",
286
- "description": "A text label for the annotation.",
221
+ "allOf": [
222
+ { "$ref": "#/definitions/series_unit_constraint" },
223
+ {
287
224
  "properties": {
288
- "position": {
289
- "type": "string",
290
- "title": "Position",
291
- "description": "Placement of the label along the line.",
292
- "enum": [
293
- "top",
294
- "bottom",
295
- "left",
296
- "right",
297
- "center"
298
- ]
225
+ "value": {
226
+ "type": "number",
227
+ "minimum": 0,
228
+ "title": "Value",
229
+ "description": "The value at which to draw the line. For horizontal lines, this number corresponds to your actual data. For vertical lines, this number should be between 0 (the left side of the chart) and the number of years minus 1 (the right side of the chart)."
299
230
  },
300
- "content": {
301
- "type": "string",
302
- "minLength": 1,
303
- "title": "Content",
304
- "description": "Text of the line label."
231
+ "endValue": {
232
+ "type": "number",
233
+ "title": "End value",
234
+ "description": "Optionally add a different ending value for the line."
305
235
  },
306
- "fontColor": {
236
+ "description": {
307
237
  "type": "string",
308
- "format": "color",
309
- "title": "Label color",
310
- "description": "Color for the label text."
238
+ "title": "Description",
239
+ "description": "A description of the annotation to be read by screenreaders."
311
240
  },
312
- "backgroundColor": {
241
+ "mode": {
313
242
  "type": "string",
314
- "format": "color",
315
- "default": "#FFFFFFF",
316
- "title": "Background color",
317
- "description": "Background color for the label text."
318
- }
319
- }
320
- },
321
- "highContrast": {
322
- "type": "object",
323
- "title": "High contrast options",
324
- "description": "High-contrast overrides of certain color.",
325
- "properties": {
243
+ "title": "Mode",
244
+ "description": "Whether the line will be vertical or horizontal.",
245
+ "enum": ["horizontal", "vertical"]
246
+ },
326
247
  "borderColor": {
327
248
  "type": "string",
328
249
  "format": "color",
329
- "default": "#FFFFFF",
330
- "title": "High-contrast line color",
331
- "description": "The color of the line in high-contrast mode."
250
+ "title": "Line color",
251
+ "description": "The color of the line.",
252
+ "links": [
253
+ {
254
+ "rel": "More information on the border color setting",
255
+ "href": "https://github.com/chartjs/chartjs-plugin-annotation/blob/master/README.md"
256
+ }
257
+ ]
258
+ },
259
+ "borderDash": {
260
+ "type": "string",
261
+ "title": "Line dash type",
262
+ "description": "The type of line dash.",
263
+ "links": [
264
+ {
265
+ "rel": "More information on the line dash setting",
266
+ "href": "https://github.com/chartjs/chartjs-plugin-annotation/blob/master/README.md"
267
+ }
268
+ ]
332
269
  },
333
270
  "label": {
334
271
  "type": "object",
335
- "title": "High contrast label",
336
- "description": "High-contrast version of the label.",
272
+ "title": "Label",
273
+ "description": "A text label for the annotation.",
337
274
  "properties": {
275
+ "position": {
276
+ "type": "string",
277
+ "title": "Position",
278
+ "description": "Placement of the label along the line.",
279
+ "enum": [
280
+ "top",
281
+ "bottom",
282
+ "left",
283
+ "right",
284
+ "center"
285
+ ]
286
+ },
287
+ "content": {
288
+ "type": "string",
289
+ "minLength": 1,
290
+ "title": "Content",
291
+ "description": "Text of the line label."
292
+ },
338
293
  "fontColor": {
339
294
  "type": "string",
340
295
  "format": "color",
341
- "default": "#FFFFFF",
342
- "title": "High-contrast label color",
343
- "description": "Color for the label text in high-contrast mode."
296
+ "title": "Label color",
297
+ "description": "Color for the label text."
344
298
  },
345
299
  "backgroundColor": {
346
300
  "type": "string",
347
301
  "format": "color",
348
- "default": "#000000",
349
- "title": "High-contrast background color",
350
- "description": "Background color for the label text in high-contrast mode."
302
+ "default": "#FFFFFFF",
303
+ "title": "Background color",
304
+ "description": "Background color for the label text."
305
+ }
306
+ }
307
+ },
308
+ "highContrast": {
309
+ "type": "object",
310
+ "title": "High contrast options",
311
+ "description": "High-contrast overrides of certain color.",
312
+ "properties": {
313
+ "borderColor": {
314
+ "type": "string",
315
+ "format": "color",
316
+ "default": "#FFFFFF",
317
+ "title": "High-contrast line color",
318
+ "description": "The color of the line in high-contrast mode."
319
+ },
320
+ "label": {
321
+ "type": "object",
322
+ "title": "High contrast label",
323
+ "description": "High-contrast version of the label.",
324
+ "properties": {
325
+ "fontColor": {
326
+ "type": "string",
327
+ "format": "color",
328
+ "default": "#FFFFFF",
329
+ "title": "High-contrast label color",
330
+ "description": "Color for the label text in high-contrast mode."
331
+ },
332
+ "backgroundColor": {
333
+ "type": "string",
334
+ "format": "color",
335
+ "default": "#000000",
336
+ "title": "High-contrast background color",
337
+ "description": "Background color for the label text in high-contrast mode."
338
+ }
339
+ }
351
340
  }
352
341
  }
353
342
  }
354
343
  }
355
344
  }
356
- }
345
+ ]
357
346
  },
358
347
  "links": [
359
348
  {
@@ -370,30 +359,25 @@
370
359
  "items": {
371
360
  "type": "object",
372
361
  "title": "Graph limit",
373
- "properties": {
374
- "minimum": {
375
- "type": "number",
376
- "minimum": 0,
377
- "title": "Minimum",
378
- "description": "Minimum value for the y axis."
379
- },
380
- "maximum": {
381
- "type": "number",
382
- "minimum": 0,
383
- "title": "Maximum",
384
- "description": "Maximum value for the y axis."
385
- },
386
- "unit": {
387
- "type": "string",
388
- "title": "Unit",
389
- "description": "The unit of measurement the limits apply to."
390
- },
391
- "series": {
392
- "type": "string",
393
- "title": "Series",
394
- "description": "The series the limits apply to."
362
+ "allOf": [
363
+ { "$ref": "#/definitions/series_unit_constraint" },
364
+ {
365
+ "properties": {
366
+ "minimum": {
367
+ "type": "number",
368
+ "minimum": 0,
369
+ "title": "Minimum",
370
+ "description": "Minimum value for the y axis."
371
+ },
372
+ "maximum": {
373
+ "type": "number",
374
+ "minimum": 0,
375
+ "title": "Maximum",
376
+ "description": "Maximum value for the y axis."
377
+ }
378
+ }
395
379
  }
396
- }
380
+ ]
397
381
  },
398
382
  "links": [
399
383
  {
@@ -432,24 +416,19 @@
432
416
  "items": {
433
417
  "type": "object",
434
418
  "title": "Graph title",
435
- "properties": {
436
- "title": {
437
- "type": "string",
438
- "minLength": 1,
439
- "title": "Title",
440
- "description": "The graph title."
441
- },
442
- "unit": {
443
- "type": "string",
444
- "title": "Unit",
445
- "description": "The unit of measurement the title applies to."
446
- },
447
- "series": {
448
- "type": "string",
449
- "title": "Series",
450
- "description": "The series the title applies to."
419
+ "allOf": [
420
+ { "$ref": "#/definitions/series_unit_constraint" },
421
+ {
422
+ "properties": {
423
+ "title": {
424
+ "type": "string",
425
+ "minLength": 1,
426
+ "title": "Title",
427
+ "description": "The graph title."
428
+ }
429
+ }
451
430
  }
452
- }
431
+ ]
453
432
  }
454
433
  },
455
434
  "graph_type": {
@@ -514,6 +493,28 @@
514
493
  }
515
494
  ]
516
495
  },
496
+ "precision": {
497
+ "options": {"collapsed": true},
498
+ "type": "array",
499
+ "title": "Precision rules",
500
+ "description": "Control the number of decimal places for data in this indicator.",
501
+ "items": {
502
+ "type": "object",
503
+ "title": "Precision rule",
504
+ "allOf": [
505
+ { "$ref": "#/definitions/series_unit_constraint" },
506
+ {
507
+ "properties": {
508
+ "decimals": {
509
+ "type": "number",
510
+ "title": "Decimals",
511
+ "description": "The number of decimal places"
512
+ }
513
+ }
514
+ }
515
+ ]
516
+ }
517
+ },
517
518
  "reporting_status": {
518
519
  "type": "string",
519
520
  "title": "Reporting status",
@@ -566,5 +567,22 @@
566
567
  ]
567
568
  }
568
569
  },
569
- "additionalProperties": true
570
+ "additionalProperties": true,
571
+ "definitions": {
572
+ "series_unit_constraint": {
573
+ "type": "object",
574
+ "properties": {
575
+ "series": {
576
+ "type": "string",
577
+ "title": "Series",
578
+ "description": "Limit to this particular series"
579
+ },
580
+ "unit": {
581
+ "type": "string",
582
+ "title": "Unit",
583
+ "description": "Limit to this particular unit"
584
+ }
585
+ }
586
+ }
587
+ }
570
588
  }
@@ -611,6 +611,32 @@
611
611
  }
612
612
  ]
613
613
  },
614
+ "graph_color_headline": {
615
+ "type": "string",
616
+ "format": "color",
617
+ "title": "Graph color for headline",
618
+ "description": "This setting can be used to customize the color used in the chart 'headlines'.",
619
+ "examples": [],
620
+ "links": [
621
+ {
622
+ "rel": "More information on the graph color headline setting",
623
+ "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#graph_color_headline"
624
+ }
625
+ ]
626
+ },
627
+ "graph_color_headline_high_contrast": {
628
+ "type": "string",
629
+ "format": "color",
630
+ "title": "Graph color for headline - high-contrast",
631
+ "description": "This setting can be used to customize the color used in the chart 'headlines' in high-contrast mode.",
632
+ "examples": [],
633
+ "links": [
634
+ {
635
+ "rel": "More information on the graph color headline high-contrast setting",
636
+ "href": "https://open-sdg.readthedocs.io/en/latest/configuration/#graph_color_headline_high_contrast"
637
+ }
638
+ ]
639
+ },
614
640
  "graph_color_set": {
615
641
  "type": "string",
616
642
  "title": "Graph color set",
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "1.3.0-beta1".freeze
2
+ VERSION = "1.3.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.3.0.pre.beta1
4
+ version: 1.3.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: 2021-03-01 00:00:00.000000000 Z
11
+ date: 2021-03-12 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: