jekyll-theme-amethyst 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/sidebar.html +11 -11
- data/_includes/toc.html +1 -1
- data/_layouts/group.html +2 -0
- data/_layouts/page-api.html +5 -1
- data/_sass/amethyst.scss +6 -1
- data/amethyst.gemspec +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: 0aaebdf3c406b02d936449860b4c7a5ba6c095bbd9e5c38f7b285baeeb7a0076
|
4
|
+
data.tar.gz: 63ef83f3c508dccf24cfd7b1fe932601acaccf117437b11cf48f366f15e3eef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8608f987de9794140e314ddcbff2df3bb45057e48de3b73e0f71cbca2bf2a1ccb474e4b0191fc06ea2e8222e8a513ff30a7d8a8e1e0699d990967fed83235409
|
7
|
+
data.tar.gz: f61ecbe0b8d1d33d1033a7bf419e53ef6e17149cc2cfc7624e6915afe6baab935c63abcd8076f846edff4cd45a6dca00eb3ef203d0ab3e039bbf952c9c5a9d6f
|
data/_includes/sidebar.html
CHANGED
@@ -41,7 +41,6 @@ Block data:
|
|
41
41
|
|
42
42
|
{%- endcomment -%}
|
43
43
|
<aside class="sidebar" role="complementary">
|
44
|
-
{%- if include.blocks -%}
|
45
44
|
{%- for block in site.data[include.blocks] -%}
|
46
45
|
{%- assign block_type = block.type | default: "group" -%}
|
47
46
|
{%- assign block_title = block.title -%}
|
@@ -96,14 +95,15 @@ Block data:
|
|
96
95
|
{%- endfor -%}
|
97
96
|
|
98
97
|
{%- if include.toc -%}
|
99
|
-
|
100
|
-
{%-
|
101
|
-
{%-
|
102
|
-
|
103
|
-
{%- if include.
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
{%- endif -%}
|
98
|
+
{%- capture jekyll_toc -%}
|
99
|
+
{%- include toc.html html=content sanitize=true h_max=3 ordered=true skip_no_ids=true class="toc" item_class="sidebar-item" -%}
|
100
|
+
{%- endcapture -%}
|
101
|
+
{%- if jekyll_toc != '' -%}
|
102
|
+
{%- if include.blocks -%}
|
103
|
+
<hr>
|
104
|
+
{%- endif -%}
|
105
|
+
<div class="toc-wrapper">
|
106
|
+
<h4>Table of contents</h4>{{ jekyll_toc }}</div>
|
107
|
+
{%- endif -%}
|
108
|
+
{%- endif %}
|
109
109
|
</aside>
|
data/_includes/toc.html
CHANGED
@@ -179,4 +179,4 @@
|
|
179
179
|
{% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %}
|
180
180
|
{% endif %}
|
181
181
|
{% endif %}
|
182
|
-
{% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc }}
|
182
|
+
{% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc -}}
|
data/_layouts/group.html
CHANGED
data/_layouts/page-api.html
CHANGED
@@ -35,5 +35,9 @@ layout: wrapper
|
|
35
35
|
{%- endif %}
|
36
36
|
{{- content }}
|
37
37
|
</div>
|
38
|
-
{
|
38
|
+
{%- assign toc = true -%}
|
39
|
+
{%- if layout.amethyst.toc == false -%}
|
40
|
+
{%- assign toc = false -%}
|
41
|
+
{%- endif %}
|
42
|
+
{% include sidebar.html blocks="sidebar_api" toc=toc %}
|
39
43
|
</div>
|
data/_sass/amethyst.scss
CHANGED
@@ -710,6 +710,10 @@ table {
|
|
710
710
|
padding-left: 4px;
|
711
711
|
}
|
712
712
|
|
713
|
+
.sidebar hr {
|
714
|
+
margin-bottom: $size-spacing;
|
715
|
+
}
|
716
|
+
|
713
717
|
.sidebar-list {
|
714
718
|
margin-top: 0;
|
715
719
|
padding: 0;
|
@@ -750,7 +754,8 @@ table {
|
|
750
754
|
margin: 0;
|
751
755
|
padding: 0;
|
752
756
|
}
|
753
|
-
.toc .sidebar-item
|
757
|
+
.toc .sidebar-item,
|
758
|
+
.toc .sidebar-item a {
|
754
759
|
border-left: 0;
|
755
760
|
}
|
756
761
|
|
data/amethyst.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "jekyll-theme-amethyst"
|
3
|
-
spec.version = "0.3.
|
3
|
+
spec.version = "0.3.1"
|
4
4
|
spec.summary = "https://github.com/qunitjs/jekyll-theme-amethyst"
|
5
5
|
spec.authors = ["Timo Tijhof", "Trent Willis"]
|
6
6
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-amethyst
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timo Tijhof
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-09-
|
12
|
+
date: 2021-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|