jekyll-graph 0.0.5 → 0.0.6
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/CHANGELOG.md +6 -2
- data/Gemfile +1 -1
- data/README.md +4 -2
- data/jekyll-graph.gemspec +2 -2
- data/lib/jekyll-graph/jekyll-graph.js +3 -3
- data/lib/jekyll-graph/{context.rb → patch/context.rb} +0 -0
- data/lib/jekyll-graph/{page.rb → patch/page.rb} +0 -0
- data/lib/jekyll-graph/version.rb +1 -1
- data/lib/jekyll-graph.rb +2 -2
- metadata +20 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1573d14b40e41fa648645091c1b204877affa7f83bb89fc5c201f2cfa424eaec
|
|
4
|
+
data.tar.gz: 670c6b66d66a56c3c63030637450336fa2d9e357b0499615d8799552b047329a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b0ceda8dcd2b4955fa291bc2b2f17846952eabf03beb301c333627ae9347695972324f9e19b0c32fd4485dcaf4e70a56c4b8103957b1825dc3c9e95d4fd97e4
|
|
7
|
+
data.tar.gz: fc17d253fed0a6bcb738d21ca2469c7025bdccd0abe476a223649ec0fb3c672a2417f38cbc4381ab92b60a6c69f2480f4daf73bad4c2536e9c8f477924ffec2a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
## [0.0.6] - 2022-01-24
|
|
2
|
+
### Change
|
|
3
|
+
- Move jekyll patch files to patch/ dir.
|
|
4
|
+
- Bump jekyll-wikilinks version number (0.0.10).
|
|
1
5
|
## [0.0.5] - 2021-11-23
|
|
2
6
|
### Change
|
|
3
7
|
- 'relatives' -> 'lineage' for tree nodes.
|
|
4
8
|
|
|
5
|
-
## [0.0.4] 2021-11-22
|
|
9
|
+
## [0.0.4] - 2021-11-22
|
|
6
10
|
### Fix
|
|
7
11
|
- Custom path config related fix in scripts.
|
|
8
12
|
|
|
9
|
-
## [0.0.3] 2021-11-22
|
|
13
|
+
## [0.0.3] - 2021-11-22
|
|
10
14
|
### Change
|
|
11
15
|
- Fix javascript inheritance.
|
|
12
16
|
- Decrement missing node log messages from 'warn' to 'debug'.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Jekyll-Graph generates data and renders a graph that allows visitors to navigate a jekyll site by clicking nodes in the graph. Nodes are generated from the site's markdown files. Links for the tree graph are generated from [`jekyll-namespaces`](https://github.com/manunamz/jekyll-namespaces) and links for the net-web graph from [`jekyll-wikilinks`](https://github.com/manunamz/jekyll-wikilinks).
|
|
8
8
|
|
|
9
|
-
This gem is part of the [jekyll-bonsai](https://
|
|
9
|
+
This gem is part of the [jekyll-bonsai](https://jekyll-bonsai.netlify.app/) project. 🎋
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -41,15 +41,17 @@ export default class JekyllGraphSubClass extends JekyllGraph {
|
|
|
41
41
|
|
|
42
42
|
constructor() {
|
|
43
43
|
super();
|
|
44
|
+
// access graph with 'this.graph'
|
|
44
45
|
// access graph div with 'this.graphDiv'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
// ...
|
|
48
49
|
}
|
|
49
50
|
```
|
|
51
|
+
|
|
50
52
|
Call `this.drawNetWeb()` and `this.drawTree()` to actually draw the graph. You could do this simply on initialization or on a button click, etc.
|
|
51
53
|
|
|
52
|
-
Unless otherwise
|
|
54
|
+
Unless otherwise configured (see `path` vars below), the `jekyll-graph.js` file will be generated into `_site/assets/js/`.
|
|
53
55
|
|
|
54
56
|
## Configuration
|
|
55
57
|
|
data/jekyll-graph.gemspec
CHANGED
|
@@ -30,11 +30,11 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.require_paths = ["lib"]
|
|
31
31
|
|
|
32
32
|
# Uncomment to register a new dependency of your gem
|
|
33
|
-
|
|
33
|
+
spec.add_dependency "jekyll", "~> 4.2.0"
|
|
34
34
|
|
|
35
35
|
# For more information and examples about making a new gem, checkout our
|
|
36
36
|
# guide at: https://bundler.io/guides/creating_gem.html
|
|
37
37
|
|
|
38
38
|
spec.add_runtime_dependency "jekyll-namespaces", "~> 0.0.3"
|
|
39
|
-
spec.add_runtime_dependency "jekyll-wikilinks", "~> 0.0.
|
|
39
|
+
spec.add_runtime_dependency "jekyll-wikilinks", "~> 0.0.10"
|
|
40
40
|
end
|
|
@@ -130,15 +130,15 @@ export default class JekyllGraph {
|
|
|
130
130
|
// lineage: replace ids with full objects
|
|
131
131
|
data.nodes.forEach(node => {
|
|
132
132
|
// lineage
|
|
133
|
-
let
|
|
133
|
+
let lineageNodes = [];
|
|
134
134
|
node.lineage.nodes.forEach(nNodeId => {
|
|
135
|
-
|
|
135
|
+
lineageNodes.push(data.nodes.find(node => node.id === nNodeId));
|
|
136
136
|
});
|
|
137
137
|
let relativeLinks = [];
|
|
138
138
|
node.lineage.links.forEach(nLink => {
|
|
139
139
|
relativeLinks.push(data.links.find(link => link.source === nLink.source && link.target === nLink.target));
|
|
140
140
|
});
|
|
141
|
-
node.lineage.nodes =
|
|
141
|
+
node.lineage.nodes = lineageNodes;
|
|
142
142
|
node.lineage.links = relativeLinks;
|
|
143
143
|
// siblings
|
|
144
144
|
this.numSiblingsLeft[node.parent] = node.siblings.length;
|
|
File without changes
|
|
File without changes
|
data/lib/jekyll-graph/version.rb
CHANGED
data/lib/jekyll-graph.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
require "jekyll"
|
|
3
3
|
|
|
4
|
-
require_relative "jekyll-graph/context"
|
|
5
|
-
require_relative "jekyll-graph/page"
|
|
4
|
+
require_relative "jekyll-graph/patch/context"
|
|
5
|
+
require_relative "jekyll-graph/patch/page"
|
|
6
6
|
require_relative "jekyll-graph/version"
|
|
7
7
|
|
|
8
8
|
# setup config
|
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-graph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- manunamz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: jekyll
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 4.2.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 4.2.0
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: jekyll-namespaces
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -30,14 +44,14 @@ dependencies:
|
|
|
30
44
|
requirements:
|
|
31
45
|
- - "~>"
|
|
32
46
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.0.
|
|
47
|
+
version: 0.0.10
|
|
34
48
|
type: :runtime
|
|
35
49
|
prerelease: false
|
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
51
|
requirements:
|
|
38
52
|
- - "~>"
|
|
39
53
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.0.
|
|
54
|
+
version: 0.0.10
|
|
41
55
|
description:
|
|
42
56
|
email:
|
|
43
57
|
- manunamz@pm.me
|
|
@@ -59,9 +73,9 @@ files:
|
|
|
59
73
|
- jekyll-graph.gemspec
|
|
60
74
|
- lib/jekyll-graph.rb
|
|
61
75
|
- lib/jekyll-graph/config.rb
|
|
62
|
-
- lib/jekyll-graph/context.rb
|
|
63
76
|
- lib/jekyll-graph/jekyll-graph.js
|
|
64
|
-
- lib/jekyll-graph/
|
|
77
|
+
- lib/jekyll-graph/patch/context.rb
|
|
78
|
+
- lib/jekyll-graph/patch/page.rb
|
|
65
79
|
- lib/jekyll-graph/tags.rb
|
|
66
80
|
- lib/jekyll-graph/version.rb
|
|
67
81
|
homepage: https://github.com/manunamz/jekyll-graph
|