utopia-project 0.18.1 → 0.20.0

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: 4d59b43aec217ee84beb050d7d6e151d46aa441cbee39b73b9e664fdf773432f
4
- data.tar.gz: 4e76c51906d87652a1f0e8242ef4ae8bc28994ff2e6330e5269f8c1a4387dcd5
3
+ metadata.gz: bb20d4e30052d026d73a9d81d0aa4834756c0f0ab6b8bd352ba51e3cabadabf3
4
+ data.tar.gz: d1503c89cf8383adca84b0c47a91a7d224fbde80e2aa7363c9bb7cd5958b95f4
5
5
  SHA512:
6
- metadata.gz: e849c822aed4c2591a1116bc4ed36d45c3ede9836b51b1cf2e42fbba2fddf4a79227991dfceb73b9d3810b1ca347402bc7966f4134634a2fdd7840c9c7d9f49c
7
- data.tar.gz: 06fb199a979a521f6ea11ddc419aeaf616e82d478019122b3fe41fcc6a8de68a6991d688499381b0fda0c30861faf07860c764f9075f19cf4b67760f51b5637a
6
+ metadata.gz: 46c2fed2d33cbd886057eb31c86b540dd8d66abce8a09bf80dfde36dcc1cc6fe3cfc6d7c140d05c4b30aabfd523cdbc78b6998133e0fc7cc5f5ef92e88fae5d1
7
+ data.tar.gz: 20eb201ef1cca0e746e25da9f2db3210881ebf2709131831f672f2e0daa66f53009a9b656c3eb638a2391a8cfb8eec095bf7bbdbefcd25a897b1cd187d3f7d71
checksums.yaml.gz.sig CHANGED
Binary file
@@ -32,13 +32,20 @@ end
32
32
 
33
33
  # Generate a static copy of the site.
34
34
  # @parameter output_path [String] The output path for the static site.
35
- def static(output_path: "docs")
35
+ # @parameter force [Boolean] Remove the output directory before generating the static content.
36
+ def static(output_path: "docs", force: true)
36
37
  require 'rackula/command'
37
38
 
38
39
  config_path = File.expand_path("../../template/config.ru", __dir__)
39
40
  public_path = File.expand_path("../../public", __dir__)
40
41
 
41
- Rackula::Command::Top["generate", "--force",
42
+ arguments = []
43
+
44
+ if force
45
+ arguments << "--force"
46
+ end
47
+
48
+ Rackula::Command::Top["generate", *arguments,
42
49
  "--config", config_path,
43
50
  "--public", public_path,
44
51
  "--output-path", output_path
@@ -42,7 +42,7 @@ module Utopia
42
42
  instance = self.new
43
43
 
44
44
  source_files = Dir.glob(
45
- File.expand_path("lib/**/*.rb", instance.root)
45
+ File.expand_path("{lib,app}/**/*.rb", instance.root)
46
46
  )
47
47
 
48
48
  instance.update(source_files)
@@ -68,7 +68,7 @@ module Utopia
68
68
  @document ||= self.readme_document.tap do |document|
69
69
  child = document.first_child
70
70
 
71
- if child.type == :header
71
+ if child&.type == :header
72
72
  @title = child.first_child.string_content
73
73
 
74
74
  @description = child.next
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Utopia
24
24
  module Project
25
- VERSION = "0.18.1"
25
+ VERSION = "0.20.0"
26
26
  end
27
27
  end
@@ -12,7 +12,7 @@
12
12
  if documentation = symbol.documentation or symbol.container?
13
13
  ?><li>
14
14
  <?r if symbol.container? ?>
15
- <a href="#{base.link_for(symbol)}"><code class="language-#{symbol.language.name}">#{symbol.long_form}</code></a>
15
+ <a href="#{base.link_for(symbol)}"><code class="language-#{symbol.language.name}">#{symbol.short_form}</code></a>
16
16
 
17
17
  #{partial 'content:pragmas', symbol: symbol, class: 'inline'}
18
18
 
@@ -4,7 +4,11 @@
4
4
  node = self[:node]
5
5
  symbol = self[:symbol]
6
6
  ?>
7
- <content:heading><code class="language-#{symbol.language.name}">#{symbol.qualified_name}</code></content:heading>
7
+ <content:heading>#{symbol.qualified_name}</content:heading>
8
+
9
+ <p>
10
+ <code class="language-#{symbol.language.name}">#{symbol.long_form}</code>
11
+ </p>
8
12
 
9
13
  <?r
10
14
  if document = base.document_for(symbol)
@@ -177,10 +177,6 @@ li ul, li ol {
177
177
  margin-left: 1rem;
178
178
  }
179
179
 
180
- h1 {
181
- margin-bottom: 4rem;
182
- }
183
-
184
180
  img {
185
181
  border: none;
186
182
  }
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
+ - Olle Jonsson
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain:
@@ -36,7 +37,7 @@ cert_chain:
36
37
  RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
37
38
  HiLJ8VOFx6w=
38
39
  -----END CERTIFICATE-----
39
- date: 2022-01-19 00:00:00.000000000 Z
40
+ date: 2022-05-13 00:00:00.000000000 Z
40
41
  dependencies:
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: decode
@@ -84,16 +85,16 @@ dependencies:
84
85
  name: rackula
85
86
  requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
- - - ">="
88
+ - - "~>"
88
89
  - !ruby/object:Gem::Version
89
- version: '0'
90
+ version: '1.3'
90
91
  type: :runtime
91
92
  prerelease: false
92
93
  version_requirements: !ruby/object:Gem::Requirement
93
94
  requirements:
94
- - - ">="
95
+ - - "~>"
95
96
  - !ruby/object:Gem::Version
96
- version: '0'
97
+ version: '1.3'
97
98
  - !ruby/object:Gem::Dependency
98
99
  name: thread-local
99
100
  requirement: !ruby/object:Gem::Requirement
@@ -228,13 +229,10 @@ files:
228
229
  - pages/source/controller.rb
229
230
  - pages/source/index.xnode
230
231
  - pages/source/show.xnode
231
- - public/.DS_Store
232
232
  - public/.nojekyll
233
- - public/_components/.DS_Store
234
233
  - public/_components/jquery-litebox/jquery.litebox.css
235
234
  - public/_components/jquery-litebox/jquery.litebox.gallery.css
236
235
  - public/_components/jquery-litebox/jquery.litebox.js
237
- - public/_components/jquery-syntax/.DS_Store
238
236
  - public/_components/jquery-syntax/base/jquery.syntax.brush.apache.css
239
237
  - public/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css
240
238
  - public/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css
@@ -305,7 +303,6 @@ files:
305
303
  - public/_components/jquery/jquery.slim.js
306
304
  - public/_components/jquery/jquery.slim.min.js
307
305
  - public/_components/jquery/jquery.slim.min.map
308
- - public/_components/mermaid/.DS_Store
309
306
  - public/_components/mermaid/mermaid.min.js
310
307
  - public/_components/mermaid/mermaid.min.js.LICENSE.txt
311
308
  - public/_static/icon.png
@@ -335,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
332
  - !ruby/object:Gem::Version
336
333
  version: '0'
337
334
  requirements: []
338
- rubygems_version: 3.2.32
335
+ rubygems_version: 3.3.7
339
336
  signing_key:
340
337
  specification_version: 4
341
338
  summary: A project documentation tool based on Utopia.
metadata.gz.sig CHANGED
Binary file
data/public/.DS_Store DELETED
Binary file
Binary file
Binary file