jekyll-theme-jod 0.2.5 → 0.3.2

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: 3d050f5917b35c2445ceff40f6e70c79216c565f72176b32d09c37b9f69e2b4e
4
- data.tar.gz: 7cc760314d908c273ef4fb64ce988ca76024c2d4879894d8ba7d7870d6aa5715
3
+ metadata.gz: 674fd58c25ba6f4f91366b53c5254c785c2221cd34ebd8bbe2f70e3f7fcc01be
4
+ data.tar.gz: 76a2574eacfdb8f0c5ef4b64a4706f3c789b01ff456dd763ee50481b25055d66
5
5
  SHA512:
6
- metadata.gz: 064e6a8aa7a1edb8a182c0f095ddfa0875499069902b8c36012b3cf9d943f81302b2debf988b1f931545669ccb0ffbcf975a8fc1e71c42fc12b836145b9a7338
7
- data.tar.gz: b3d68c53c31ce737380168683c52d23c792803b10d48c1abe7c11f8c83d02716d5652210af1a41fd8d796c0712b8f6be423588946768bf26964456b7d93336bb
6
+ metadata.gz: 64b3dd02b1d3ae95ee6ec21366be9be58c95a362af340c195d173346351359a707351f28fa3127ae7acea62b7d302573bff6ad7effe97dd87387bd8a630cc791
7
+ data.tar.gz: 8bbb4af7e5ed896cb6cf12e28cdca73cd85d9fd9bc148f2afd73439493479dfd8889a917371726307ab75a46134b076871845115309eeefb0e302314625c041e
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The JOD project generates documentation web pages from Ontology turtle documents.
4
4
 
5
- JOD is based on [jekyll](jekyllrb.com) as well as the wonderful [jekyll-rdf plugin](https://github.com/white-gecko/jekyll-rdf) and creates web pages which use [Bootstrap 4](https://getbootstrap.com/) as a front-end component library.
5
+ JOD is based on [jekyll](jekyllrb.com) as well as the wonderful [jekyll-rdf plugin](https://github.com/aksw/jekyll-rdf) and creates web pages which use [Bootstrap 4](https://getbootstrap.com/) as a front-end component library.
6
6
 
7
7
  ## Status
8
8
 
@@ -35,6 +35,23 @@ Or install it yourself as:
35
35
 
36
36
  TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
37
37
 
38
+ ## Docker
39
+
40
+ There is also a docker container, that hides away all of the jekyll and jekyll-rdf specific configuration.
41
+ It currently is available at the GitHub Container Registry as `ghcr.io/eccenca/jod:main`.
42
+
43
+ As preparation your ontology should be available as `ontology.ttl` in the current directory.
44
+ Specify the base URL for the Jod documentation as `JOD_URL` (mandatory).
45
+ You can overwrite the ontologies title with `JOD_TITLE`.
46
+ The switch `JOD_RESTRICTION_URL` configures jod to only build resources with the configured base URL (this brings some speed up).
47
+ To use your own configuration you can overwrite the docker run command, e.g. `jekyll build --disable-disk-cache --config _config.yml`. Checkout the [Jekyll RDF documentation for details](https://github.com/AKSW/jekyll-rdf).
48
+
49
+ ```
50
+ docker run --rm -v .:/data -e JOD_URL=http://example.org -e JOD_RESTRICTION_URL=True ghcr.io/eccenca/jod:main
51
+ ```
52
+
53
+ Will produce a directory `_site` with the generated documentation.
54
+
38
55
  ## Contributing
39
56
 
40
57
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
data/_config.yml ADDED
@@ -0,0 +1,11 @@
1
+ baseurl: "/" # the subpath of your site, e.g. /blog
2
+ url: "http://example.org" # the base hostname & protocol for your site, e.g. http://example.com
3
+
4
+ theme: jekyll-theme-jod
5
+
6
+ jekyll_rdf:
7
+ path: "ontology.ttl"
8
+ include_blank: false
9
+ default_template: "resource.html"
10
+ class_template_mappings:
11
+ "http://www.w3.org/2002/07/owl#Ontology": "ontology.html"
@@ -1,5 +1,13 @@
1
1
  <div class="jumbotron">
2
- <h1 class="display-3">{% include label.html iri = page.rdf.iri %}</h1>
2
+ {% assign site_title_config = site.title | strip %}
3
+ {% if site_title_config != "" %}
4
+ {% assign site_title = site.title %}
5
+ {% else %}
6
+ {% capture site_title -%}
7
+ {% include label.html iri = page.rdf.iri %}
8
+ {%- endcapture %}
9
+ {% endif %}
10
+ <h1 class="display-3">{{ site_title }}</h1>
3
11
  <p class="lead subtitle">{{ page.rdf | rdf_property: 'dbo:subtitle', 'en' }}</p>
4
12
  <p class="lead">{{ page.rdf | rdf_property: 'rdfs:comment', 'en' }}</p>
5
13
  <hr class="my-4">
@@ -48,6 +56,10 @@
48
56
  <dt>Preferred Namespace URI</dt>
49
57
  <dd>{{- vannPreferredNamespaceUri -}}</dd>
50
58
  {%- endif -%}
59
+ {%- assign foafDepiction = page.rdf | rdf_property: 'foaf:depiction' -%}
60
+ {%- if foafDepiction -%}
61
+ <dd><img src="{{- foafDepiction -}}"/></dd>
62
+ {%- endif -%}
51
63
  </dl>
52
64
  </p>
53
65
  <hr class="my-4">
@@ -1,7 +1,15 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
- <title>{{ site.title }}</title>
4
+ {% assign site_title_config = site.title | strip %}
5
+ {% if site_title_config != "" %}
6
+ {% assign site_title = site.title %}
7
+ {% else %}
8
+ {% capture site_title -%}
9
+ {% include label.html iri = page.rdf.iri %}
10
+ {%- endcapture %}
11
+ {% endif %}
12
+ <title>{{ site_title }}</title>
5
13
  <!-- Required meta tags -->
6
14
  <meta charset="utf-8">
7
15
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-jod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Tramp
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-21 00:00:00.000000000 Z
12
+ date: 2023-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '4.2'
20
+ version: '4.3'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '4.2'
27
+ version: '4.3'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: jekyll-rdf
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '3.0'
34
+ version: '4.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '3.0'
41
+ version: '4.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: liquid-md5
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -53,34 +53,48 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: 0.0.3
56
+ - !ruby/object:Gem::Dependency
57
+ name: webrick
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.7'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.7'
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: bundler
58
72
  requirement: !ruby/object:Gem::Requirement
59
73
  requirements:
60
74
  - - "~>"
61
75
  - !ruby/object:Gem::Version
62
- version: '1.12'
76
+ version: '3.3'
63
77
  type: :development
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
81
  - - "~>"
68
82
  - !ruby/object:Gem::Version
69
- version: '1.12'
83
+ version: '3.3'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: rake
72
86
  requirement: !ruby/object:Gem::Requirement
73
87
  requirements:
74
88
  - - "~>"
75
89
  - !ruby/object:Gem::Version
76
- version: '10.0'
90
+ version: '13'
77
91
  type: :development
78
92
  prerelease: false
79
93
  version_requirements: !ruby/object:Gem::Requirement
80
94
  requirements:
81
95
  - - "~>"
82
96
  - !ruby/object:Gem::Version
83
- version: '10.0'
97
+ version: '13'
84
98
  description:
85
99
  email:
86
100
  - sebastian.tramp@eccenca.com
@@ -91,6 +105,7 @@ extra_rdoc_files: []
91
105
  files:
92
106
  - LICENSE
93
107
  - README.md
108
+ - _config.yml
94
109
  - _data/prefixes.pref
95
110
  - _includes/class-card.html
96
111
  - _includes/internal-link.html
@@ -120,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
135
  - !ruby/object:Gem::Version
121
136
  version: '0'
122
137
  requirements: []
123
- rubygems_version: 3.3.7
138
+ rubygems_version: 3.4.10
124
139
  signing_key:
125
140
  specification_version: 4
126
141
  summary: The JOD theme generates documentation web pages from Ontology turtle documents