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