utopia-project 0.11.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bake/utopia/project.rb +1 -1
- data/lib/utopia/project/document.rb +4 -3
- data/lib/utopia/project/linkify.rb +2 -2
- data/lib/utopia/project/version.rb +1 -1
- data/pages/_navigation.xnode +1 -1
- data/pages/_usage.xnode +1 -3
- data/pages/index.xnode +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39960cd4d35df4f08a2e1ab9a0b05922ac5c1f87bc804ed9afe891990c443ff3
|
4
|
+
data.tar.gz: 23b4188efee931c098f9738a9b4661cc78116094310c9c066eb8a9a69fbde59a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc1dae771497973a1252739784458e712cd3018fd9b8b25435fa745dc4463ee5130df98190fd4c8d3a4c2c8a04e0ec6f2cb92f87952f5d4d8969eac6679d5084
|
7
|
+
data.tar.gz: ef69eba830a027c47a53f167afcbb03926da5e5a9dc5742db87e8d9d6ee2190626a103786778881e675276e1457f899feb9d22cbaf1ab91ec10033d7ff7299f1
|
data/bake/utopia/project.rb
CHANGED
@@ -52,7 +52,7 @@ module Utopia
|
|
52
52
|
header = child
|
53
53
|
|
54
54
|
# We found the matched header:
|
55
|
-
if header.first_child.
|
55
|
+
if header.first_child.to_plaintext.include?(name)
|
56
56
|
# Now subsequent children:
|
57
57
|
current = header.next
|
58
58
|
while current.type != :header and following = current.next
|
@@ -69,7 +69,8 @@ module Utopia
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def to_html(node = self.root)
|
72
|
-
|
72
|
+
renderer = Markly::HTMLRenderer.new(ids: true, flags: Markly::UNSAFE)
|
73
|
+
Trenni::MarkupString.raw(renderer.render(node))
|
73
74
|
end
|
74
75
|
|
75
76
|
def paragraph_node(child)
|
@@ -106,7 +107,7 @@ module Utopia
|
|
106
107
|
return node
|
107
108
|
end
|
108
109
|
|
109
|
-
def code_node(content, language)
|
110
|
+
def code_node(content, language = nil)
|
110
111
|
if language
|
111
112
|
node = inline_html_node(
|
112
113
|
"<code class=\"language-#{language}\">#{Trenni::Strings.to_html(content)}</code>"
|
@@ -41,8 +41,8 @@ module Utopia
|
|
41
41
|
|
42
42
|
def link_to(definition, text)
|
43
43
|
Trenni::Builder.fragment do |builder|
|
44
|
-
builder.inline('a', href: @base.link_for(definition)) do
|
45
|
-
builder.text(
|
44
|
+
builder.inline('a', href: @base.link_for(definition), title: definition.qualified_name) do
|
45
|
+
builder.text(text)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
data/pages/_navigation.xnode
CHANGED
data/pages/_usage.xnode
CHANGED
data/pages/index.xnode
CHANGED
@@ -11,8 +11,8 @@
|
|
11
11
|
case title.type
|
12
12
|
when :text
|
13
13
|
?><content:heading>#{title.string_content}</content:heading><?r
|
14
|
-
when :
|
15
|
-
?><header><img src="#{title.
|
14
|
+
when :image
|
15
|
+
?><header><img src="#{title.url}" /></header><?r
|
16
16
|
else
|
17
17
|
?><content:heading>Project</content:heading><?r
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utopia-project
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: utopia
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: markly
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '0.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '0.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: decode
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,7 +178,7 @@ dependencies:
|
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
-
description:
|
181
|
+
description:
|
182
182
|
email:
|
183
183
|
- samuel.williams@oriontransfer.co.nz
|
184
184
|
executables: []
|
@@ -294,7 +294,7 @@ licenses:
|
|
294
294
|
metadata:
|
295
295
|
source_code_uri: https://github.com/socketry/utopia-project/
|
296
296
|
funding_uri: https://github.com/sponsors/ioquatix/
|
297
|
-
post_install_message:
|
297
|
+
post_install_message:
|
298
298
|
rdoc_options: []
|
299
299
|
require_paths:
|
300
300
|
- lib
|
@@ -310,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
310
|
version: '0'
|
311
311
|
requirements: []
|
312
312
|
rubygems_version: 3.1.2
|
313
|
-
signing_key:
|
313
|
+
signing_key:
|
314
314
|
specification_version: 4
|
315
315
|
summary: A project documentation tool based on Utopia.
|
316
316
|
test_files: []
|