jekyll-external-links 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/README.md +13 -1
- data/jekyll-external-links.gemspec +2 -2
- data/lib/jekyll-external-links/external_links.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8fb0ee75e67861031e56accc8a8a96d07ec23f15ee789de029e46dcb544f50b0
|
4
|
+
data.tar.gz: a0479107cb2ff8f4eed1e64fc89b7dc446d83b481d37f4feb4306938c7bfe068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cfb2b1411f5a0a7623582e9a16b2c3df509072712b54faabfa263ceae270c58ed59036f974a1a26dea4faecec85e228d05c70f5c65cb4666a730b9f7004efa2
|
7
|
+
data.tar.gz: d379422a20aeef761c8b303445525aff02e55d9652e13205a575bca51d12fbae72b03aff84bdec54d5e49fd891f2e24e49d2669cb9135055a2ea0cb723aaf4c7
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
example-site/_site
|
data/README.md
CHANGED
@@ -24,8 +24,20 @@ external_links:
|
|
24
24
|
marker_html: "<span class='ico-ext'><i class='fas fa-external-link-square-alt'></i></span>"
|
25
25
|
```
|
26
26
|
|
27
|
-
As you can see, by default the Font Awesome’s `fa-
|
27
|
+
As you can see, by default the Font Awesome’s `fa-external-link-square-alt` icon is used,
|
28
28
|
which implies that you are using Font Awesome.
|
29
29
|
|
30
30
|
You can set marker_html to empty string and style links with custom CSS rule
|
31
31
|
(e.g., `a[rel=external] { border-bottom-style: dashed; }`), though it’s less flexible.
|
32
|
+
|
33
|
+
## Example site
|
34
|
+
|
35
|
+
An example site is included in this repo.
|
36
|
+
Use it to demo the plugin and to test it during development.
|
37
|
+
The `/` path leads to Markdown version, the `/asciidoc/` path leads to AsciiDoc version.
|
38
|
+
|
39
|
+
1. Clone this repository
|
40
|
+
2. Navigate into the example-project directory
|
41
|
+
3. Run `bundle`
|
42
|
+
4. Run `bundle exec jekyll serve`
|
43
|
+
5. Open in your favorite browser the URL shown
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'jekyll-external-links'
|
5
|
-
s.version = '0.1.
|
5
|
+
s.version = '0.1.3'
|
6
6
|
s.authors = ['Ribose Inc.']
|
7
7
|
s.email = ['open.source@ribose.com']
|
8
8
|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = 'https://github.com/riboseinc/jekyll-external-links/'
|
11
11
|
s.license = 'MIT'
|
12
12
|
|
13
|
-
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|spec|features)/!) }
|
13
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(example-site|test|spec|features)/!) }
|
14
14
|
|
15
15
|
s.add_runtime_dependency 'jekyll', '~> 3.8'
|
16
16
|
s.add_runtime_dependency 'nokogiri'
|
@@ -43,7 +43,7 @@ def mark_links_in_page_or_document(page_or_document)
|
|
43
43
|
'a[href*=codecov]',
|
44
44
|
]
|
45
45
|
|
46
|
-
unless page_or_document.asset_file?
|
46
|
+
unless page_or_document.respond_to?(:asset_file?) and page_or_document.asset_file?
|
47
47
|
page_or_document.output = process_content(
|
48
48
|
site_hostname,
|
49
49
|
page_or_document.output,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-external-links
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -73,6 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".gitignore"
|
76
77
|
- LICENSE.txt
|
77
78
|
- README.md
|
78
79
|
- develop/release
|
@@ -98,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
99
|
- !ruby/object:Gem::Version
|
99
100
|
version: '0'
|
100
101
|
requirements: []
|
101
|
-
|
102
|
-
rubygems_version: 2.5.2.3
|
102
|
+
rubygems_version: 3.0.6
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Jekyll plugin that marks external links in your site
|