swedbank-pay-design-guide-jekyll-theme 2.2.8 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/_includes/alert.html +1 -2
- data/_includes/doc-container.html +12 -8
- data/_includes/release_notes.html +75 -20
- data/lib/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604c15e76c253760308c63d9789afad74fd517a2a162270b8e7406a181b95ca4
|
4
|
+
data.tar.gz: 31c3e0a519633818d1518d382846712ec724dce33d72f36e9074ba471f30dd4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61eb8bf12a53876a869ffd01225cd43199a8a8f0389ba913f11d6f61b7e594284dffcfcc54660f26b74ab0b6b59280b97dac8f33726f6eb18a8fa82eca2f767e
|
7
|
+
data.tar.gz: 7441e15601c4a655cca63ef9583d16a3446d3f2d715ac1e7c68e236544410c67139832bdde896bc7373ddec8bf1e6bc8a957144364d9ed65e401248610f873d4
|
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
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
2
|
-
{%
|
3
|
-
{%
|
4
|
-
{%
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
17
|
-
<div class="
|
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
|
-
|
23
|
-
|
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">{{ 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
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.
|
4
|
+
version: 2.3.0
|
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-
|
11
|
+
date: 2024-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|