jekyll-wikibonsai 0.0.10 โ 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +3 -3
- data/_data/emoji.yml +1 -1
- data/_includes/site-nav.html +3 -3
- data/_layouts/entry.html +6 -6
- data/_sass/base/_link.scss +3 -3
- data/_sass/layouts/_entry.scss +11 -15
- data/_sass/util/mixins/_layout.scss +6 -3
- data/assets/img/wikibonsai-way.png +0 -0
- data/assets/js/graph.js +25 -25
- metadata +6 -5
- /data/_includes/img/{bullet-net-web.svg โ bullet-web.svg} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6faa61a7168834eea194802933cb4049c9d9c70db5d0b406cb0696593c71bde0
|
4
|
+
data.tar.gz: 66cc39dae42afca55d2ad8749e186e943e546a61b4d378b09ab43f2d47f4b616
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca6cccfbbf5dbdf90daff89652346d9b07a2fd5cd179a2cbc129b642287f92d831f06b14817be247a2ee72ea8017b31e10ff1fc5abbb3e9242f1716f5fa3a1fc
|
7
|
+
data.tar.gz: 1936f0e3a057abb329786f7219ad7be9a66d424ca01af3c466329e1197d42c94c95c982f107f2b188aaf01bcbf8e3aeab138812fc672981043885e1da6880c13
|
data/_config.yml
CHANGED
@@ -180,7 +180,7 @@ graph:
|
|
180
180
|
x_val: 0.9
|
181
181
|
strength_y: 0.1
|
182
182
|
y_val: 0.9
|
183
|
-
|
183
|
+
web:
|
184
184
|
# enabled: true
|
185
185
|
# exclude:
|
186
186
|
# links: true
|
@@ -229,8 +229,8 @@ bonsai:
|
|
229
229
|
nav:
|
230
230
|
type: "graph" # may be 'visited' (steps) or 'graph' (bonsai)
|
231
231
|
graph:
|
232
|
-
|
233
|
-
search:
|
232
|
+
kind: "tree" # may be 'tree' or 'web'
|
233
|
+
search:
|
234
234
|
enabled: true
|
235
235
|
exclude: []
|
236
236
|
visited:
|
data/_data/emoji.yml
CHANGED
data/_includes/site-nav.html
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
{% endif %}
|
33
33
|
{% assign map_page = site.pages | where: "name", "map.md" %}
|
34
34
|
{% if map_page.first %}
|
35
|
-
<a class="btn btn--green drop-3" href="{{ '/map' | relative_url }}" title="Go To
|
35
|
+
<a class="btn btn--green drop-3" href="{{ '/map' | relative_url }}" title="Go To Tag Map">
|
36
36
|
{{ site.data.emoji.bonsai }}
|
37
37
|
</a>
|
38
38
|
{% endif %}
|
@@ -66,8 +66,8 @@
|
|
66
66
|
</label>
|
67
67
|
{% endif %}
|
68
68
|
<label class="btn btn--green">
|
69
|
-
<input id="graph-
|
70
|
-
<span id="graph-
|
69
|
+
<input id="graph-kind-checkbox" type="checkbox" checked="checked">
|
70
|
+
<span id="graph-kind-emoji-span" title="Toggle Graph Kind"></span>
|
71
71
|
</label>
|
72
72
|
<a id="delete-btn" class="btn btn--red drop-3" title="Delete Visited History">
|
73
73
|
{{ site.data.emoji.delete }}
|
data/_layouts/entry.html
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
layout: base
|
3
3
|
---
|
4
4
|
|
5
|
-
<article id="entry"
|
5
|
+
<article id="entry"
|
6
6
|
class="entry h-entry"
|
7
|
-
role="article"
|
7
|
+
role="article"
|
8
8
|
itemscope
|
9
|
-
itemtype="http://schema.org/Article"
|
9
|
+
itemtype="http://schema.org/Article"
|
10
10
|
aria-labelledby="{{ page.title | slugify }}-title">
|
11
11
|
|
12
12
|
<header class="entry__header">
|
@@ -68,7 +68,7 @@ layout: base
|
|
68
68
|
</div>
|
69
69
|
<div class="infobox__link-nav">
|
70
70
|
<nav id="attr-box-link-nav" class="link-map">
|
71
|
-
<span class="link-map__type" title="Attribute Entries">{% include img/bullet-
|
71
|
+
<span class="link-map__type" title="Attribute Entries">{% include img/bullet-web.svg %}</span>
|
72
72
|
{% if page.attributes.size == 0 %}
|
73
73
|
<p class="text--small text--center">No attribute entries.</p>
|
74
74
|
{% else %}
|
@@ -140,7 +140,7 @@ layout: base
|
|
140
140
|
</div>
|
141
141
|
<div class="link-box__partition">
|
142
142
|
<span class="link-box__type" title="Attributed and Backlink Entries">
|
143
|
-
{% include img/bullet-
|
143
|
+
{% include img/bullet-web.svg %}
|
144
144
|
</span>
|
145
145
|
{% assign entry_attrd = page.attributed | doc_type: "entries" %}
|
146
146
|
{% assign entry_blinks = page.backlinks | doc_type: "entries" %}
|
@@ -263,7 +263,7 @@ layout: base
|
|
263
263
|
{% endif %}
|
264
264
|
</div>
|
265
265
|
</nav>
|
266
|
-
</div>
|
266
|
+
</div>
|
267
267
|
</footer>
|
268
268
|
|
269
269
|
</article>
|
data/_sass/base/_link.scss
CHANGED
@@ -58,7 +58,7 @@ a.wiki-link {
|
|
58
58
|
var(--wiki-link-color) 100%
|
59
59
|
);
|
60
60
|
background-size: 1px 1px;
|
61
|
-
}
|
61
|
+
}
|
62
62
|
}
|
63
63
|
|
64
64
|
.embed-wrapper {
|
@@ -99,7 +99,7 @@ a.wiki-link {
|
|
99
99
|
padding-bottom: $sp-2;
|
100
100
|
|
101
101
|
.embed-image {
|
102
|
-
height:
|
103
|
-
width:
|
102
|
+
height: 75%;
|
103
|
+
width: 75%;
|
104
104
|
}
|
105
105
|
}
|
data/_sass/layouts/_entry.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// entry page styles
|
2
|
-
|
2
|
+
|
3
3
|
.entry {
|
4
4
|
|
5
5
|
@include mq(md) {
|
@@ -8,11 +8,12 @@
|
|
8
8
|
@include mq(lg) {
|
9
9
|
display: grid;
|
10
10
|
grid-template-areas:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
"header header header"
|
12
|
+
"title title title"
|
13
|
+
"body body infobox"
|
14
|
+
". . infobox"
|
15
|
+
"footer footer footer";
|
16
|
+
grid-template-columns: 1fr auto;
|
16
17
|
}
|
17
18
|
|
18
19
|
&__header {
|
@@ -23,7 +24,7 @@
|
|
23
24
|
&--fix-hrz-scroll {
|
24
25
|
// fixes horizontal scroll
|
25
26
|
// from: https://stackoverflow.com/questions/45280943/horizontal-scroll-breaks-when-using-css-flexbox
|
26
|
-
overflow:hidden;
|
27
|
+
overflow: hidden;
|
27
28
|
}
|
28
29
|
}
|
29
30
|
|
@@ -33,15 +34,10 @@
|
|
33
34
|
|
34
35
|
&__infobox {
|
35
36
|
grid-area: infobox;
|
37
|
+
|
38
|
+
@include infobox-container;
|
36
39
|
padding: $sp-3;
|
37
40
|
margin-bottom: $sp-3;
|
38
|
-
|
39
|
-
@include mq(md) {
|
40
|
-
@include infobox-container;
|
41
|
-
}
|
42
|
-
@include mq(lg) {
|
43
|
-
// grid
|
44
|
-
}
|
45
41
|
}
|
46
42
|
|
47
43
|
&__body {
|
@@ -89,7 +85,7 @@
|
|
89
85
|
padding-right: $sp-1;
|
90
86
|
}
|
91
87
|
}
|
92
|
-
}
|
88
|
+
}
|
93
89
|
}
|
94
90
|
|
95
91
|
// aside
|
@@ -52,8 +52,9 @@
|
|
52
52
|
}
|
53
53
|
|
54
54
|
@mixin infobox-container {
|
55
|
+
max-height: 100vh;
|
55
56
|
width: 100%;
|
56
|
-
|
57
|
+
|
57
58
|
@include mq(md) {
|
58
59
|
max-width: $nav-width-md;
|
59
60
|
float: right;
|
@@ -62,18 +63,20 @@
|
|
62
63
|
@include mq(lg) {
|
63
64
|
max-width: $nav-width-md;
|
64
65
|
padding: $sp-2;
|
65
|
-
|
66
|
+
|
66
67
|
// from: https://www.bram.us/2020/01/10/smooth-scrolling-sticky-scrollspy-navigation/
|
67
68
|
position: sticky;
|
69
|
+
position: -webkit-sticky;
|
68
70
|
top: $sp-2;
|
69
71
|
}
|
70
72
|
|
71
73
|
@include mq(xl) {
|
72
74
|
max-width: $nav-width-md * 1.5;
|
73
75
|
padding: $sp-2;
|
74
|
-
|
76
|
+
|
75
77
|
// from: https://www.bram.us/2020/01/10/smooth-scrolling-sticky-scrollspy-navigation/
|
76
78
|
position: sticky;
|
79
|
+
position: -webkit-sticky;
|
77
80
|
top: $sp-2;
|
78
81
|
|
79
82
|
margin-right: $nav-width-md * (3/5);
|
Binary file
|
data/assets/js/graph.js
CHANGED
@@ -6,59 +6,59 @@ export default class GraphNav extends JekyllGraph {
|
|
6
6
|
|
7
7
|
constructor() {
|
8
8
|
super(); // 'this.graph' + 'this.graphDiv' set in JekyllGraph
|
9
|
-
this.
|
10
|
-
this.
|
11
|
-
this.init(); // this.
|
9
|
+
this.graphKindCheckBox = document.getElementById('graph-kind-checkbox');
|
10
|
+
this.graphKindEmojiSpan = document.getElementById('graph-kind-emoji-span');
|
11
|
+
this.init(); // this.graphKind set in initgraphKind();
|
12
12
|
}
|
13
13
|
|
14
14
|
init() {
|
15
|
-
this.
|
15
|
+
this.initGraphKind();
|
16
16
|
this.bindEvents();
|
17
17
|
this.draw();
|
18
18
|
}
|
19
19
|
|
20
20
|
bindEvents() {
|
21
|
-
this.
|
22
|
-
this.
|
21
|
+
this.graphKindCheckBox.addEventListener('click', () => {
|
22
|
+
this.updateGraphkind();
|
23
23
|
this.draw();
|
24
24
|
});
|
25
25
|
}
|
26
26
|
|
27
27
|
// draw
|
28
|
-
|
28
|
+
|
29
29
|
draw() {
|
30
30
|
// redraw new chart
|
31
|
-
if (this.
|
31
|
+
if (this.graphKindCheckBox.checked) {
|
32
32
|
this.drawTree();
|
33
33
|
} else {
|
34
|
-
this.
|
34
|
+
this.drawWeb();
|
35
35
|
}
|
36
36
|
}
|
37
37
|
|
38
38
|
redraw() {
|
39
|
-
this.
|
39
|
+
this.updateGraphkind();
|
40
40
|
this.draw();
|
41
41
|
}
|
42
42
|
|
43
43
|
// type
|
44
|
-
|
45
|
-
|
46
|
-
this.
|
47
|
-
if (this.
|
48
|
-
this.
|
44
|
+
|
45
|
+
initGraphKind() {
|
46
|
+
this.graphKind = localStorage.getItem('graph-kind');
|
47
|
+
if (this.graphKind !== "tree" && this.graphKind !== "web") {
|
48
|
+
this.graphKind = '{{ site.bonsai.nav.graph.kind }}';
|
49
49
|
}
|
50
|
-
this.
|
51
|
-
this.
|
50
|
+
this.graphKindCheckBox.checked = (this.graphKind === "tree");
|
51
|
+
this.updateGraphkind();
|
52
52
|
}
|
53
53
|
|
54
|
-
|
55
|
-
if (this.
|
56
|
-
this.
|
57
|
-
this.
|
54
|
+
updateGraphkind() {
|
55
|
+
if (this.graphKindCheckBox.checked) {
|
56
|
+
this.graphKindEmojiSpan.innerText = "{{ site.data.emoji.web }}";
|
57
|
+
this.graphKind = "tree";
|
58
58
|
} else {
|
59
|
-
this.
|
60
|
-
this.
|
59
|
+
this.graphKindEmojiSpan.innerText = "{{ site.data.emoji.tree }}";
|
60
|
+
this.graphKind = "web";
|
61
61
|
}
|
62
|
-
localStorage.setItem('graph-
|
63
|
-
}
|
62
|
+
localStorage.setItem('graph-kind', this.graphKind);
|
63
|
+
}
|
64
64
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-wikibonsai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manunamz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.0.
|
159
|
+
version: 0.0.11
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.0.
|
166
|
+
version: 0.0.11
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: webrick
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,8 +199,8 @@ files:
|
|
199
199
|
- _includes/hp-tooltip.html
|
200
200
|
- _includes/img/bullet-ancestor.svg
|
201
201
|
- _includes/img/bullet-branch.svg
|
202
|
-
- _includes/img/bullet-net-web.svg
|
203
202
|
- _includes/img/bullet-tree.svg
|
203
|
+
- _includes/img/bullet-web.svg
|
204
204
|
- _includes/img/pencil-filter.svg
|
205
205
|
- _includes/share.html
|
206
206
|
- _includes/site-nav.html
|
@@ -308,6 +308,7 @@ files:
|
|
308
308
|
- assets/img/nav-bonsai-dark.svg
|
309
309
|
- assets/img/nav-bonsai-light.svg
|
310
310
|
- assets/img/nav-bonsai-star.svg
|
311
|
+
- assets/img/wikibonsai-way.png
|
311
312
|
- assets/js/entry.js
|
312
313
|
- assets/js/graph.js
|
313
314
|
- assets/js/scripts.js
|
File without changes
|