swedbank-pay-design-guide-jekyll-theme 2.2.0 → 2.2.2

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: 194382516d8aba7bdff3499af5bd3c402b745436cdd9aaa7348cab3b9b99de66
4
- data.tar.gz: 4a52db1e4cbb182e0748596bffaf76656b0ce83625fcef8e72f55af1aa07e8e4
3
+ metadata.gz: 3c9edb790d2b95aa747c43b475ca512883458285565f1c502a460130b73da958
4
+ data.tar.gz: 0cbe8e2ea1640b9d35589c9a321c03ece463ca30d0e7faf901ec67cade0ee7d8
5
5
  SHA512:
6
- metadata.gz: de42a286b228e820e857d4ec7dfd0d8df10170cca878413cc09a64a9299d5f694dbf3f5db5e04ac86e23a6c84bf104a88935f1c7c7a81132faefe0d03d631e5a
7
- data.tar.gz: 04f7ac9359b102e8c9433d4e433b0c42bc54d8e7f1af2d70db307043b6e84c0ef7d55e63dd8961c3d9c6e22d776f3db93f7946ce80ca3c38c1bef0c14b393e15
6
+ metadata.gz: 289d79c416db7d7d084894cd3f6ec0dd443599c20d81c8e36f28350441d3f1138030b5c72e3f8574926031b8f00eef71431277d92d66e644a9312f1eac6558d8
7
+ data.tar.gz: e30133b04a0305fadfcf94a95b00f7a07735a3ea8e87304683cfd99045b268193f559ca021448e618e00eee31c40661e86388fa3e65f27c3490e270f899ec108
data/README.md CHANGED
@@ -40,24 +40,22 @@ theme-gem, please edit the regexp in `swedbankpay.gemspec` accordingly.
40
40
  ### Manual install
41
41
 
42
42
  1. [Clone this repository][clone].
43
- 2. Jekyll is written in [Ruby][ruby], so you'll need to download and install
44
- that. If you're installing on Windows, choose setup with DevKit.
45
- 3. To install the [Ruby Gems][gems] this web site requires, you first need to
46
- install [Bundler][bundler].
47
- 4. Install [Graphviz][graphviz], this will require Java.
48
- 5. Run Visual Studio Code (VSC) and open the repository.
49
- 6. Verify that Git is installed by running `git status` in VSC terminal.
50
- If Git is not properly installed, you will see an error message like the one below. Just [download Git][git] and install.
51
- ![Alt text](image.png)
52
- 7. Once Ruby ,Bundler, and Graphviz, is in place, type `bundle install` inside the root
53
- folder of this repository.
54
- 8. Run `bundle exec jekyll serve` to start the website.
55
- 9. Open in a browser.
43
+ 2. Close Visual Studio Code (VSC) if you have it running
44
+ 3. Jekyll is written in [Ruby][ruby], so you'll need to download and install
45
+ that.
46
+ Note: If you're installing on Windows, choose Ruby+Devkit Installers.
47
+ 4. Open VSC and open the repository
48
+ 5. Verify that Git is installed by running `git status` in VSC terminal.
49
+ If Git is not properly installed, you will see an error message like the one below. Just [download Git][git] and install.
50
+ ![Alt text](image.png)
51
+ 6. Type `bundle install` inside the root folder of this repository.
52
+ 7. Run `bundle exec jekyll serve` to start the website.
53
+ 8. Open in a browser.
56
54
 
57
55
 
58
56
  ### Visual Studio Code plugins
59
57
 
60
- You might want to install plugins for Markdown, Mermaid, JSON and Liquid as this will enhance your coding experience.
58
+ You might want to install plugins for Graphviz, JSON, Liquid, Markdown and Mermaid as this will enhance your coding experience.
61
59
 
62
60
 
63
61
  ## Contributing
@@ -73,7 +71,6 @@ The code within this repository is available as open source under the terms of
73
71
  the [Apache 2.0 License][license] and the [contributor's license
74
72
  agreement][cla].
75
73
 
76
- [bundler]: <https://bundler.io/>
77
74
  [cla-badge]: <https://cla-assistant.io/readme/badge/SwedbankPay/swedbank-pay-design-guide-jekyll-theme>
78
75
  [cla]: <https://cla-assistant.io/SwedbankPay/swedbank-pay-design-guide-jekyll-theme>
79
76
  [clone]: <https://help.github.com/articles/cloning-a-repository/>
@@ -93,7 +90,7 @@ agreement][cla].
93
90
  [license]: <https://opensource.org/licenses/MIT>
94
91
  [liquid]: <https://jekyllrb.com/docs/liquid/>
95
92
  [opengraph-image]: <https://repository-images.githubusercontent.com/209270355/36818080-53ee-11ea-896c-082addb851a6>
96
- [ruby]: <https://www.ruby-lang.org/en/>
93
+ [ruby]: <https://rubyinstaller.org/downloads/archives>
97
94
  [swedbankpay]: <https://swedbankpay.github.io/swedbank-pay-design-guide-jekyll-theme/>
98
95
  [test-badge]: <https://github.com/SwedbankPay/swedbank-pay-design-guide-jekyll-theme/workflows/Test/badge.svg>
99
96
  [vsc-ruler]: <https://stackoverflow.com/questions/29968499/vertical-rulers-in-visual-studio-code>
@@ -0,0 +1,20 @@
1
+ {%- comment -%}
2
+ **Parameters
3
+ title: Title
4
+ header: header content
5
+ json: json content
6
+ {%- endcomment -%}
7
+
8
+ <p class="code-view-header">
9
+ {{ include.title}}
10
+ <button class="code-view-copy" aria-label="Copy content to clipboard" value='{{include.json}}' onclick='javascript:navigator.clipboard.writeText(this.value)'>
11
+ copy json
12
+ </button>
13
+ </p>
14
+ ````http
15
+ {{include.header}}
16
+ ````
17
+
18
+ ````jsonc
19
+ {{include.json}}
20
+ ````
data/_sass/code-view.scss CHANGED
@@ -1,9 +1,25 @@
1
1
  @import 'colors.scss';
2
+ .code-view-copy {
3
+ display: flex;
4
+ font-family: Akkurat Mono,monospace;
5
+ font-size: .875rem;
6
+ font-weight: 400;
7
+ line-height: 1.25rem;
8
+ margin: 0;
9
+ padding: 0;
10
+ border:none;
11
+ background-color: #493c3b;
12
+ color: #FFFFFF;
13
+ text-decoration: underline;
14
+ }
15
+
16
+ .code-view-copy:hover {
17
+ text-decoration: none;
18
+ }
2
19
 
3
20
  .code-view {
4
21
  .code-view-table {
5
22
  .code-view-code {
6
-
7
23
  .nc,
8
24
  .nf {
9
25
  color: $code-green;
@@ -11,3 +27,31 @@
11
27
  }
12
28
  }
13
29
  }
30
+
31
+ .language-http {
32
+ .code-view {
33
+ .code-view-table {
34
+ .code-view-numbers {
35
+ display: none;
36
+ }
37
+
38
+ .code-view-code {
39
+ padding-left: 1rem;
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ .language-http:has(+ .language-js)
46
+ .language-http:has(+ .language-json),
47
+ .language-http:has(+ .language-jsonc) {
48
+ margin-bottom: 0 !important;
49
+
50
+ .code-view {
51
+ margin-bottom: 0;
52
+
53
+ .code-view-table {
54
+ border-radius: 0px;
55
+ }
56
+ }
57
+ }
@@ -228,15 +228,6 @@ function _handleSimpleSidebar (e) {
228
228
  searchButton.addEventListener("click", function(e) {
229
229
  const searchInput = document.querySelector(".search-input");
230
230
  const searchBtn = document.querySelector("#search-btn");
231
-
232
- if (searchInput.style.display !== "block") {
233
- searchInput.style.display = "block";
234
- searchBtn.style.borderTopLeftRadius = "0";
235
- searchBtn.style.borderBottomLeftRadius = "0";
236
- searchInput.focus();
237
- e.preventDefault();
238
- }
239
-
240
231
  return false;
241
232
  });
242
233
  });
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.0'
7
+ '2.2.2'
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.0
4
+ version: 2.2.2
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-01-26 00:00:00.000000000 Z
11
+ date: 2024-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -403,6 +403,7 @@ files:
403
403
  - _includes/card-overview.html
404
404
  - _includes/card-table.html
405
405
  - _includes/card.html
406
+ - _includes/code-example.html
406
407
  - _includes/doc-container.html
407
408
  - _includes/github.html
408
409
  - _includes/google_analytics.html