swedbank-pay-design-guide-jekyll-theme 1.6.1.pre.PullRequest0137.pre.0063 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5654a68beed4ad710113092cec8394be7e2c65fc15f0bfbc5af24ce2b236470e
4
- data.tar.gz: a87c3f11413e9d05b39c05e2cd95c347a5a73cc151fd810d530c7c0020fa66d7
3
+ metadata.gz: 0a1983ca9e2e623d45572e71e44d145376ad1ea114526c130de81ddcbc58546d
4
+ data.tar.gz: c6403598ba456a0008c4e1d2545379faf4df3ad7c602c340efcf56b58d722d74
5
5
  SHA512:
6
- metadata.gz: 6ada7c3d822ff780bf3d7a6ef5fad6dfce6a1798dd1e6e61712f3b0735a9b5192f63eb25e566124342d8a995d2225a29a09b425324da39d953113981f6058791
7
- data.tar.gz: f68fc6ddf37e60581f13401db8a26c731a6d0e92a76d9f85da623bedd3b805353e2eea233b938f42621e8c2dd4b2d07da743e3a44e3b84ff8c7132bb0d165711
6
+ metadata.gz: d43cbc52a6b2015129e380a6dea2b4435eb6819be17af50094ce1cfe694d172759f7bc4b6371822854480c20b1a5559ed347970a1e77a7f616b6dfd1c6196f03
7
+ data.tar.gz: d8caa50f52475c619eefc3f96ae3e0985bf71dfde786e68f5b16031c5173cdb1fe5f8833a7bdb82bbee09b77b6bd535308bddf55f756acfaafb8f2507fae3a21
@@ -19,7 +19,7 @@ Original creator: https://sebnitu.com/2016/10/13/dynamic-menus-in-jekyll/
19
19
  {% endif %}
20
20
 
21
21
  <ul class="main-nav-ul">
22
- {% assign pages = site.pages | sort: 'menu-order' %}
22
+ {% assign pages = site.pages | sort: 'menu_order' %}
23
23
  {% for node in pages %}
24
24
  {% assign node_parts = node.url | split: '/' %}
25
25
  {% assign node_depth = node_parts | size %}
@@ -113,4 +113,3 @@ Original creator: https://sebnitu.com/2016/10/13/dynamic-menus-in-jekyll/
113
113
  </ul>
114
114
  </nav>
115
115
  </div>
116
-
@@ -1,5 +1,4 @@
1
1
  {%- assign title = page.title | default: "PayEx Design Guide theme for Jekyll" -%}
2
- {%- assign front_page = page.front_page | default: false -%}
3
2
  {%- assign description = page.opengraph.description | default: site.opengraph.description -%}
4
3
  {%- assign image = page.opengraph.image | default: site.opengraph.image -%}
5
4
  {%- assign github_branch = site.github.branch | default : "develop" -%}
@@ -80,14 +79,14 @@
80
79
  </div>
81
80
 
82
81
  <main class="doc-view col-xxl-10 col-lg-9">
83
- {% if front_page != true %}
82
+ {% if page.layout != 'front-page' %}
84
83
  {% assign title_lead = title | split: '–' | first %}
85
84
  {% assign title_main = title | split: '–' | last %}
86
85
  {% assign description = page.description %}
87
86
  {% assign estimated_read = page.estimated_read %}
88
87
  <div class="title-header">
89
88
  <div class="title-header-container
90
- {% if page.card_overview%} max-width-card-overview
89
+ {% if page.card_overview %} max-width-card-overview
91
90
  {% else %} max-width
92
91
  {% endif %}">
93
92
  {% if title_lead != title_main %}
@@ -106,8 +105,8 @@
106
105
  </div>
107
106
  </div>
108
107
  {% endif %}
109
- <div class="doc-container{% if front_page == true %} no-padding
110
- {% elsif page.card_overview%} normal-padding max-width-card-overview
108
+ <div class="doc-container{% if page.layout == 'front-page' %} no-padding
109
+ {% elsif page.card_overview %} normal-padding max-width-card-overview
111
110
  {% else %} normal-padding max-width
112
111
  {% endif %}">
113
112
  <article>
@@ -0,0 +1,112 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% assign show_merchants_bar = page.front_page.show_merchants_bar | default: false %}
6
+ {% assign front_page_title = page.front_page.title | default: 'developer portal' %}
7
+ {% assign front_page_hero = page.front_page.hero | default: "Welcome to the Swedbank Pay" %}
8
+ {% assign front_page_ingress = page.front_page.ingress | default: "Our developer portal gives you the full tool box for integrating our payment instruments and getting started with easy, flexible and safe payments on your e-commerce website." %}
9
+ {% assign front_page_start_heading = page.front_page.start_heading | default: "Start your integration" %}
10
+
11
+ <div class="front-page">
12
+ <div class="front-page-container">
13
+ <div class="front-page-top">
14
+ <div class="front-page-hero">
15
+ <h3>{{ front_page_hero }}</h3>
16
+ <div class="front-page-hero-name">
17
+ {<span>{{ front_page_title }}</span>}
18
+ </div>
19
+ <p>{{ front_page_ingress }}</p>
20
+ </div>
21
+ <div class="front-page-intro-cards">
22
+ <h2 id="front-page-start" class="heading-line heading-line-white">{{ front_page_start_heading }}</h2>
23
+ {% contentblock start %}
24
+ </div>
25
+ </div>
26
+ {% if show_merchants_bar == true %}
27
+ <div class="front-page-merchants">
28
+ <h6>Trusted by</h6>
29
+ <div class="merchants-container justify-content-xxl-between">
30
+ <a class="merchant-link">
31
+ {% include img/merchants/logo-schibsted.svg %}
32
+ </a>
33
+ <a class="merchant-link">
34
+ {% include img/merchants/logo-ica.svg %}
35
+ </a>
36
+ <a class="merchant-link">
37
+ {% include img/merchants/logo-elkjop.svg %}
38
+ </a>
39
+ <a class="merchant-link">
40
+ {% include img/merchants/logo-synsam.svg %}
41
+ </a>
42
+ <a class="merchant-link">
43
+ {% include img/merchants/logo-coop.svg %}
44
+ </a>
45
+ <a class="merchant-link">
46
+ {% include img/merchants/logo-svenskaspel.svg %}
47
+ </a>
48
+ <a class="merchant-link">
49
+ {% include img/merchants/logo-skanetrafiken.svg %}
50
+ </a>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ {% endif %}
55
+ <a href="https://ecom.externalintegration.payex.com/pspdemoshop" class="front-page-demoshop">
56
+ <span class="front-page-demoshop-text">
57
+ <span class="h2">Try our Demoshop<span>.</span></span>
58
+ <span class="demoshop-text-description">
59
+ Unsure about how it all works? See how our checkout and payment methods are used
60
+ in practice!
61
+ </span>
62
+ </span>
63
+ <span class="front-page-demoshop-link">
64
+ <span class="h3">Go to the demoshop</span>
65
+ <i class="material-icons">arrow_forward</i>
66
+ <span class="demoshop-link-img">
67
+ <img class="demoshop-link-img-mobile d-md-none d-lg-flex d-xl-none d-xxl-flex"
68
+ src="/assets/img/demoshop-mobile.svg" alt="demoshop-mobile" />
69
+ <img class="demoshop-link-img-mobile d-none d-md-none d-lg-flex d-xl-none"
70
+ src="/assets/img/demoshop-mobile2.svg" alt="demoshop-mobile2" />
71
+ <img class="demoshop-link-img-web d-none d-sm-none d-md-flex d-lg-none d-xl-flex"
72
+ src="/assets/img/demoshop-web.svg" alt="demoshop-web" />
73
+ </span>
74
+ </span>
75
+ </a>
76
+
77
+ <div class="front-page-container">
78
+ <div class="front-page-cards-sdk">
79
+ {% contentblock sdks %}
80
+ </div>
81
+
82
+ <div class="front-page-cards-module">
83
+ {% contentblock modules %}
84
+ </div>
85
+
86
+ <div class="front-page-release-notes">
87
+ {% contentblock release_notes %}
88
+ </div>
89
+
90
+ <div class="front-page-cards-extra">
91
+ {% contentblock extras %}
92
+ </div>
93
+
94
+ <div class="front-page-contact">
95
+ <div class="front-page-contact-content">
96
+ <div class="row">
97
+ <div class="col-xl-7">
98
+ <h2 id="front-page-contact" class="heading-line heading-line-long">Can't find what you are
99
+ looking for?</h2>
100
+ <p>
101
+ We are always trying to make the developer portal as
102
+ good as it can be please don’t hesitate to contact us.
103
+ </p>
104
+ </div>
105
+ <div class="col-xl-5 d-flex align-items-center justify-content-center">
106
+ <button class="btn">Contact us here</button>
107
+ </div>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </div>
@@ -4,7 +4,7 @@ module Gem
4
4
  # Gem Specification
5
5
  class Specification
6
6
  def self.gem_version
7
- '1.6.1-PullRequest0137-0063'
7
+ '1.8.1'
8
8
  end
9
9
  end
10
10
  end
@@ -5,6 +5,7 @@ require 'nokogiri'
5
5
  require 'json'
6
6
 
7
7
  module Jekyll
8
+ # A nice sidebar
8
9
  class Sidebar
9
10
  attr_accessor :hash_pre_render
10
11
  attr_accessor :filename_with_headers
@@ -15,7 +16,7 @@ module Jekyll
15
16
  end
16
17
 
17
18
  def pre_render(page)
18
- menu_order = page['menu-order'].nil? ? 0 : page['menu-order']
19
+ menu_order = page['menu_order'].nil? ? 0 : page['menu_order']
19
20
  hide_from_sidebar = page['hide_from_sidebar'].nil? ? false : page['hide_from_sidebar']
20
21
  url = page['url'].gsub('index.html', '').gsub('.html', '')
21
22
  @hash_pre_render[url] = {
@@ -72,6 +73,7 @@ module Jekyll
72
73
 
73
74
  def generateSubgroup(filename, key, value, all_subgroups, level)
74
75
  title = value[:title].split('–').last
76
+
75
77
  subsubgroup_list = all_subgroups.select do |subsubgroup_key, _subsubgroup_value|
76
78
  subsubgroup_key.include? key and subsubgroup_key != key and \
77
79
  key.split('/').length > level
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'sidebar'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swedbank-pay-design-guide-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1.pre.PullRequest0137.pre.0063
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swedbank Pay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-21 00:00:00.000000000 Z
11
+ date: 2020-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -58,6 +58,20 @@ dependencies:
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '5.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: jekyll-contentblocks
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: jekyll-github-metadata
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -189,7 +203,6 @@ files:
189
203
  - _includes/card-horizontal-list.html
190
204
  - _includes/card-list.html
191
205
  - _includes/card.html
192
- - _includes/front-page.html
193
206
  - _includes/google_analytics.html
194
207
  - _includes/img/merchants/logo-coop.svg
195
208
  - _includes/img/merchants/logo-elkjop.svg
@@ -214,6 +227,7 @@ files:
214
227
  - _includes/sidebar.html
215
228
  - _includes/toc.html
216
229
  - _layouts/default.html
230
+ - _layouts/front-page.html
217
231
  - _plugins/sidebar.rb
218
232
  - _sass/card.scss
219
233
  - _sass/code-view.scss
@@ -241,6 +255,7 @@ files:
241
255
  - assets/tipuesearch/tipuesearch_set.js
242
256
  - lib/gem_version.rb
243
257
  - lib/sidebar.rb
258
+ - lib/swedbank-pay-design-guide-jekyll-theme.rb
244
259
  homepage: https://github.com/SwedbankPay/swedbank-pay-design-guide-jekyll-theme
245
260
  licenses:
246
261
  - Apache-2.0
@@ -256,9 +271,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
256
271
  version: '0'
257
272
  required_rubygems_version: !ruby/object:Gem::Requirement
258
273
  requirements:
259
- - - ">"
274
+ - - ">="
260
275
  - !ruby/object:Gem::Version
261
- version: 1.3.1
276
+ version: '0'
262
277
  requirements: []
263
278
  rubygems_version: 3.1.2
264
279
  signing_key:
@@ -1,240 +0,0 @@
1
- {%- comment -%}
2
- **Parameters
3
- card_col_class: Grid column class the cards should be wrapped in
4
- num_dates: Amount of rows (based on dates in release_notes) should be displayed
5
- in release-notes
6
- {%- endcomment -%}
7
-
8
- {% assign card_col_class = include.card_col_class | default: "col-xxl-3 col-xl-6 col-lg-6" %}
9
- {% assign num_dates = include.num_dates | default: 3 %}
10
-
11
- <div class="front-page">
12
- <div class="front-page-container">
13
- <div class="front-page-top">
14
- <div class="front-page-hero">
15
- <h3>Welcome to the Swedbank Pay</h3>
16
- <div class="front-page-hero-name">
17
- {<span>developer portal</span>}
18
- </div>
19
- <p>
20
- Our developer portal gives you the full tool box for integrating
21
- our payment instruments and getting started with easy, flexible and
22
- safe payments on your e-commerce website.
23
- </p>
24
- </div>
25
- <div class="front-page-intro-cards">
26
- <h2 id="front-page-start" class="heading-line heading-line-white">Start your integration</h2>
27
- <div class="row mt-4">
28
- <div class="{{ card_col_class }}">
29
- {% include card.html title='Checkout'
30
- title_type="h2"
31
- text='With our Checkout you get the pre-built all-in-one
32
- payment solution, complete with a checkin interface and
33
- payment menu.'
34
- icon_content='shopping_cart'
35
- icon_outlined=true
36
- to='/checkout'
37
- %}
38
- </div>
39
- <div class="{{ card_col_class }}">
40
- {% include card.html title='Payments'
41
- title_type="h2"
42
- text='Payments gives you a one-by-one integration with more
43
- customization for each payment method to build your own
44
- payment menu.'
45
- icon_content='credit_card'
46
- to='/payments'
47
- %}
48
- </div>
49
- </div>
50
- </div>
51
- </div>
52
-
53
- <div class="front-page-merchants">
54
- <h6>Trusted by</h6>
55
- <div class="merchants-container justify-content-xxl-between">
56
- <a class="merchant-link">
57
- {% include img/merchants/logo-schibsted.svg %}
58
- </a>
59
- <a class="merchant-link">
60
- {% include img/merchants/logo-ica.svg %}
61
- </a>
62
- <a class="merchant-link">
63
- {% include img/merchants/logo-elkjop.svg %}
64
- </a>
65
- <a class="merchant-link">
66
- {% include img/merchants/logo-synsam.svg %}
67
- </a>
68
- <a class="merchant-link">
69
- {% include img/merchants/logo-coop.svg %}
70
- </a>
71
- <a class="merchant-link">
72
- {% include img/merchants/logo-svenskaspel.svg %}
73
- </a>
74
- <a class="merchant-link">
75
- {% include img/merchants/logo-skanetrafiken.svg %}
76
- </a>
77
- </div>
78
- </div>
79
- </div>
80
-
81
- <a href="https://ecom.externalintegration.payex.com/pspdemoshop" class="front-page-demoshop">
82
- <span class="front-page-demoshop-text">
83
- <span class="h2">Try our Demoshop<span>.</span></span>
84
- <span class="demoshop-text-description">
85
- Unsure about how it all works? See how our checkout and payment methods are used
86
- in practice!
87
- </span>
88
- </span>
89
- <span class="front-page-demoshop-link">
90
- <span class="h3">Go to the demoshop</span>
91
- <i class="material-icons">arrow_forward</i>
92
- <span class="demoshop-link-img">
93
- <img class="demoshop-link-img-mobile d-md-none d-lg-flex d-xl-none d-xxl-flex"
94
- src="/assets/img/demoshop-mobile.svg" alt="demoshop-mobile" />
95
- <img class="demoshop-link-img-mobile d-none d-md-none d-lg-flex d-xl-none"
96
- src="/assets/img/demoshop-mobile2.svg" alt="demoshop-mobile2" />
97
- <img class="demoshop-link-img-web d-none d-sm-none d-md-flex d-lg-none d-xl-flex"
98
- src="/assets/img/demoshop-web.svg" alt="demoshop-web" />
99
- </span>
100
- </span>
101
- </a>
102
-
103
- <div class="front-page-container">
104
- <div class="front-page-cards-sdk">
105
- <h2 id="front-page-sdk" class="heading-line heading-line-sdk">Looking for SDKs?</h2>
106
- <div class="row mt-4">
107
- <div class="{{ card_col_class }}">
108
- {% include card.html title='Android SDK'
109
- text='Learn more about how to integrate our Android SDK'
110
- icon_content='img/sdks/logo-android.svg'
111
- icon_svg=true
112
- type='sdk'
113
- to=''
114
- %}
115
- </div>
116
- <div class="{{ card_col_class }}">
117
- {% include card.html title='Swift SDK'
118
- text='Learn more about how to integrate our Swift SDK'
119
- icon_content='img/sdks/logo-swift.svg'
120
- icon_svg=true
121
- type='sdk'
122
- to=''
123
- %}
124
- </div>
125
- <div class="{{ card_col_class }}">
126
- {% include card.html title='.NET SDK'
127
- text='Learn more about how to integrate our .NET SDK'
128
- icon_content='img/sdks/logo-net.svg'
129
- icon_svg=true
130
- type='sdk'
131
- to=''
132
- %}
133
- </div>
134
- <div class="{{ card_col_class }}">
135
- {% include card.html title='PHP SDK'
136
- text='Learn more about how to integrate our PHP SDK'
137
- icon_content='img/sdks/logo-php.svg'
138
- icon_svg=true
139
- type='sdk'
140
- to=''
141
- %}
142
- </div>
143
- </div>
144
- </div>
145
-
146
- <div class="front-page-cards-module">
147
- <h2 id="front-page-module" class="heading-line heading-line-module">Or perhaps modules?</h2>
148
- <div class="row mt-4">
149
- <div class="{{ card_col_class }}">
150
- {% include card.html title='Episerver'
151
- text='See how you can integrate the Episerver module'
152
- icon_content='img/modules/logo-episerver.svg'
153
- icon_svg=true
154
- type='module'
155
- to=''
156
- %}
157
- </div>
158
- <div class="{{ card_col_class }}">
159
- {% include card.html title='Magento 2'
160
- text='See how you can integrate the Magento 2 module'
161
- icon_content='img/modules/logo-magento2.svg'
162
- icon_svg=true
163
- type='module'
164
- to=''
165
- %}
166
- </div>
167
- <div class="{{ card_col_class }}">
168
- {% include card.html title='WooCommerce'
169
- text='See how you can integrate the WooCommerce module'
170
- icon_content='img/modules/logo-woocommerce.svg'
171
- icon_svg=true
172
- type='module'
173
- to=''
174
- %}
175
- </div>
176
- </div>
177
- </div>
178
-
179
- <div class="front-page-release-notes">
180
- <h2 id="front-page-release-notes" class="heading-line heading-line-green">What's new in the documentation
181
- </h2>
182
- {% include release_notes.html num_dates=num_dates %}
183
- <a href="/resources/release-notes">See full release notes</a>
184
- </div>
185
-
186
- <div class="front-page-cards-extra">
187
- <h2 id="front-page-extra-resources" class="heading-line">Extra resources</h2>
188
- <div class="row mt-4">
189
- <div class="{{ card_col_class }}">
190
- {% include card.html title='OS development guidelines'
191
- text='This is how we create an inclusive environment'
192
- icon_content='account_circle'
193
- icon_outlined=true
194
- to=''
195
- %}
196
- </div>
197
- <div class="{{ card_col_class }}">
198
- {% include card.html title='Test data'
199
- text='Get the required data for testing in our interfaces'
200
- icon_content='content_paste'
201
- to=''
202
- %}
203
- </div>
204
- <div class="{{ card_col_class }}">
205
- {% include card.html title='Terminology'
206
- text='Get a better understanding of the terms we use'
207
- icon_content='menu_book'
208
- to=''
209
- %}
210
- </div>
211
- <div class="{{ card_col_class }}">
212
- {% include card.html title='See all resources (7)'
213
- text='Data protection, public migration key etc'
214
- no_icon=true
215
- to=''
216
- %}
217
- </div>
218
- </div>
219
- </div>
220
-
221
- <div class="front-page-contact">
222
- <div class="front-page-contact-content">
223
- <div class="row">
224
- <div class="col-xl-7">
225
- <h2 id="front-page-contact" class="heading-line heading-line-long">Can't find what you are
226
- looking for?</h2>
227
- <p>
228
- We are always trying to make the developer portal as
229
- good as it can be please don’t hesitate to contact us.
230
- </p>
231
- </div>
232
- <div class="col-xl-5 d-flex align-items-center justify-content-center">
233
- <button class="btn">Contact us here</button>
234
- </div>
235
- </div>
236
- </div>
237
- </div>
238
-
239
- </div>
240
- </div>