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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90c881cf232fe50b8e592d9fd9f74104c6b3c7f90540e725f54e19f61d570f7c
4
- data.tar.gz: 9c78a6e97b97ab11875fe42ab13fd04a12a79f374c4abbe9b3949d82347e01be
3
+ metadata.gz: 6faa61a7168834eea194802933cb4049c9d9c70db5d0b406cb0696593c71bde0
4
+ data.tar.gz: 66cc39dae42afca55d2ad8749e186e943e546a61b4d378b09ab43f2d47f4b616
5
5
  SHA512:
6
- metadata.gz: d09849b7d9be1d4512994957888a7086c8e64b59864191cf773af3433889b69e7b893d55868c2066c74c5d7d748a1ba6245b57601b56bc92f28e440b856148cd
7
- data.tar.gz: d38d69b4bda3d9ed082c9881400c07d4e6c9fdd0aa02d0496cce49af6da78b0939be440d64657a0bc2e42c0904bea978077a3065173029a38a5157881bb8a8c6
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
- net_web:
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
- type: "tree" # may be 'tree' or 'net-web'
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
@@ -9,7 +9,7 @@ disapprove: ๐Ÿ‘Ž
9
9
  # nav-bar
10
10
  colors: ๐ŸŒˆ
11
11
  ## graph
12
- net-web: ๐Ÿ•ธ
12
+ web: ๐Ÿ•ธ
13
13
  tree: ๐ŸŒณ
14
14
  ## site-nav
15
15
  delete: ๐Ÿงน
@@ -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 Archive">
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-type-checkbox" type="checkbox" checked="checked">
70
- <span id="graph-type-emoji-span" title="Toggle Graph Type"></span>
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-net-web.svg %}</span>
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-net-web.svg %}
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>
@@ -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: 50%;
103
- width: 50%;
102
+ height: 75%;
103
+ width: 75%;
104
104
  }
105
105
  }
@@ -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
- "header header header"
12
- "title title title"
13
- "body body infobox"
14
- ". . infobox"
15
- "footer footer footer";
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.graphTypeCheckBox = document.getElementById('graph-type-checkbox');
10
- this.graphTypeEmojiSpan = document.getElementById('graph-type-emoji-span');
11
- this.init(); // this.graphType set in initGraphType();
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.initGraphType();
15
+ this.initGraphKind();
16
16
  this.bindEvents();
17
17
  this.draw();
18
18
  }
19
19
 
20
20
  bindEvents() {
21
- this.graphTypeCheckBox.addEventListener('click', () => {
22
- this.updateGraphType();
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.graphTypeCheckBox.checked) {
31
+ if (this.graphKindCheckBox.checked) {
32
32
  this.drawTree();
33
33
  } else {
34
- this.drawNetWeb();
34
+ this.drawWeb();
35
35
  }
36
36
  }
37
37
 
38
38
  redraw() {
39
- this.updateGraphType();
39
+ this.updateGraphkind();
40
40
  this.draw();
41
41
  }
42
42
 
43
43
  // type
44
-
45
- initGraphType() {
46
- this.graphType = localStorage.getItem('graph-type');
47
- if (this.graphType !== "tree" && this.graphType !== "net-web") {
48
- this.graphType = '{{ site.bonsai.nav.graph.type }}';
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.graphTypeCheckBox.checked = (this.graphType === "tree");
51
- this.updateGraphType();
50
+ this.graphKindCheckBox.checked = (this.graphKind === "tree");
51
+ this.updateGraphkind();
52
52
  }
53
53
 
54
- updateGraphType() {
55
- if (this.graphTypeCheckBox.checked) {
56
- this.graphTypeEmojiSpan.innerText = "{{ site.data.emoji.net-web }}";
57
- this.graphType = "tree";
54
+ updateGraphkind() {
55
+ if (this.graphKindCheckBox.checked) {
56
+ this.graphKindEmojiSpan.innerText = "{{ site.data.emoji.web }}";
57
+ this.graphKind = "tree";
58
58
  } else {
59
- this.graphTypeEmojiSpan.innerText = "{{ site.data.emoji.tree }}";
60
- this.graphType = "net-web";
59
+ this.graphKindEmojiSpan.innerText = "{{ site.data.emoji.tree }}";
60
+ this.graphKind = "web";
61
61
  }
62
- localStorage.setItem('graph-type', this.graphType);
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.10
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-09-26 00:00:00.000000000 Z
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.10
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.10
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