jekyll-open-sdg-plugins 1.6.0.pre.beta1 → 1.7.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +16 -16
  3. data/.github/workflows/test-pull-requests.yml +17 -17
  4. data/.gitignore +6 -6
  5. data/LICENSE +21 -21
  6. data/Makefile +33 -33
  7. data/README.md +7 -7
  8. data/jekyll-open-sdg-plugins.gemspec +18 -18
  9. data/lib/jekyll-open-sdg-plugins/backwards_compatibility.rb +64 -61
  10. data/lib/jekyll-open-sdg-plugins/create_goals.rb +85 -85
  11. data/lib/jekyll-open-sdg-plugins/create_indicators.rb +206 -206
  12. data/lib/jekyll-open-sdg-plugins/create_pages.rb +135 -135
  13. data/lib/jekyll-open-sdg-plugins/fetch_remote_data.rb +188 -188
  14. data/lib/jekyll-open-sdg-plugins/helpers.rb +132 -132
  15. data/lib/jekyll-open-sdg-plugins/metadata_schema_to_config.rb +72 -72
  16. data/lib/jekyll-open-sdg-plugins/schema-indicator-config.json +787 -709
  17. data/lib/jekyll-open-sdg-plugins/schema-site-config.json +1652 -1617
  18. data/lib/jekyll-open-sdg-plugins/sdg_variables.rb +614 -549
  19. data/lib/jekyll-open-sdg-plugins/search_index.rb +102 -102
  20. data/lib/jekyll-open-sdg-plugins/site_configuration.rb +73 -52
  21. data/lib/jekyll-open-sdg-plugins/translate_date.rb +122 -122
  22. data/lib/jekyll-open-sdg-plugins/translate_key.rb +20 -20
  23. data/lib/jekyll-open-sdg-plugins/translate_metadata_field.rb +111 -111
  24. data/lib/jekyll-open-sdg-plugins/validate_indicator_config.rb +52 -52
  25. data/lib/jekyll-open-sdg-plugins/validate_site_config.rb +34 -34
  26. data/lib/jekyll-open-sdg-plugins/version.rb +3 -3
  27. data/lib/jekyll-open-sdg-plugins.rb +18 -18
  28. data/tests/Gemfile +7 -7
  29. data/tests/_config.yml +168 -168
  30. metadata +3 -3
data/tests/_config.yml CHANGED
@@ -1,168 +1,168 @@
1
- # Jekyll configuration for Open SDG platform
2
-
3
- validate_site_config: true
4
- validate_indicator_config: true
5
-
6
- baseurl: "/open-sdg-site-starter"
7
- remote_data_prefix: "https://open-sdg.org/open-sdg-data-starter"
8
- data_edit_url: http://prose.io/#open-sdg/open-sdg-data-starter/edit/develop/data/indicator_[id].csv
9
- metadata_edit_url: http://prose.io/#open-sdg/open-sdg-data-starter/edit/develop/meta/[id].md
10
- languages:
11
- - en
12
- - es
13
-
14
- title: Indicators For The Sustainable Development Goals
15
- url: ""
16
- data_dir: data
17
- environment: staging
18
-
19
- create_indicators:
20
- layout: indicator
21
- create_goals:
22
- layout: goal-by-target-vertical
23
- create_pages:
24
- - folder: /
25
- layout: frontpage-alt
26
- - folder: /goals
27
- layout: goals
28
- - folder: /reporting-status
29
- layout: reportingstatus
30
- - filename: indicators.json
31
- folder: /
32
- layout: indicator-json
33
- - folder: /search
34
- layout: search
35
-
36
- analytics:
37
- ga_prod: ''
38
-
39
- # Replace the email addresses below.
40
- email_contacts:
41
- questions: test@example.com
42
- suggestions: test@example.com
43
- functional: test@example.com
44
-
45
- # International Support
46
- # Eg name: Australia and adjective: Australian
47
- country:
48
- name: Australia
49
- adjective: Australian
50
-
51
- # Optionally set a title/body for the frontpage banner. The defaults below point to a standard
52
- # translation, but feel free to change it as needed.
53
- frontpage_introduction_banner:
54
- title: frontpage.intro_title
55
- description: frontpage.intro_body
56
-
57
- frontpage_goals_grid:
58
- title: Our data for Sustainable Development Goal indicators
59
- description: Click on each goal for our Sustainable Development Goal global indicator data.
60
-
61
- frontpage_cards:
62
- - title: frontpage.download_all
63
- include: components/download-all-data.html
64
- - title: Lorem ipsum
65
- content: |
66
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi mollis
67
- cursus est sed dapibus.
68
- button_label: Read more
69
- button_link: https://example.com
70
- - title: Nam vestibulum
71
- content: |
72
- Nam vestibulum, purus quis porttitor imperdiet, nisl sem mollis nisl, a
73
- interdum risus enim vitae tortor. Donec feugiat accumsan rutrum.
74
- button_label: Read more
75
- button_link: https://example.com
76
-
77
- # Pages
78
- collections:
79
- pages:
80
- output: true
81
- permalink: /:path/
82
- posts:
83
- output: true
84
- permalink: /news/:year/:month/:day/:title.html
85
- indicators:
86
- output: true
87
- goals:
88
- output: true
89
-
90
- # Menu
91
- menu:
92
- # Use these to customise the main navigation.
93
- - path: /goals
94
- # The "translation_key" refers to the key in the SDG Translations repository.
95
- translation_key: general.goals
96
- - path: /reporting-status
97
- translation_key: menu.reporting_status
98
- - path: /about
99
- translation_key: menu.about
100
- - path: /guidance
101
- translation_key: menu.guidance
102
- - path: /faq
103
- translation_key: menu.faq
104
- - path: /news
105
- translation_key: menu.updates
106
-
107
- footer_menu:
108
- - path: mailto:my-email-address@example.com
109
- translation_key: menu.contact_us
110
- - path: https://twitter.com/MyTwitterAccount
111
- translation_key: general.twitter
112
- - path: https://facebook.com/MyFacebookAccount
113
- translation_key: general.facebook
114
- - path: /about/cookies-and-privacy/
115
- translation_key: menu.cookies
116
-
117
- # Configure the text (or "translation key") to be used on the
118
- # non-global metadata tab.
119
- non_global_metadata: indicator.national_metadata
120
-
121
- # Set a base for all goal image URLs. Note that the full goal image path will be
122
- # the base below, completed with: /[language]/[number].png (eg, /fr/6.png).
123
- goal_image_base: https://open-sdg.org/sdg-translations/assets/img/goals
124
-
125
- # Exclude some files/folders.
126
- exclude:
127
- - vendor
128
- - scripts
129
- - remotedata
130
- - Gemfile
131
- - Gemfile.lock
132
- - README
133
- - README.md
134
- - LICENSE
135
-
136
- # Optionally uncomment and update the settings below to control the mapping functionality.
137
- # These are only a few of the possible settings. For more details, see:
138
- # https://open-sdg.readthedocs.io/en/latest/maps/
139
- #map_options:
140
- # minZoom: 5
141
- # tileURL: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
142
- # tileOptions:
143
- # attribution: 'My map attribution'
144
- #map_layers:
145
- # - min_zoom: 5
146
- # max_zoom: 10
147
- # subfolder: my-geojson-subfolder
148
- # label: My map layer label (can be a translation key)
149
-
150
- site_config_form:
151
- repository_link: https://github.com/open-sdg/open-sdg-site-starter
152
- indicator_config_form:
153
- repository_link: https://github.com/open-sdg/open-sdg-data-starter/tree/develop/meta
154
- indicator_metadata_form:
155
- repository_link: https://github.com/open-sdg/open-sdg-data-starter/tree/develop/meta
156
- scopes:
157
- - national
158
-
159
- reporting_status:
160
- status_types:
161
- - value: complete
162
- label: Complete
163
- - value: notstarted
164
- label: Not started
165
- - value: inprogress
166
- label: In progress
167
- - value: notapplicable
168
- label: Not applicable
1
+ # Jekyll configuration for Open SDG platform
2
+
3
+ validate_site_config: true
4
+ validate_indicator_config: true
5
+
6
+ baseurl: "/open-sdg-site-starter"
7
+ remote_data_prefix: "https://open-sdg.org/open-sdg-data-starter"
8
+ data_edit_url: http://prose.io/#open-sdg/open-sdg-data-starter/edit/develop/data/indicator_[id].csv
9
+ metadata_edit_url: http://prose.io/#open-sdg/open-sdg-data-starter/edit/develop/meta/[id].md
10
+ languages:
11
+ - en
12
+ - es
13
+
14
+ title: Indicators For The Sustainable Development Goals
15
+ url: ""
16
+ data_dir: data
17
+ environment: staging
18
+
19
+ create_indicators:
20
+ layout: indicator
21
+ create_goals:
22
+ layout: goal-by-target-vertical
23
+ create_pages:
24
+ - folder: /
25
+ layout: frontpage-alt
26
+ - folder: /goals
27
+ layout: goals
28
+ - folder: /reporting-status
29
+ layout: reportingstatus
30
+ - filename: indicators.json
31
+ folder: /
32
+ layout: indicator-json
33
+ - folder: /search
34
+ layout: search
35
+
36
+ analytics:
37
+ ga_prod: ''
38
+
39
+ # Replace the email addresses below.
40
+ email_contacts:
41
+ questions: test@example.com
42
+ suggestions: test@example.com
43
+ functional: test@example.com
44
+
45
+ # International Support
46
+ # Eg name: Australia and adjective: Australian
47
+ country:
48
+ name: Australia
49
+ adjective: Australian
50
+
51
+ # Optionally set a title/body for the frontpage banner. The defaults below point to a standard
52
+ # translation, but feel free to change it as needed.
53
+ frontpage_introduction_banner:
54
+ title: frontpage.intro_title
55
+ description: frontpage.intro_body
56
+
57
+ frontpage_goals_grid:
58
+ title: Our data for Sustainable Development Goal indicators
59
+ description: Click on each goal for our Sustainable Development Goal global indicator data.
60
+
61
+ frontpage_cards:
62
+ - title: frontpage.download_all
63
+ include: components/download-all-data.html
64
+ - title: Lorem ipsum
65
+ content: |
66
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi mollis
67
+ cursus est sed dapibus.
68
+ button_label: Read more
69
+ button_link: https://example.com
70
+ - title: Nam vestibulum
71
+ content: |
72
+ Nam vestibulum, purus quis porttitor imperdiet, nisl sem mollis nisl, a
73
+ interdum risus enim vitae tortor. Donec feugiat accumsan rutrum.
74
+ button_label: Read more
75
+ button_link: https://example.com
76
+
77
+ # Pages
78
+ collections:
79
+ pages:
80
+ output: true
81
+ permalink: /:path/
82
+ posts:
83
+ output: true
84
+ permalink: /news/:year/:month/:day/:title.html
85
+ indicators:
86
+ output: true
87
+ goals:
88
+ output: true
89
+
90
+ # Menu
91
+ menu:
92
+ # Use these to customise the main navigation.
93
+ - path: /goals
94
+ # The "translation_key" refers to the key in the SDG Translations repository.
95
+ translation_key: general.goals
96
+ - path: /reporting-status
97
+ translation_key: menu.reporting_status
98
+ - path: /about
99
+ translation_key: menu.about
100
+ - path: /guidance
101
+ translation_key: menu.guidance
102
+ - path: /faq
103
+ translation_key: menu.faq
104
+ - path: /news
105
+ translation_key: menu.updates
106
+
107
+ footer_menu:
108
+ - path: mailto:my-email-address@example.com
109
+ translation_key: menu.contact_us
110
+ - path: https://twitter.com/MyTwitterAccount
111
+ translation_key: general.twitter
112
+ - path: https://facebook.com/MyFacebookAccount
113
+ translation_key: general.facebook
114
+ - path: /about/cookies-and-privacy/
115
+ translation_key: menu.cookies
116
+
117
+ # Configure the text (or "translation key") to be used on the
118
+ # non-global metadata tab.
119
+ non_global_metadata: indicator.national_metadata
120
+
121
+ # Set a base for all goal image URLs. Note that the full goal image path will be
122
+ # the base below, completed with: /[language]/[number].png (eg, /fr/6.png).
123
+ goal_image_base: https://open-sdg.org/sdg-translations/assets/img/goals
124
+
125
+ # Exclude some files/folders.
126
+ exclude:
127
+ - vendor
128
+ - scripts
129
+ - remotedata
130
+ - Gemfile
131
+ - Gemfile.lock
132
+ - README
133
+ - README.md
134
+ - LICENSE
135
+
136
+ # Optionally uncomment and update the settings below to control the mapping functionality.
137
+ # These are only a few of the possible settings. For more details, see:
138
+ # https://open-sdg.readthedocs.io/en/latest/maps/
139
+ #map_options:
140
+ # minZoom: 5
141
+ # tileURL: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
142
+ # tileOptions:
143
+ # attribution: 'My map attribution'
144
+ #map_layers:
145
+ # - min_zoom: 5
146
+ # max_zoom: 10
147
+ # subfolder: my-geojson-subfolder
148
+ # label: My map layer label (can be a translation key)
149
+
150
+ site_config_form:
151
+ repository_link: https://github.com/open-sdg/open-sdg-site-starter
152
+ indicator_config_form:
153
+ repository_link: https://github.com/open-sdg/open-sdg-data-starter/tree/develop/meta
154
+ indicator_metadata_form:
155
+ repository_link: https://github.com/open-sdg/open-sdg-data-starter/tree/develop/meta
156
+ scopes:
157
+ - national
158
+
159
+ reporting_status:
160
+ status_types:
161
+ - value: complete
162
+ label: Complete
163
+ - value: notstarted
164
+ label: Not started
165
+ - value: inprogress
166
+ label: In progress
167
+ - value: notapplicable
168
+ label: Not applicable
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.6.0.pre.beta1
4
+ version: 1.7.0.pre.beta1
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-10-28 00:00:00.000000000 Z
11
+ date: 2021-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: 1.3.1
108
108
  requirements: []
109
- rubygems_version: 3.1.4
109
+ rubygems_version: 3.0.9
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Jekyll plugins for use with the Open SDG platform