elixir-toolkit-theme 1.17.0 → 1.18.0

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: faa89cf0a705783f323a0752072a8e207c05a0aa2af59350dd048707bd56fa93
4
- data.tar.gz: cd5d72045a94edecdc128ecc085d0aa1e276c9da7abd1c14f062694f7ae6f790
3
+ metadata.gz: 702636aa170b2e75631a12f0d9be59517201ed939f85f05ad55995605eebfdd0
4
+ data.tar.gz: 3b65284656f88bd3ef65100136314bf63b8b26673e6f0209a2fe03e021fb935b
5
5
  SHA512:
6
- metadata.gz: ae9c134c870219a3c626069f6ecfac20840b6d8d3e44b800f69dc859ac61d8d8eb1d5fc6e9d57bf4bf9a4210ca33ba6069b0058abf16d78c5223a5be9a9caf24
7
- data.tar.gz: 7a912281fd2e2cdffff99a9de4525a66336abaf03d23959aaed7c6ff5b2261eba7ca6f7ec97727b89d8735568536c22c19b1a430ba365625f421bb4dfb7eefc6
6
+ metadata.gz: '007482963824a42c21fed1785de053c989aaf7d3a1c09f5524d29ff3a63051dbb6678765d743c8b707908a4eda36288f375743797b8926871d34fd2e80e377d0'
7
+ data.tar.gz: c7e480e1f14b95d2be8f990fbc15bb79663049cfe46e95b69135fac6ab7a19471c83f70649ec184a7e4992d47246902efcaa87729bee9d8635a90107f9fef394
data/README.md CHANGED
@@ -23,13 +23,16 @@ Its key features:
23
23
 
24
24
  ## Installation
25
25
 
26
- ### via GitHub Pages remote theme
26
+ ### via GitHub Pages remote theme (installation free!)
27
27
 
28
- The quickiest way to use Just The Docs is to use GitHub pages [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) feature in your `config.yml` file:
28
+ The quickest way to use the elixir-toolkit-theme is to use the GitHub pages [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) feature in your `config.yml` file:
29
29
 
30
30
  ```yaml
31
31
  remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
32
32
  ```
33
+
34
+ It also allows you to use a specific version of the theme by add `@X.X.X` to make sure your website keeps working iif breaking changes get introduced.
35
+
33
36
  ### via RubyGems:
34
37
 
35
38
  Alternatively you can install it as a Ruby Gem (preferred way if you use GitLab).
@@ -96,7 +99,7 @@ docker run -it --rm -p [::1]:4000:4000 -v $PWD:/srv/jekyll jekyll/jekyll:latest
96
99
 
97
100
  This will start the docker container and serve the website locally. Make sure the `.\_site` is not yet created to avoid permission errors.
98
101
 
99
- ## This theme is known to be used in:
102
+ ## This theme is known to be used in
100
103
 
101
104
  - [RDMkit](https://rdmkit.elixir-europe.org/)
102
105
  - [WorkflowHub project](https://about.workflowhub.eu/)
@@ -1,5 +1,5 @@
1
1
  <div class="events {{include.event_type}}s">
2
- {%- if include.title == "true" %}
2
+ {%- if include.title == true%}
3
3
  <h2>{{include.event_type | replace: "_", " " | capitalize}}s</h2>
4
4
  {%- endif %}
5
5
  {%- assign events = site.data.events %}
@@ -16,7 +16,7 @@
16
16
  {%- endif %}
17
17
  {%- if event.description %}
18
18
  {%- assign word_count = event.description | split: " " | size %}
19
- {%- if include.truncate == "true" and word_count > 40 %}
19
+ {%- if include.truncate == true and word_count > 40 %}
20
20
  <p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
21
21
  View description
22
22
  </a>
@@ -32,7 +32,7 @@
32
32
  {%- assign count = count | plus: 1 %}
33
33
  {%- endfor %}
34
34
  </ul>
35
- {%- if include.caption == "true" %}
35
+ {%- if include.caption == true%}
36
36
  <small>An overview of all our events can be fount on the <a href="{{'/events' | relative_url}}">events page</a>.</small>
37
37
  {%- endif %}
38
38
  </div>
data/_includes/head.html CHANGED
@@ -54,7 +54,6 @@
54
54
  <script src="{{ 'assets/js/anchor.min.js' | relative_url }}"></script>
55
55
  <script src="{{ 'assets/js/toc.js' | relative_url }}"></script>
56
56
  <script src="{{ 'assets/js/jquery.navgoco.js' | relative_url }}"></script>
57
- <script src="{{ 'assets/js/jquery.cookie.min.js' | relative_url }}"></script>
58
57
  <script src="{{ 'assets/js/main.js' | relative_url }}"></script>
59
58
  <script src="{{ 'assets/js/search.js' | relative_url }}"></script>
60
59
  {%- if page.datatable == true %}
data/_includes/image.html CHANGED
@@ -13,7 +13,7 @@
13
13
  {%- endif %}
14
14
  {%- if include.caption %}
15
15
  <figcaption class="figure-caption">
16
- {{include.caption}}
16
+ {{ include.caption | markdownify }}
17
17
  </figcaption>
18
18
  {%- endif %}
19
19
  {%- if include.inline != true %}
data/_includes/news.html CHANGED
@@ -1,8 +1,8 @@
1
1
  <div class="news">
2
- {%- if include.title == "true" %}
2
+ {%- if include.title == true %}
3
3
  <h2>Whats new?</h2>
4
4
  {%- endif %}
5
- {%- assign news = site.data.news | sort: "date"%}
5
+ {%- assign news = site.data.news | sort: "date" %}
6
6
  {%- assign count = 0 %}
7
7
  <ul class="list-unstyled mt-3">
8
8
  {%- for new in news reversed%}
@@ -11,7 +11,7 @@
11
11
  <p class="text-muted"><i class="far fa-calendar me-2"></i><time>{{ new.date | date_to_long_string }}</time>{% if new.linked_pr %}<b> - </b><i class="fa-solid fa-code-branch"></i><a href="{{ site.github.repository_url | append: '/pull/' | append: new.linked_pr }}">{{new.linked_pr }}</a>{% endif %}</p>
12
12
  {%- if new.description %}
13
13
  {%- assign word_count = new.description | split: " " | size %}
14
- {%- if include.truncate == "true" and word_count > 40 %}
14
+ {%- if include.truncate == true and word_count > 40 %}
15
15
  <p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
16
16
  View description
17
17
  </a>
@@ -30,7 +30,7 @@
30
30
  {%- endif %}
31
31
  {%- endfor %}
32
32
  </ul>
33
- {%- if include.caption == "true" %}
33
+ {%- if include.caption == true %}
34
34
  <small>For more news please visit our <a href="{{ '/news' | relative_url }}">news page</a>.</small>
35
35
  {%- endif %}
36
36
  </div>
data/assets/css/main.scss CHANGED
@@ -58,6 +58,11 @@ main {
58
58
  ol li,
59
59
  ul li {
60
60
  margin: 10px 0px;
61
+
62
+ &::marker {
63
+ color: $primary;
64
+ font-weight: 600;
65
+ }
61
66
  }
62
67
 
63
68
  img {
@@ -95,12 +100,6 @@ blockquote {
95
100
  background: $primary;
96
101
  }
97
102
 
98
- /*-----Color list marker-----*/
99
-
100
- ul li::marker {
101
- color: $primary;
102
- }
103
-
104
103
  /*-----Emoji styling-----*/
105
104
 
106
105
  main img.emoji {
data/assets/js/main.js CHANGED
@@ -76,24 +76,24 @@ $(function () {
76
76
  * Back to top button
77
77
  */
78
78
 
79
- var toggleHeight = $(window).outerHeight() / 2;
80
-
81
- $(window).scroll(function () {
82
- if ($(window).scrollTop() > toggleHeight) {
83
- //Adds active class to make button visible
84
- $("#back-to-top").addClass("visible");
85
-
86
- } else {
87
- //Removes active class to make button visible
88
- $("#back-to-top").removeClass("visible");
89
- }
90
- });
91
-
92
- //Scrolls the user to the top of the page again
93
- function topFunction() {
79
+ var toggleHeight = $(window).outerHeight() / 2;
80
+
81
+ $(window).scroll(function () {
82
+ if ($(window).scrollTop() > toggleHeight) {
83
+ //Adds active class to make button visible
84
+ $("#back-to-top").addClass("visible");
85
+
86
+ } else {
87
+ //Removes active class to make button visible
88
+ $("#back-to-top").removeClass("visible");
89
+ }
90
+ });
91
+
92
+ //Scrolls the user to the top of the page again
93
+ function topFunction() {
94
94
  document.body.scrollTop = 0; // For Safari
95
95
  document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
96
- }
96
+ }
97
97
 
98
98
 
99
99
  /**
@@ -127,3 +127,14 @@ function show_past_events() {
127
127
  elements.show();
128
128
  };
129
129
 
130
+ /**
131
+ * Making tables responsive
132
+ */
133
+ $(document).ready(function () {
134
+ $('table').each(function (i, obj) {
135
+ if (!$(obj).parents('.table-responsive').length) {
136
+ $(obj).wrap('<div class="table-responsive mt-4 mb-5"/>');
137
+ }
138
+ });
139
+
140
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -468,7 +468,6 @@ files:
468
468
  - assets/js/bootstrap.bundle.min.js
469
469
  - assets/js/bootstrap.bundle.min.js.map
470
470
  - assets/js/dataTables.bootstrap5.min.js
471
- - assets/js/jquery.cookie.min.js
472
471
  - assets/js/jquery.dataTables.min.js
473
472
  - assets/js/jquery.min.js
474
473
  - assets/js/jquery.min.map
@@ -1,8 +0,0 @@
1
- /*!
2
- * jQuery Cookie Plugin v1.3.1
3
- * https://github.com/carhartl/jquery-cookie
4
- *
5
- * Copyright 2013 Klaus Hartl
6
- * Released under the MIT license
7
- */
8
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});