swedbank-pay-design-guide-jekyll-theme 2.5.3 → 3.0.0
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 +4 -4
- data/_includes/doc-container.html +3 -3
- data/_includes/release_notes.html +15 -25
- data/_includes/tabs.html +2 -14
- data/lib/gem_version.rb +1 -1
- data/lib/sidebar_renderer.rb +11 -13
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e28064d55bb8b2b97cc7a6cfd24178347a6fec42c3cb4c00b7925abab1f1f02f
|
4
|
+
data.tar.gz: 4fd452ed00c0b6fe2ccc252396b3a335ace084d1174b89a3afce76f3f6dc8a5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3b046c74104f352fff4fa1dc1219c34a41fcd8cb1ce9b14d0843fc15803bad98546cbc27cf4156a18ca5fcc1d89461a5f9fa2c7fe19cd06295cadd304dbc872
|
7
|
+
data.tar.gz: ba283af076e0aecf2060ddcc559b5e47618600f81d40d1219f41e11ea63a8d0df955d84a920af3446ea8117fc43b6eb28808b2679934cfb88e30396c0b7d1616
|
@@ -3,7 +3,7 @@
|
|
3
3
|
normal-padding
|
4
4
|
{% elsif page.card_overview %}
|
5
5
|
normal-padding max-width-card-overview
|
6
|
-
{% elsif page.
|
6
|
+
{% elsif page.release_notes %}
|
7
7
|
dg-front-page py-0
|
8
8
|
{% else %}
|
9
9
|
normal-padding max-width
|
@@ -14,8 +14,8 @@ normal-padding max-width
|
|
14
14
|
<article>
|
15
15
|
{% if page.card_overview %}
|
16
16
|
{% include card-overview.html %}
|
17
|
-
{% elsif page.
|
18
|
-
{% include release_notes.html num_of_releases_to_display=5 %}
|
17
|
+
{% elsif page.release_notes %}
|
18
|
+
{% include release_notes.html num_of_releases_to_display=5 release_notes_title="What's new in " %}
|
19
19
|
{% else %}
|
20
20
|
{% include anchor_headings.html html=content anchorClass='header-anchor' %}
|
21
21
|
{% endif %}
|
@@ -1,32 +1,19 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
**Parameters
|
3
|
-
release_notes: The release notes pages to use if sitePage.content cannot be used.
|
4
|
-
{%- endcomment -%}
|
5
|
-
|
6
|
-
{% assign release_notes = include.release_notes %}
|
7
1
|
{% assign num_of_releases_to_display = include.num_of_releases_to_display %}
|
8
|
-
{% assign
|
9
|
-
|
10
|
-
{% if page.url contains '/release-notes' %}
|
11
|
-
{% if release_notes %}
|
12
|
-
{% assign max_cnt = release_notes | markdownify | split: '</h2>' | size %}
|
13
|
-
{% assign releases = release_notes | markdownify | split: '<h2' | slice: 1, num_of_releases_to_display %}
|
14
|
-
{% assign archive = release_notes | markdownify | split: '<h2' | slice: min_cnt, max_cnt %}
|
15
|
-
{% else %}
|
16
|
-
{% for sitePage in site.pages %}
|
17
|
-
{% if sitePage.url == page.url %}
|
18
|
-
{% assign max_cnt = sitePage.content | markdownify | split: '</h2>' | size %}
|
19
|
-
{% assign releases = sitePage.content | markdownify | split: '<h2' | slice: 1, num_of_releases_to_display %}
|
20
|
-
{% assign archive = sitePage.content | markdownify | split: '<h2' | slice: min_cnt, max_cnt %}
|
21
|
-
{% endif %}
|
22
|
-
{% endfor %}
|
23
|
-
{% endif %}
|
24
|
-
{% endif %}
|
25
|
-
|
2
|
+
{% assign release_notes_title = include.release_notes_title %}
|
26
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 %}
|
27
10
|
<section class="dg-changelog-container d-flex flex-column mb-0">
|
28
11
|
<div class="container dg-changelog-content">
|
29
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>
|
30
17
|
{% include alert.html type="informative" icon="info" header="Version numbers"
|
31
18
|
body="The version numbers used in headers on this page refers to the version of
|
32
19
|
this very documentation, not to a version of any APIs described by it." %}
|
@@ -46,7 +33,7 @@ release_notes: The release notes pages to use if sitePage.content cannot be used
|
|
46
33
|
{{ release_value[1] | strip }}
|
47
34
|
</div>
|
48
35
|
{% assign version_list = versions | shift %}
|
49
|
-
<div class="
|
36
|
+
<div class="dg-changelog-description px-0">
|
50
37
|
{% for version in version_list %}
|
51
38
|
{% assign version_parts = version | split: '</h3>' %}
|
52
39
|
{% assign version_value = version_parts[0] | split: '>' %}
|
@@ -92,4 +79,7 @@ release_notes: The release notes pages to use if sitePage.content cannot be used
|
|
92
79
|
{% endif %}
|
93
80
|
|
94
81
|
</section>
|
82
|
+
{% endif %}
|
83
|
+
|
84
|
+
{% endfor %}
|
95
85
|
{% endif %}
|
data/_includes/tabs.html
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
{%- comment -%}
|
2
2
|
**Parameters
|
3
3
|
tab_list(required): An array with items having the attributes title(required), content_text (required),
|
4
|
-
content_src(optional), mark_with_star (optional)
|
4
|
+
content_src(optional), mark_with_star (optional)
|
5
5
|
default_tab_index(optional): Index of the tab to be active by default, starting from 1
|
6
|
-
has_release_notes(optional): Indicate if the tabs contains release notes.
|
7
6
|
{%- endcomment -%}
|
8
7
|
|
9
8
|
{% assign tabs = include.tab_list %}
|
@@ -30,12 +29,7 @@ has_release_notes(optional): Indicate if the tabs contains release notes.
|
|
30
29
|
{% capture sourced_content %}
|
31
30
|
{% include {{tab.content_src}} %}
|
32
31
|
{% endcapture %}
|
33
|
-
|
34
|
-
{% if include.has_release_notes %}
|
35
|
-
{% include release_notes.html release_notes=sourced_content num_of_releases_to_display=5 %}
|
36
|
-
{% else %}
|
37
32
|
{{ sourced_content | markdownify }}
|
38
|
-
{% endif %}
|
39
33
|
</div>
|
40
34
|
{% endif %}
|
41
35
|
{% endfor %}
|
@@ -44,13 +38,7 @@ has_release_notes(optional): Indicate if the tabs contains release notes.
|
|
44
38
|
var defaultIndex = {{ default_tab_index | jsonify }};
|
45
39
|
const allTabs = {{ tabs | jsonify }};
|
46
40
|
const compiledTabTextContents = allTabs?.map(tab => tab.content_text);
|
47
|
-
const compiledTabSrcContents = $(".tab-src");
|
48
|
-
const hasReleaseNotes = {{ include.has_release_notes | jsonify }};
|
49
|
-
if(hasReleaseNotes){
|
50
|
-
const container = $(".doc-container");
|
51
|
-
container.attr("class", "doc-container dg-front-page py-0");
|
52
|
-
}
|
53
|
-
|
41
|
+
const compiledTabSrcContents = $(".tab-src");
|
54
42
|
</script>
|
55
43
|
|
56
44
|
<script>
|
data/lib/gem_version.rb
CHANGED
data/lib/sidebar_renderer.rb
CHANGED
@@ -28,23 +28,21 @@ module SwedbankPay
|
|
28
28
|
return if pages.empty?
|
29
29
|
|
30
30
|
pages.each do |page|
|
31
|
-
|
32
|
-
|
33
|
-
name = page.filename || page.name || page.to_s
|
34
|
-
|
35
|
-
if sidebar_html.nil?
|
36
|
-
SidebarLogger.warn("No HTML rendered for #{name}.")
|
37
|
-
next
|
38
|
-
end
|
31
|
+
sidebar_html = render_sidebar(page)
|
32
|
+
name = page.filename || page.name || page.to_s
|
39
33
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
34
|
+
if sidebar_html.nil?
|
35
|
+
SidebarLogger.warn("No HTML rendered for #{name}.")
|
36
|
+
next
|
37
|
+
end
|
44
38
|
|
45
|
-
|
39
|
+
if page.sidebar_container.nil?
|
40
|
+
SidebarLogger.warn("No sidebar container found in '#{name}'. #{page.filename}")
|
41
|
+
next
|
46
42
|
end
|
47
43
|
|
44
|
+
page.sidebar_container.inner_html = sidebar_html
|
45
|
+
|
48
46
|
page.save
|
49
47
|
|
50
48
|
render_pages(page.children)
|
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:
|
4
|
+
version: 3.0.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: 2025-
|
11
|
+
date: 2025-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -502,14 +502,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
502
502
|
requirements:
|
503
503
|
- - ">="
|
504
504
|
- !ruby/object:Gem::Version
|
505
|
-
version:
|
505
|
+
version: 3.1.0
|
506
506
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
507
507
|
requirements:
|
508
508
|
- - ">="
|
509
509
|
- !ruby/object:Gem::Version
|
510
510
|
version: '0'
|
511
511
|
requirements: []
|
512
|
-
rubygems_version: 3.
|
512
|
+
rubygems_version: 3.3.27
|
513
513
|
signing_key:
|
514
514
|
specification_version: 4
|
515
515
|
summary: Swedbank Pay Design Guide theme for Jekyll
|