utopia-project 0.20.1 → 0.20.2
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
- checksums.yaml.gz.sig +0 -0
- data/lib/utopia/project/version.rb +1 -1
- data/pages/_header.xnode +14 -1
- data/pages/source/controller.rb +3 -3
- data/pages/source/show.xnode +30 -23
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a592172db272c2789de44f49c0b441741a3d269f19f849ef5718aaf3c5a7152e
|
|
4
|
+
data.tar.gz: 66078c8df37cbff16f1dc674d18b05efef27f910894d258647189f4944d83b40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ce5ea33622890abb90b9192be7a546219f5e0b8f94cf193fe3640b1177f9c2a17ec0c0a3a037f52be677addfa255b6529a40059f1b063de9fd74e4e3224eae0
|
|
7
|
+
data.tar.gz: 01f392ac81d5d68117298bf3d803bc7d1f3171bde53a9c670e2eb9e737e7d09b24b122505b1fcfa970f526525232bd7e13c4a357730055594c262bfd3e7e7232
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/pages/_header.xnode
CHANGED
|
@@ -12,7 +12,20 @@
|
|
|
12
12
|
?> › <span>#{path.last}</span><?r
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
if lexical_path = controller[:lexical_path]
|
|
17
|
+
current = []
|
|
18
|
+
lexical_path.each do |part|
|
|
19
|
+
current << part
|
|
20
|
+
|
|
21
|
+
?> › <a href="/source/#{current.join('/')}/index">#{part}</a> <?r
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
if guide = controller[:guide]
|
|
26
|
+
?> › <a href="/guides/#{guide.name}/index">#{guide.title}</a> <?r
|
|
27
|
+
end
|
|
28
|
+
|
|
16
29
|
if localization.localized?
|
|
17
30
|
?> • (<?r
|
|
18
31
|
localization.all_locales.each.with_index do |locale, index|
|
data/pages/source/controller.rb
CHANGED
|
@@ -8,11 +8,11 @@ end
|
|
|
8
8
|
on '**/*/index' do |request, path|
|
|
9
9
|
@base = Utopia::Project::Base.instance
|
|
10
10
|
|
|
11
|
-
lexical_path = path.components.dup
|
|
11
|
+
@lexical_path = path.components.dup
|
|
12
12
|
# Remove the last "index" part:
|
|
13
|
-
lexical_path.pop
|
|
13
|
+
@lexical_path.pop
|
|
14
14
|
|
|
15
|
-
@node, @symbol = @base.lookup(lexical_path)
|
|
15
|
+
@node, @symbol = @base.lookup(@lexical_path)
|
|
16
16
|
|
|
17
17
|
unless @symbol
|
|
18
18
|
fail! :not_found
|
data/pages/source/show.xnode
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
base = self[:base]
|
|
4
4
|
node = self[:node]
|
|
5
5
|
symbol = self[:symbol]
|
|
6
|
+
document.attributes[:title] ||= symbol.qualified_name
|
|
6
7
|
?>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</p>
|
|
8
|
+
|
|
9
|
+
<h1>
|
|
10
|
+
<code class="language-#{symbol.language.name}">#{symbol.short_form}</code>
|
|
11
|
+
</h1>
|
|
12
12
|
|
|
13
13
|
<?r
|
|
14
14
|
if document = base.document_for(symbol)
|
|
@@ -17,33 +17,39 @@
|
|
|
17
17
|
?>#{base.format(text.join("\n"), symbol)}<?r
|
|
18
18
|
end
|
|
19
19
|
?>
|
|
20
|
-
|
|
21
20
|
#{partial 'content:signature', symbol: symbol}
|
|
22
|
-
|
|
23
21
|
<?r
|
|
24
|
-
nested = node.children.map
|
|
22
|
+
nested = node.children.map do |name, child|
|
|
23
|
+
base.best(child.values)
|
|
24
|
+
end.select do |symbol|
|
|
25
|
+
symbol.container?
|
|
26
|
+
end
|
|
25
27
|
|
|
26
28
|
if nested.any?
|
|
27
29
|
?>
|
|
28
30
|
<section>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
<h2>Nested</h2>
|
|
32
|
+
|
|
33
|
+
<ul>
|
|
34
|
+
<?r nested.each do |symbol| ?>
|
|
35
|
+
<li><a href="#{base.link_for(symbol)}"><code class="language-#{symbol.language.name}">#{symbol.nested_name}</code></a></li>
|
|
36
|
+
<?r end ?>
|
|
37
|
+
</ul>
|
|
36
38
|
</section>
|
|
37
39
|
<?r
|
|
38
40
|
end
|
|
39
|
-
?>
|
|
40
41
|
|
|
42
|
+
definitions = node.children.map do |name, child|
|
|
43
|
+
child.values.select{|symbol| symbol.documentation and !symbol.container?}
|
|
44
|
+
end.flatten
|
|
45
|
+
|
|
46
|
+
if definitions.any?
|
|
47
|
+
?>
|
|
41
48
|
<section>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
child.values.each do |symbol|
|
|
49
|
+
<h2>Definitions</h2>
|
|
50
|
+
|
|
51
|
+
<?r
|
|
52
|
+
definitions.each do |symbol|
|
|
47
53
|
if symbol.documentation and !symbol.container?
|
|
48
54
|
?><section id="#{base.id_for(symbol)}"><h3><code class="language-#{symbol.language.name}">#{symbol.long_form}</code></h3><?r
|
|
49
55
|
|
|
@@ -62,9 +68,10 @@
|
|
|
62
68
|
?></section><?r
|
|
63
69
|
end
|
|
64
70
|
end
|
|
71
|
+
?>
|
|
72
|
+
</section>
|
|
73
|
+
<?r
|
|
65
74
|
end
|
|
66
75
|
?>
|
|
67
|
-
</section>
|
|
68
|
-
|
|
69
76
|
<content:discuss/>
|
|
70
77
|
</content:page>
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: utopia-project
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.20.
|
|
4
|
+
version: 0.20.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
|
37
37
|
RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
|
|
38
38
|
HiLJ8VOFx6w=
|
|
39
39
|
-----END CERTIFICATE-----
|
|
40
|
-
date: 2022-07-
|
|
40
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
|
41
41
|
dependencies:
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: decode
|
metadata.gz.sig
CHANGED
|
Binary file
|