swedbank-pay-design-guide-jekyll-theme 2.1.12.pre.beta.2 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -30
- data/_layouts/default.html +0 -1
- data/assets/css/pygments-autumn.css +1 -1
- data/assets/js/cookie-consent.js +16 -1
- data/lib/gem_version.rb +1 -1
- 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: 9bd37c2233ead03ea2c171bf9795fa104a554ece5d15e9dc718183daf0a19d72
|
4
|
+
data.tar.gz: c6f6dc25aa0ef2263681bb40bc5f491f41b94fe0eefc4ed6d01491b2e2e3ecab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afb463bf995d91cab9e6377226005a8bfe30467a59e5ace1b4841674f1caf5011f8ae497258977d1d4ee7ff3446cecd4c327b48de8f87f332cbce11b2628f264
|
7
|
+
data.tar.gz: f2b5fdcc985f13da39798ec5aaf04aadd6ec2ac52abacb7af718d640512535b6f89ad7f65cd8bfc93d323ce0cb307fb26c617f04e3d61dfd73737aca64b1c398
|
data/README.md
CHANGED
@@ -20,12 +20,22 @@ 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
|
-
|
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
|
25
|
+
the changes in the browser after a refresh, just like normal.
|
26
|
+
|
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
|
28
|
+
theme-gem, please edit the regexp in `swedbankpay.gemspec` accordingly.
|
29
|
+
|
30
|
+
|
31
|
+
### Docker (recommended)
|
24
32
|
|
25
|
-
1.
|
26
|
-
|
27
|
-
|
28
|
-
|
33
|
+
1. [Clone this repository][clone].
|
34
|
+
2. [Install Docker Personal][docker]. Select default settings when prompted.
|
35
|
+
3. Open a console window at the root of the repository and run `docker-compose up`. This will create a docker container.
|
36
|
+
4. Open Docker Desktop and start the container if not already running.
|
37
|
+
10. Open `http://localhost:4000` in a browser.
|
38
|
+
|
29
39
|
|
30
40
|
### Manual install
|
31
41
|
|
@@ -35,35 +45,20 @@ The Docker installation is the one we recommend to use for its simplicity.
|
|
35
45
|
3. To install the [Ruby Gems][gems] this web site requires, you first need to
|
36
46
|
install [Bundler][bundler].
|
37
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)
|
38
52
|
5. Once Ruby ,Bundler, and Graphviz, is in place, type `bundle install` inside the root
|
39
53
|
folder of this repository.
|
40
54
|
6. Run `bundle exec jekyll serve` to start the website.
|
41
|
-
7. Open
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
* `bpruitt-goddard.mermaid-markdown-syntax-highlighting`, to give syntax
|
48
|
-
highlighting to Mermaid diagrams in Markdown files.
|
49
|
-
* `yzhang.markdown-all-in-one`, to enable a plethora of Markdown features,
|
50
|
-
most importantly formatting of Markdown tables with VS Code's built-in
|
51
|
-
format functionality.
|
52
|
-
* `stkb.rewrap`, to make line-breaking text at 80 characters easier.
|
53
|
-
* `supperchong.pretty-json` to format selected JSON snippets in code
|
54
|
-
examples.
|
55
|
-
* `sissel.shopify-liquid` for syntax highlighting of [Liquid][liquid].
|
56
|
-
* [Set up a ruler at 80 characters][vsc-ruler] by
|
57
|
-
adding `"editor.rulers": [80]` to its configuration.
|
58
|
-
|
59
|
-
Jekyll should now be fired up with this theme. You can now add pages, documents,
|
60
|
-
data, etc. like normal to test your theme's contents. As you make modifications
|
61
|
-
to your theme and to your content, the site will regenerate and you should see
|
62
|
-
the changes in the browser after a refresh, just like normal.
|
55
|
+
7. Open in a browser.
|
56
|
+
|
57
|
+
|
58
|
+
### Visual Studio Code plugins
|
59
|
+
|
60
|
+
You might want to install plugins for Markdown, Mermaid, JSON and Liquid as this will enhance your coding experience.
|
63
61
|
|
64
|
-
When the theme is released, only the files in `_layouts`, `_includes`, `_sass`
|
65
|
-
and `assets` tracked with Git will be bundled. To add a custom directory to your
|
66
|
-
theme-gem, please edit the regexp in `swedbankpay.gemspec` accordingly.
|
67
62
|
|
68
63
|
## Contributing
|
69
64
|
|
@@ -91,6 +86,7 @@ agreement][cla].
|
|
91
86
|
[developer-portal]: <https://developer.swedbankpay.com/>
|
92
87
|
[docker]: <https://www.docker.com/>
|
93
88
|
[gems]: <https://rubygems.org/>
|
89
|
+
[git]: <https://git-scm.com/downloads>
|
94
90
|
[github]: <https://github.com/SwedbankPay/swedbank-pay-design-guide-jekyll-theme>
|
95
91
|
[graphviz]: <https://graphviz.org/download/>
|
96
92
|
[license-badge]: https://img.shields.io/github/license/SwedbankPay/swedbank-pay-design-guide-jekyll-theme
|
data/_layouts/default.html
CHANGED
@@ -54,7 +54,6 @@
|
|
54
54
|
<script src="{{ "/assets/tipuesearch/tipuesearch_set.js" | relative_url }}"></script>
|
55
55
|
<script src="{{ "/assets/tipuesearch/tipuesearch.min.js" | relative_url }}"></script>
|
56
56
|
{%- endif %}
|
57
|
-
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="77c777e5-115a-4e3d-81ec-cc857a4ac846"></script>
|
58
57
|
</head>
|
59
58
|
|
60
59
|
<body>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.highlight .hll { background-color: #ffffcc }
|
2
2
|
.highlight { background: #ffffff; }
|
3
3
|
.highlight .c { color: #aaaaaa; font-style: italic } /* Comment */
|
4
|
-
.highlight .err { color: #
|
4
|
+
.highlight .err { color: #FFAAAA; } /* Error */
|
5
5
|
.highlight .k { color: #0000aa } /* Keyword */
|
6
6
|
.highlight .ch { color: #aaaaaa; font-style: italic } /* Comment.Hashbang */
|
7
7
|
.highlight .cm { color: #aaaaaa; font-style: italic } /* Comment.Multiline */
|
data/assets/js/cookie-consent.js
CHANGED
@@ -30,8 +30,23 @@ function inactivateClarityCookies() {
|
|
30
30
|
deleteCookie("_clsk");
|
31
31
|
}
|
32
32
|
|
33
|
+
window.addEventListener("DOMContentLoaded", (event) => {
|
34
|
+
if (location.host === "developer.swedbankpay.com") {
|
35
|
+
var script = document.createElement('script');
|
36
|
+
script.src = 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js';
|
37
|
+
script.type = "text/javascript";
|
38
|
+
script.charset = "UTF-8";
|
39
|
+
script.setAttribute("data-domain-script", "77c777e5-115a-4e3d-81ec-cc857a4ac846");
|
40
|
+
document.body.appendChild(script);
|
41
|
+
}
|
42
|
+
else {
|
43
|
+
document.cookie = "_clck=;domain=.swedbankpay.com;expires=Thu, 01 Jan 1970 00:00:01 GMT";
|
44
|
+
document.cookie = "_clsk=;domain=.swedbankpay.com;expires=Thu, 01 Jan 1970 00:00:01 GMT";
|
45
|
+
}
|
46
|
+
});
|
47
|
+
|
33
48
|
window.addEventListener("OneTrustGroupsUpdated", (event) => {
|
34
|
-
if (event.detail.indexOf("C0002") !== -1) {
|
49
|
+
if (event.detail && event.detail.indexOf("C0002") !== -1) {
|
35
50
|
activateClarity();
|
36
51
|
}
|
37
52
|
else {
|
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.1.12
|
4
|
+
version: 2.1.12
|
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-
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -501,9 +501,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
501
501
|
version: 2.5.0
|
502
502
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
503
503
|
requirements:
|
504
|
-
- - "
|
504
|
+
- - ">="
|
505
505
|
- !ruby/object:Gem::Version
|
506
|
-
version:
|
506
|
+
version: '0'
|
507
507
|
requirements: []
|
508
508
|
rubygems_version: 3.1.6
|
509
509
|
signing_key:
|