swedbank-pay-design-guide-jekyll-theme 2.2.8 → 2.3.1

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: fc1a3ad20476d1399f0e007ce21563d55eae9a25f445431068f2de06a3c15523
4
- data.tar.gz: 5a95f1576e27257201da4f0dafeb018b863dcab6db910d30031a1b7cf3bb9988
3
+ metadata.gz: 319ca079056f831881f8e19ec757732471c118cfbc329252130a01cfca535ed3
4
+ data.tar.gz: 90305235fbe71dd66d84db800b2da7125d4e5f8b90f86855af5e25a6c9ab0df2
5
5
  SHA512:
6
- metadata.gz: 2136a46ace238a8950235174c72c8ff83dce6eb3a15bb2bf087c875347174306b4306acbf8f53780882125823c448260a09872a6517737685c540d84fa3844a4
7
- data.tar.gz: 241381e9fa8b0464256d1cc4abfe911a9242afcccb6ed7a7b84b2aa7f74154873308ec2ec0853310e307996894e28e6b35fa97d4ab4e0583cebe4084d97ef15e
6
+ metadata.gz: 92b6055fa076eaf9baea12f11f2f335456f4a268d1418f5709e7bd9c7851e6167f26f97e6ccfc3b641ed57ce3b5911b3002ad52a55e055088dfd2741c5ec956e
7
+ data.tar.gz: 1003bb8b3065357c0be38534a0fd2781fb038f081ae362881df30658126bd02c8f204733742ef3ca570e4b4680d5b597fdcfbf580f08d2200092e73880618a5d
data/README.md CHANGED
@@ -20,8 +20,8 @@ like to host it locally on your computer, you have two options, manual install
20
20
  or [Docker][docker].
21
21
  The Docker installation is the one we recommend to use for its simplicity.
22
22
 
23
- After either a Docker or manual installation Jekyll should be fired up with this theme. You can now add pages, documents,
24
- data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, the site will regenerate and you should see
23
+ After either a Docker or manual installation Jekyll should be fired up with this theme. You can now add pages, documents, data, etc.
24
+ to test your theme's contents. As you make modifications to your theme and to your content, the site will regenerate and you should see
25
25
  the changes in the browser after a refresh, just like normal.
26
26
 
27
27
  When the theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled. To add a custom directory to your
data/_includes/alert.html CHANGED
@@ -4,8 +4,7 @@
4
4
  {% assign header = include.header | markdownify | remove: '<p>' | remove: '</p>' | strip %}
5
5
  {% assign body = include.body | markdownify | remove: '<p>' | remove: '</p>' | strip %}
6
6
 
7
- <div
8
- class="alert {{ type_class }}">
7
+ <div class="alert {{ type_class }}">
9
8
  {% if icon != blank and icon != empty and icon != nil %}
10
9
  <i class="material-icons alert-icon mr-3">{{ icon }}</i>
11
10
  {% endif %}
@@ -1,19 +1,23 @@
1
1
  {% capture max_width_class %}
2
- {% if page.layout == 'front-page' %}
3
- no-padding
4
- {% elsif page.card_overview %}
5
- normal-padding max-width-card-overview
6
- {% else %}
7
- normal-padding max-width
8
- {% endif %}
2
+ {% if page.layout == 'front-page' %}
3
+ no-padding
4
+ {% elsif page.card_overview %}
5
+ normal-padding max-width-card-overview
6
+ {% elsif page.release_notes %}
7
+ dg-front-page py-0
8
+ {% else %}
9
+ normal-padding max-width
10
+ {% endif %}
9
11
  {% endcapture %}
10
12
 
11
13
  <div class="doc-container {{ max_width_class | strip }}">
12
14
  <article>
13
15
  {% if page.card_overview %}
14
16
  {% include card-overview.html %}
17
+ {% elsif page.release_notes %}
18
+ {% include release_notes.html num_of_releases_to_display=5 release_notes_title="What's new in " %}
15
19
  {% else %}
16
20
  {% include anchor_headings.html html=content anchorClass='header-anchor' %}
17
21
  {% endif %}
18
22
  </article>
19
- </div>
23
+ </div>
@@ -1,30 +1,85 @@
1
- {% assign num_dates = include.num_dates %}
2
- {% for page in site.pages %}
3
- {% assign release_notes_url = '/resources/release-notes' %}
4
- {% if page.url contains release_notes_url %}
5
- <div class="release-notes-container">
6
- {% assign dates = page.content | markdownify | split: '<h2' | slice: 1, num_dates %}
7
-
8
- {% for date in dates %}
9
- <div class="row">
10
- {% assign versions = date | split: '<h3' %}
11
- {% assign date_id = date | regex_capture: 'id="([^"]+)"' | first %}
12
- <div class="col-md-2 release-notes-date">
13
- {% assign date_value = versions[0] | remove: '</h2>' | split: '>' %}
14
- <a href="{{ release_notes_url }}#{{ date_id }}">{{ date_value[1] | strip }}</a>
1
+ {% assign num_of_releases_to_display = include.num_of_releases_to_display %}
2
+ {% assign release_notes_title = include.release_notes_title %}
3
+ {% if page.url contains '/release-notes' %}
4
+ {% for sitePage in site.pages %}
5
+ {% if sitePage.url == page.url %}
6
+ {% assign min_cnt = num_of_releases_to_display | plus: 1 %}
7
+ {% assign max_cnt = sitePage.content | split: '</h2>' | size %}
8
+ {% assign releases = sitePage.content | markdownify | split: '<h2' | slice: 1, num_of_releases_to_display %}
9
+ {% assign archive = sitePage.content | markdownify | split: '<h2' | slice: min_cnt, max_cnt %}
10
+ <section class="dg-changelog-container d-flex flex-column mb-0">
11
+ <div class="container dg-changelog-content">
12
+ <div class="row mt-3">
13
+ <span class="dg-changlelog-title">
14
+ {{ release_notes_title | append: sitePage.lead_title }}
15
+ <div class="dg-changelog-divider my-2"></div>
16
+ </span>
17
+ {% include alert.html type="informative" icon="info" header="Version numbers"
18
+ body="The version numbers used in headers on this page refers to the version of
19
+ this very documentation, not to a version of any APIs described by it." %}
20
+ </div>
21
+ {% for release in releases %}
22
+ {% if forloop.length > 0 %}
23
+ {% if forloop.last %}
24
+ <div class="row pb-2 mt-4">
25
+ {% else %}
26
+ <div class="row border-bottom pb-2 mt-4">
27
+ {% endif %}
28
+ {% endif %}
29
+ {% assign versions = release | split: '<h3' %}
30
+ {% assign release_id = release | regex_capture: 'id="([^"]+)"' | first %}
31
+ <div class="col-md-2 px-0 pb-2">
32
+ {% assign release_value = versions[0] | remove: '</h2>' | split: '>' %}
33
+ {{ release_value[1] | strip }}
15
34
  </div>
16
- {% assign version_list = versions | shift %}
17
- <div class="col-md-10">
35
+ {% assign version_list = versions | shift %}
36
+ <div class="dg-changelog-description px-0">
18
37
  {% for version in version_list %}
19
38
  {% assign version_parts = version | split: '</h3>' %}
20
39
  {% assign version_value = version_parts[0] | split: '>' %}
21
40
  {% assign version_id = version | regex_capture: 'id="([^"]+)"' | first %}
22
- <p class="h4"><a href="{{ release_notes_url }}#{{ version_id }}">{{ version_value[1] }}</a></p>
23
- {{ version_parts[1] }}
41
+ <h4 class="h4">{{ version_value[1] }}</h4>
42
+ <p class="mt-2">{{ version_parts[1] }}</p>
24
43
  {% endfor %}
25
44
  </div>
26
45
  </div>
46
+ {% endfor %}
47
+ </div>
48
+
49
+ {% if archive.size > 0 %}
50
+ <div class="mb-3">
51
+ <div class="accordion ">
52
+ <button type="button" class="accordion-header" aria-expanded="false" aria-controls="archive">Archive</button>
53
+ <div class="accordion-body" id="archive">
54
+ <div class="container dg-changelog-content my-auto">
55
+ {% for archive_release in archive %}
56
+ {% assign archive_versions = archive_release | split: '<h3' %}
57
+ {% assign archive_release_id = archive_release | regex_capture: 'id="([^"]+)"' | first %}
58
+ {% assign archive_release_value = archive_versions[0] | remove: '</h2>' | split: '>' %}
59
+ {% assign archive_version_list = archive_versions | shift %}
60
+ <div class="row border-bottom pb-2 mt-4">
61
+ <div class="col-md-2 px-0 pb-2">
62
+ {{ archive_release_value[1] | strip }}
63
+ </div>
64
+ <div class="dg-changelog-description px-0">
65
+ {% for archive_version in archive_version_list %}
66
+ {% assign archive_version_parts = archive_version | split: '</h3>' %}
67
+ {% assign archive_version_value = archive_version_parts[0] | split: '>' %}
68
+ {% assign archive_version_id = archive_version | regex_capture: 'id="([^"]+)"' | first %}
69
+ <h4 class="h4">{{ archive_version_value[1] }}</h4>
70
+ <p class="mt-2">{{ archive_version_parts[1] }}</p>
71
+ {% endfor %}
72
+ </div>
73
+ </div>
74
+ {% endfor %}
75
+ </div>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ {% endif %}
80
+
81
+ </section>
82
+ {% endif %}
83
+
27
84
  {% endfor %}
28
- </div>
29
85
  {% endif %}
30
- {% endfor %}
data/lib/gem_version.rb CHANGED
@@ -4,7 +4,7 @@ module Gem
4
4
  # Gem Specification
5
5
  class Specification
6
6
  def self.gem_version
7
- '2.2.8'
7
+ '2.3.1'
8
8
  end
9
9
  end
10
10
  end
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: 2.2.8
4
+ version: 2.3.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: 2024-03-26 00:00:00.000000000 Z
11
+ date: 2024-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday