jekyll-open-sdg-plugins 2.0.0.pre.beta1 → 2.0.0.pre.beta2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb19c3882511945e349e4287135dab4646f9eb76e223fcdf4a66cb71fa2b0255
|
4
|
+
data.tar.gz: 81c36042c51555555ecb9a20fc9c23bb66faabe3f6bba670c70b414a41828590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0425bed0630eff8a5ef64ca847a93fe01d0eb040774fd8de1681675e505b197069ef72f92128f5db51bb9c1b97e4598f579716c99721a96cd21579b67f32c2bd
|
7
|
+
data.tar.gz: 551577a071d49cbcb5d24c73de802a61738ea9f85258eb84e737d458d086aff686d12ce7e5d670ed164a39767d0cfc659e5a7f89eb58adc6e394aa5681872174
|
@@ -25,6 +25,11 @@ module JekyllOpenSdgPlugins
|
|
25
25
|
# as the Open SDG API changes over time.
|
26
26
|
def generate(site)
|
27
27
|
|
28
|
+
# Abort if some configurations from 1.x are still being used.
|
29
|
+
if (site.config.has_key?('metadata_tabs') && site.config['metadata_tabs'].is_a?(Hash))
|
30
|
+
opensdg_error('The metadata_tabs setting is not in the correct format. Please consult the latest documentation: https://open-sdg.readthedocs.io/en/latest/configuration/#metadata_tabs')
|
31
|
+
end
|
32
|
+
|
28
33
|
# Handle legacy treatment of reporting status types.
|
29
34
|
unless (site.config.has_key?('reporting_status') &&
|
30
35
|
site.config['reporting_status'].has_key?('status_types') &&
|
@@ -570,7 +570,7 @@
|
|
570
570
|
"title": "Graph color set",
|
571
571
|
"description": "This setting can be used to customize the color set used in the charts.",
|
572
572
|
"examples": [],
|
573
|
-
"enum": ["
|
573
|
+
"enum": ["accessible", "classic", "sdg", "goal", "custom"],
|
574
574
|
"links": [
|
575
575
|
{
|
576
576
|
"rel": "More information on the graph color set setting",
|
@@ -15,7 +15,7 @@ module Jekyll
|
|
15
15
|
translated = opensdg_translate_key(key, translations, language)
|
16
16
|
# Also look for references to site configuration within the translation,
|
17
17
|
# as "%" parameters.
|
18
|
-
translated = translated.gsub(/%([a-zA-Z0-9_
|
18
|
+
translated = translated.gsub(/%([a-zA-Z0-9_.]+)/) do |match|
|
19
19
|
# Special case for trailing dots.
|
20
20
|
trailing_dot = match.end_with?('.')
|
21
21
|
key_candidate = match.delete_suffix('.').delete_prefix('%')
|
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: 2.0.0.pre.
|
4
|
+
version: 2.0.0.pre.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brock Fanning
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|