metanorma-un 0.12.24 → 0.12.25

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: 567c6ab5564ba069199dfe5eb5a470ecb32f7fd375a383ff87e85a4e8a697aab
4
- data.tar.gz: a93f107cc1a3598abb36170607e1b9d0c34c952a3c0c3a3d033a412d6ee94e0e
3
+ metadata.gz: b75396cf8714093124f0006aef1524441f2085c4a8eeae885f59e8fbd907e844
4
+ data.tar.gz: 5fa184b206c0da728d4fff5c528323fa6d8911e3c979245f514f08ea7f6a65bb
5
5
  SHA512:
6
- metadata.gz: 107cee43821e16da6890ecf34199f382e0cbe33a7d4e1c7d74206ffe0dbfffa25fdabcbfaba02f86b834348514acf5bbb05ca977cd68bfabbeac3a82e8ae5ddc
7
- data.tar.gz: f32b3fdb522704b6eba4ee52bd5f4981b5b60b7bfc79be659c8fd6589ac8af4a8258918bbb929a917c0cc49e978ae2bdb1942b1f8cdc1d2c1d983869b3de7492
6
+ metadata.gz: cd5084168b55db8c5149b433a0d240121aafd7f0a62e8beb04d69de030bf5645003e8004e3bc91f07c15e695ae44b7c31fd0a853e4cedd905cedeabb6e892e3e
7
+ data.tar.gz: 7a12e97b24c8fb9918fd7ddcd4e39f855ae9a925f4064061db75448d099b924f8856d8fc789d961dfb23b083d7de4e0b22066439252dd0033d174896df8a24a9
@@ -0,0 +1,14 @@
1
+ extends: generic
2
+ publishers:
3
+ - United Nations Economic Commission for Europe
4
+ publisher_name: United Nations Economic Commission for Europe
5
+ logos: []
6
+ primary: '#00ADEF'
7
+ accent: '#00ADEF'
8
+ gradient: 'linear-gradient(135deg, #00ADEF, #00ADEF)'
9
+ header_background: '#00ADEF'
10
+ cover_background: '#00ADEF'
11
+ font_body: '"Source Sans Pro", sans-serif'
12
+ font_sans: '"Source Sans Pro", sans-serif'
13
+ font_mono: '"Source Code Pro", monospace'
14
+ font_url: ''
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module UN
3
- VERSION = "0.12.24".freeze
3
+ VERSION = "0.12.25".freeze
4
4
  end
5
5
  end
data/lib/metanorma/un.rb CHANGED
@@ -10,5 +10,19 @@ module Metanorma
10
10
 
11
11
  ORGANIZATION_NAME_SHORT = "UN".freeze
12
12
  ORGANIZATION_NAME_LONG = "United Nations".freeze
13
+
14
+ # The UN flavor owns its presentation theme: register it so
15
+ # metanorma-document resolves Theme.load(:un) to this gem's copy
16
+ # (metanorma-document#219: the engine carries no brand themes).
17
+ # Lazy: the theme system exists only on the metanorma-document
18
+ # line; skip silently on resolutions without it.
19
+ begin
20
+ require "metanorma/html"
21
+ Metanorma::Html::Theme.register_themes_dir(
22
+ File.expand_path("un/themes", __dir__),
23
+ )
24
+ rescue LoadError
25
+ # metanorma-document unavailable; registry styling inert
26
+ end
13
27
  end
14
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-un
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.24
4
+ version: 0.12.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -295,6 +295,7 @@ files:
295
295
  - lib/metanorma/un/processor.rb
296
296
  - lib/metanorma/un/relaton-un.rng
297
297
  - lib/metanorma/un/reqt.rng
298
+ - lib/metanorma/un/themes/un/theme.yaml
298
299
  - lib/metanorma/un/un.rng
299
300
  - lib/metanorma/un/validate.rb
300
301
  - lib/metanorma/un/version.rb