ttl2html 2.0.8 → 2.0.9

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: 3d8c7e6dce36bd989cd64b3ac4964afacc39dd7c7d523e6d7994e13b0627cce1
4
- data.tar.gz: 196b493e732acbeaa8d49c7e1a6529fe5a3626b81c60d0fc3218dc6b23ad68c5
3
+ metadata.gz: 8d3fad4daa86b1212d5909af7b9ec124931c30442c693ab2c2d1e9c94a955727
4
+ data.tar.gz: b93501d62ca5185abb8c938cbda8854d0ce16f9cce1e52f890c910c51323c499
5
5
  SHA512:
6
- metadata.gz: e0851e31375321f6dd210fd72522d6a21458d02b55c73847ebbd8d6f3b85f6439e59a34457004a6f4a2dd9f60f0522aaa987cd333375e347547f7f071c9bd3e8
7
- data.tar.gz: 4d025717df665375a3cf6e13bcecd14b8e40b81428547f54ce8799bff6283c7f31fe747e8786e6f41ed1535a3294e5e7656a7b90e7730d4b68cc3289af6ea363
6
+ metadata.gz: 35efabb00707c56a13bad316ff4cfac888f7ac0fef2e671aa17c73fd8eb07b55c859429e0261cd59d67054fc31df8cfd977a72234749972dbf19f4c0140dc365
7
+ data.tar.gz: 5f8c97ee2679fbc108cbd61826b215be630f37c891cdd1a2e37152ac95d562a97e9f9920e3e9718c8b99d7aa9288b124f0ae29504b7c3b1980292dabdf69416b
@@ -1 +1 @@
1
- TTL2HTML::VERSION = "2.0.8"
1
+ TTL2HTML::VERSION = "2.0.9"
data/lib/ttl2html.rb CHANGED
@@ -199,6 +199,7 @@ module TTL2HTML
199
199
  param[:data_inverse_global] = @data_inverse
200
200
  param[:versions] = versions
201
201
  param[:toplevel] = toplevel
202
+ param[:description] = template.to_html_raw("description.html", {}) if template.find_template_path("description.html")
202
203
  subjects.sort.each do |subject|
203
204
  objects = []
204
205
  if @config.has_key? :top_additional_property
@@ -227,6 +228,7 @@ module TTL2HTML
227
228
  param[:data_global] = @data
228
229
  param[:versions] = versions
229
230
  param[:toplevel] = toplevel
231
+ param[:description] = template.to_html_raw("description.html", {}) if template.find_template_path("description.html")
230
232
  param[:shapes] = {}
231
233
  shapes.each do |subject|
232
234
  orders = []
@@ -4,6 +4,9 @@
4
4
  <%- if param[:toplevel] and param[:toplevel][:description] -%>
5
5
  <p><%= get_language_literal(param[:toplevel][:description]) %></p>
6
6
  <%- end -%>
7
+ <%- if param[:description] -%>
8
+ <div class="description"><%= param[:description] %></div>
9
+ <%- end -%>
7
10
  </div>
8
11
  </div>
9
12
  <div class="container">
@@ -4,6 +4,9 @@
4
4
  <%- if param[:toplevel] and param[:toplevel][:description] -%>
5
5
  <p><%= get_language_literal(param[:toplevel][:description]) %></p>
6
6
  <%- end -%>
7
+ <%- if param[:description] -%>
8
+ <div class="description"><%= param[:description] %></div>
9
+ <%- end -%>
7
10
  <p><i class="bi bi-link-45deg"></i> <a href="<%=h param[:base_uri] %>"><%=h param[:base_uri] %></a></p>
8
11
  <p><a class="btn btn-info" href="<%=h relative_path(param[:about_file] || "about.html") %>"><%=h t("about.title", title: param[:site_title]) %> &raquo;</a></p>
9
12
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttl2html
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masao Takaku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-20 00:00:00.000000000 Z
11
+ date: 2024-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri