jekyll-toc 0.8.0.rc1 → 0.8.0
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/README.md +14 -12
- data/lib/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: 4467af27a06bb26975169fc6b483ac6b9cf7dc193d957a4d1802018f3e538ea9
|
|
4
|
+
data.tar.gz: 78d9f36a92f6d5329476fe348cbbcae64bf5174762934324a093e65a24d19aee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a3b28995adb47063335b775d389472b0b1584fde3818b134e76792da6e20c7bfe4a86ef2afe1b038c3f8de8128d92d87e6f14a816fef5dacc58fe13f76c1982
|
|
7
|
+
data.tar.gz: 8e27495a54ea17a012e3027464bee31a26e954d91fdb7a0e807c5b13f99baeb29c1461a2f9aea8de2fa966a4e041b3a7897e1f1c0e4c22ecb44c9db312bf0b19
|
data/README.md
CHANGED
|
@@ -70,8 +70,8 @@ above the content but at some other place of the page, i.e. an aside.
|
|
|
70
70
|
|
|
71
71
|
#### `inject_anchors` filter
|
|
72
72
|
|
|
73
|
-
Injects HTML anchors into the content without actually outputing the
|
|
74
|
-
|
|
73
|
+
Injects HTML anchors into the content without actually outputing the TOC itself.
|
|
74
|
+
They are of the form:
|
|
75
75
|
|
|
76
76
|
```html
|
|
77
77
|
<a id="heading11" class="anchor" href="#heading1-1" aria-hidden="true">
|
|
@@ -124,27 +124,29 @@ The heading is ignored in the toc when you add `no_toc` to the class.
|
|
|
124
124
|
|
|
125
125
|
#### Skip TOC Section
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
```yml
|
|
130
|
-
toc:
|
|
131
|
-
no_toc_section_class: no_toc_within # default: no_toc_section
|
|
132
|
-
```
|
|
127
|
+
The headings are ignored inside the element which has `no_toc_section` class.
|
|
133
128
|
|
|
134
129
|
```html
|
|
135
130
|
<h1>h1</h1>
|
|
136
|
-
<div class="
|
|
137
|
-
<h2>
|
|
138
|
-
<h3>
|
|
131
|
+
<div class="no_toc_section">
|
|
132
|
+
<h2>This heading is ignored in the toc</h2>
|
|
133
|
+
<h3>This heading is ignored in the toc</h3>
|
|
139
134
|
</div>
|
|
140
135
|
<h4>h4</h4>
|
|
141
136
|
```
|
|
142
137
|
|
|
143
138
|
Which would result in only the `<h1>` & `<h4>` within the example being included in the TOC.
|
|
144
139
|
|
|
140
|
+
The class can be configured on `_config.yml`:
|
|
141
|
+
|
|
142
|
+
```yml
|
|
143
|
+
toc:
|
|
144
|
+
no_toc_section_class: exclude # default: no_toc_section
|
|
145
|
+
```
|
|
146
|
+
|
|
145
147
|
#### TOC levels
|
|
146
148
|
|
|
147
|
-
The toc levels can be configured on `_config.yml
|
|
149
|
+
The toc levels can be configured on `_config.yml`:
|
|
148
150
|
|
|
149
151
|
```yml
|
|
150
152
|
toc:
|
data/lib/version.rb
CHANGED
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.8.0
|
|
4
|
+
version: 0.8.0
|
|
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: 2018-10-
|
|
12
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|
|
@@ -153,9 +153,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
153
153
|
version: 2.2.2
|
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
requirements:
|
|
156
|
-
- - "
|
|
156
|
+
- - ">="
|
|
157
157
|
- !ruby/object:Gem::Version
|
|
158
|
-
version:
|
|
158
|
+
version: '0'
|
|
159
159
|
requirements: []
|
|
160
160
|
rubyforge_project:
|
|
161
161
|
rubygems_version: 2.7.6
|