utopia-project 0.18.0 → 0.19.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24fda7ece0102628b1160b9f9b93cc15ca75ac1c7f7ed6d1a674521705ba96f3
4
- data.tar.gz: 4ca114651629fefcc0a5db05ac38712c96454e2f8de97b53fabc0bae1d18e2d2
3
+ metadata.gz: e8479ac4dc2baa64e5fe601e243bdc451a27a98683af099ef13e4168d93abbc9
4
+ data.tar.gz: 1d342b29f3dfd70a50bccf60b7bf1c3eee37720a077150339eea0621f9cb540a
5
5
  SHA512:
6
- metadata.gz: e2ff765506a5841b132cfea27267c2ab1a50d319d127b7ec6c55342c99a7321216c04c593e814a8bd5959189b1c7c2bec37a43865c36a71a46a102a111d57550
7
- data.tar.gz: 24d6eb555a6540e181cf62ab7172864ecb88bde77cb8e0a2924655f868753ece0d6e7a9d6ebc5f16dae9bb6e33bbb77aba8a5105fcf5468e9181324e95b7726b
6
+ metadata.gz: e1ec234ec399889c920da17113f1baab77b55ac935b1cf6842b1c81e45dc437a31bd90176cac228a482f3bc198fe635bba9bee77491940dfe1bfec6eb54e60e2
7
+ data.tar.gz: 862859d180cae34afb36623166b3bd876375d857fd9a2af0d58bd20c8b8587533bbb56e37fa88f2330744103b7577cb03189d2bc7dd6ad0906637d3d315d80eb
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
@@ -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.0"
25
+ VERSION = "0.19.1"
26
26
  end
27
27
  end
data/pages/_page.xnode CHANGED
@@ -24,9 +24,14 @@
24
24
  <script type="text/javascript">
25
25
  //<![CDATA[
26
26
  jQuery(function($) {
27
- mermaid.init();
28
27
  $.syntax();
29
28
  });
29
+
30
+ let isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches
31
+ let config = {theme: 'light'};
32
+ if (isDarkMode) config.theme = 'dark';
33
+ else config.theme = 'forest';
34
+ mermaid.initialize(config);
30
35
  //]]>
31
36
  </script>
32
37
  </head>
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.0
4
+ version: 0.19.1
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-17 00:00:00.000000000 Z
40
+ date: 2022-04-20 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
@@ -334,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
334
332
  - !ruby/object:Gem::Version
335
333
  version: '0'
336
334
  requirements: []
337
- rubygems_version: 3.2.32
335
+ rubygems_version: 3.1.6
338
336
  signing_key:
339
337
  specification_version: 4
340
338
  summary: A project documentation tool based on Utopia.
metadata.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- Lq�Qt��Ҕ��vlJɆ\���Q',N�B� ˡ�� ��������V�#��>�i��&�r�>�]��_j��"Ln2��[�/r7+o5�K�ޗ68 �f�5����Y��b$ER~ST9��bZX�<�v�V���%3�sc�5kAi �K�����R��F+��﫹Rh���m�By�8�8�pd�ʠ���t����*�W���.m�0���u9
2
- e��Un/������_^�Ι+����<�X�!��e�`��d�u���R��
3
- B�j��3�m�X�y8TҴ���9gI�����|�H��N��3�6���HA'Һt9�1. ��GI�����y��w�d������G6�����`����^���"���f �5�
1
+ 0�$�qOY)g����$����w����N�*QSv�h5g��U�#X�����Ʀ��TN�j?8wXGgF��b�����4tSh����07�|�'�Ę}"l���
2
+ C�� w��HkLخ�t �?�2����+����r� ��g���OF��~�XF�#�uO!SƢ_s7��:ckcv>f<j\W�U���J��;�͹�!����[�*����;/�~��~\u�q醷�
data/public/.DS_Store DELETED
Binary file
Binary file