jekyll-toc 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -1
- data/.travis.yml +3 -4
- data/README.md +2 -2
- data/lib/jekyll-toc.rb +0 -2
- data/lib/version.rb +1 -1
- data/test/parser/test_various_toc_html.rb +0 -1
- data/test/test_helper.rb +1 -1
- data/test/test_toc_tag.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0878c3ea712b5773638228ba2048ded434e9c838e10a8eff44d9e26d27de6185'
|
|
4
|
+
data.tar.gz: 284c54ed6ecc9dd9ccafbb7e743106d4ad26c234dbfb5924c43dc93c7b24f6fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e814c47560c29f929f6af34cc260b22f54738f78d4709bc88b75a8135fc6655adb34e9db084d6e11dd6227549a0d7884dc72529d231efc9b5b74471f0a428622
|
|
7
|
+
data.tar.gz: 4d686304db3a0d2b77e93830f4e2899ba973bd213b33c6c704a9f330fce8e8c0580a6540c7fe8b1fea5eca72ecbae3fac173b8946c362b664b056f82b763e042
|
data/.rubocop.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
AllCops:
|
|
2
|
-
TargetRubyVersion: 2.
|
|
2
|
+
TargetRubyVersion: 2.4
|
|
3
3
|
Exclude:
|
|
4
4
|
- '*.gemspec'
|
|
5
5
|
- 'gemfiles/*'
|
|
@@ -20,3 +20,9 @@ Metrics/ClassLength:
|
|
|
20
20
|
|
|
21
21
|
Style/FileName:
|
|
22
22
|
Enabled: false
|
|
23
|
+
|
|
24
|
+
Style/BracesAroundHashParameters:
|
|
25
|
+
Enabled: false
|
|
26
|
+
|
|
27
|
+
Style/WordArray:
|
|
28
|
+
Enabled: false
|
data/.travis.yml
CHANGED
|
@@ -4,10 +4,9 @@ env:
|
|
|
4
4
|
global:
|
|
5
5
|
- CC_TEST_REPORTER_ID=6b81e393ea6ad38560386f650ea2fb0e57a7beb5e20f8c8364fabee30d5bff07
|
|
6
6
|
rvm:
|
|
7
|
-
- 2.
|
|
8
|
-
- 2.
|
|
9
|
-
- 2.
|
|
10
|
-
- 2.6.2
|
|
7
|
+
- 2.4.6
|
|
8
|
+
- 2.5.5
|
|
9
|
+
- 2.6.3
|
|
11
10
|
# gemfile is generated by appraisal
|
|
12
11
|
gemfile:
|
|
13
12
|
- gemfiles/jekyll_3.8.gemfile
|
data/README.md
CHANGED
|
@@ -66,9 +66,9 @@ This filter places the TOC directly above the content.
|
|
|
66
66
|
|
|
67
67
|
If you'd like separated TOC and content, you can use `toc_only` and `inject_anchors` filters.
|
|
68
68
|
|
|
69
|
-
####
|
|
69
|
+
#### `toc_only` filter
|
|
70
70
|
|
|
71
|
-
⚠️ Please use `{% toc %}` instead of `{{ content | toc_only }}
|
|
71
|
+
⚠️ ~~Please use `{% toc %}` instead of `{{ content | toc_only }}`.~~
|
|
72
72
|
|
|
73
73
|
Generates the TOC itself as described [below](#generated-html).
|
|
74
74
|
Mostly useful in cases where the TOC should _not_ be placed immediately
|
data/lib/jekyll-toc.rb
CHANGED
|
@@ -20,8 +20,6 @@ module Jekyll
|
|
|
20
20
|
module TableOfContentsFilter
|
|
21
21
|
# Deprecated method. Removed in v1.0.
|
|
22
22
|
def toc_only(html)
|
|
23
|
-
Jekyll.logger.warn 'Deprecation: toc_only filter is deprecated and will be remove in jekyll-toc v1.0.',
|
|
24
|
-
'Use `{% toc %}` instead of `{{ content | toc_only }}`.'
|
|
25
23
|
return '' unless toc_enabled?
|
|
26
24
|
|
|
27
25
|
TableOfContents::Parser.new(html, toc_config).build_toc
|
data/lib/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
data/test/test_toc_tag.rb
CHANGED
|
@@ -13,7 +13,7 @@ class TestTableOfContentsTag < Minitest::Test
|
|
|
13
13
|
|
|
14
14
|
def test_toc_tag
|
|
15
15
|
context = @stubbed_context.new(
|
|
16
|
-
page: @stubbed_context2.new({ 'toc' => false }, '<h1>test</h1>'),
|
|
16
|
+
page: @stubbed_context2.new({ 'toc' => false }, '<h1>test</h1>'),
|
|
17
17
|
site: @stubbed_context1.new({ 'toc' => nil })
|
|
18
18
|
)
|
|
19
19
|
tag = Jekyll::TocTag.parse('toc_tag', '', Tokenizer.new(''), ParseContext.new)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-toc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- toshimaru
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-08-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|