elixir-toolkit-theme-plugins 0.1.2 → 0.1.4

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: 34d1f7cdbf2fb87c68a276f4e82e5eda1430140ab80a3ad9d26ab704420f9aca
4
- data.tar.gz: fa1b71622669b8d33453811d5d3ff9cac0b1d9509a8b85b1635dcc78c77a8a56
3
+ metadata.gz: 51b1e1c34269978fe9a4fbce7cfec054afab7249dca681e6c416853e657927d0
4
+ data.tar.gz: 44d34321341962899b93dba6359c6f726542e78342d4026aa6f4b6c079069674
5
5
  SHA512:
6
- metadata.gz: cfea28977cfb8420370f1a997c301d1e959972aeb566ef8417e8a6c62476008e2a357ef277a3f063a132162bc2ce7e7aa6dbde962bffdf48fd3a14b2872e7fda
7
- data.tar.gz: d29ea77d1943fee31614c7e8caa906a423ff10af06adfaf826475ebb45107b222b8490479e69de55f2a0af5f74e99aa67e6f471ffb876c3b4ea796595850121c
6
+ metadata.gz: 96fd0740e7d3501f4d856f72d074bf6d195fdd943a30b9d6b47eade263775a4033dcd92ef21b143c812553f5ce6298a812d2b0e1be0b5fb01ba8f80a410b5e5e
7
+ data.tar.gz: f1fa1db24d8fdb85395e3845143f4ba050122c04fc522eca75226eead75486ffeee05cff2246c1aefece3c5fa4d14ad715541a935787b056af88e664b87a99f5
@@ -11,11 +11,11 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
 
13
13
  steps:
14
- - uses: actions/checkout@v2
15
- - name: Set up Ruby
16
- uses: ruby/setup-ruby@v1.127.0
14
+ - uses: actions/checkout@v3
15
+ - name: Set up Ruby 3.1
16
+ uses: actions/setup-ruby@v1
17
17
  with:
18
- ruby-version: '3.1'
18
+ ruby-version: 3.1
19
19
 
20
20
  - name: Publish to GPR
21
21
  run: |
@@ -8,7 +8,7 @@ require 'rake'
8
8
  Gem::Specification.new do |spec|
9
9
  spec.name = "elixir-toolkit-theme-plugins"
10
10
  spec.version = Jekyll::Ett::VERSION.dup
11
- spec.authors = ["bedroesb","janslifka"]
11
+ spec.authors = ["bedroesb", "janslifka", "MarekSuchanek"]
12
12
  spec.email = ["bedro@psb.vib-ugent.be\n"]
13
13
 
14
14
  spec.summary = "Plugins to work together with ELIXIR Toolkit theme"
@@ -0,0 +1,20 @@
1
+ module Jekyll
2
+ # Override jekyll-github-metadata plugin
3
+ module GitHubMetadata
4
+ module RepositoryFix
5
+ # Allow to override site.github.source.branch with envvar JEKYLL_BUILD_BRANCH
6
+ # Allow to override site.github.source.path with envvar JEKYLL_BASE_PATH
7
+
8
+ def source
9
+ {
10
+ "branch" => ENV["JEKYLL_BUILD_BRANCH"] || super["branch"],
11
+ "path" => ENV["JEKYLL_BASE_PATH"] || super["path"],
12
+ }
13
+ end
14
+ end
15
+
16
+ class Repository
17
+ prepend RepositoryFix
18
+ end
19
+ end
20
+ end
@@ -27,7 +27,7 @@ module Jekyll
27
27
  data-bs-toggle="popover"
28
28
  data-bs-placement="bottom"
29
29
  data-bs-trigger="focus"
30
- data-bs-content="<h5><a href='#{tool["url"]}' target='_blank'>#{tool["name"]}</a></h5><div class='mb-2'>#{tool["description"]}</div>#{tags}"
30
+ data-bs-content="<h5>#{tool["name"]}</h5><div class='mb-2'>#{tool["description"]}</div><a href='#{tool["url"]}'target='_blank'><span class='badge bg-dark text-white hover-primary'><i class='fa-solid fa-link me-2'></i>Website</span></a>#{tags}"
31
31
  data-bs-template="<div class='popover popover-tool' role='tooltip'><div class='popover-arrow'></div><h3 class='popover-header'></h3><div class='popover-body'></div></div>"
32
32
  data-bs-html="true"
33
33
  ><i class="fa-solid fa-wrench me-2"></i>#{ tool["name"] }</a>}
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Ett
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.4'
4
4
  end
5
- end
5
+ end
@@ -5,3 +5,5 @@ require 'jekyll'
5
5
  require "elixir-toolkit-theme-plugins/version"
6
6
  require "elixir-toolkit-theme-plugins/tool_table_filter"
7
7
  require "elixir-toolkit-theme-plugins/tool_tag"
8
+
9
+ require "elixir-toolkit-theme-plugins/github_metadata_fix"
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  - janslifka
9
+ - MarekSuchanek
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2022-12-14 00:00:00.000000000 Z
13
+ date: 2023-05-04 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: jekyll
@@ -60,6 +61,7 @@ files:
60
61
  - README.md
61
62
  - elixir-toolkit-theme-plugins.gemspec
62
63
  - lib/elixir-toolkit-theme-plugins.rb
64
+ - lib/elixir-toolkit-theme-plugins/github_metadata_fix.rb
63
65
  - lib/elixir-toolkit-theme-plugins/tool_table_filter.rb
64
66
  - lib/elixir-toolkit-theme-plugins/tool_tag.rb
65
67
  - lib/elixir-toolkit-theme-plugins/version.rb