foreman_theme_satellite 13.2.1 → 13.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: beaa054eccfb8898f7735f130efe942b9a7f8cee76f629073fe68c95a0aebd85
4
- data.tar.gz: 2d271c6335f17c3606e68d8cca80c161f177e7e32bac87340d723f71ff1e27a9
3
+ metadata.gz: 30822812136e9b1c6bb20667e74aedb91a89d9df6c92f43da6839eff01d59544
4
+ data.tar.gz: af8a8f0ad58ab4e377e07d5353ae72a4a05c7a1ab8e23481e235862b38fda187
5
5
  SHA512:
6
- metadata.gz: f2c992b80c8bb423478bcbec0ad8b1aa689e2790ce975668670e318d4a3a667fe5af06a642a03da6f69c85fcb159d3892279f9f889762da812b3996c9996ee7a
7
- data.tar.gz: 7e4e825dc142b3abf89f42ee2645aa8e08f9d3c357515ae153ca51f04c8d6a449bcbd8e0f75b82f4a9ae5966b650c2cbb64aa526be9700bd2aeda363ec1c5ca1
6
+ metadata.gz: 1489ce8998f8398a68ebc07c75e87eda3c9c32c651739c199e011c06d7779996ee123d436ca5ac038e2faf90acf42b1e8c9bdc31db4ddb92bf0f585b17243e38
7
+ data.tar.gz: ab3134fc8748b5e110e01acb1dde35e406420308842c7f50316457e5dcf27275e0f63d5b6a08d54e06934e0bbe7e3d1fabc578a74e804a5619a6c78722bcd712
@@ -30,4 +30,13 @@ module DocumentationControllerBranding
30
30
  def wiki_url(section: '')
31
31
  documentation_url(section)
32
32
  end
33
+
34
+ # For new documentation at docs.theforeman.org
35
+ # We do not use flavor downstream, but keeping it here for the same method signature
36
+ # rubocop:disable Lint/UnusedMethodArgument
37
+ def docs_url(guide:, flavor:, chapter: nil)
38
+ url = ForemanThemeSatellite::Documentation::DOCS_GUIDES_LINKS.dig(guide, chapter)
39
+ url || "#{ForemanThemeSatellite.documentation_root}/#{guide.downcase}/#{chapter}"
40
+ end
41
+ # rubocop:enable Lint/UnusedMethodArgument
33
42
  end
@@ -80,5 +80,11 @@ module ForemanThemeSatellite
80
80
  SPECIAL_LINKS = [
81
81
  [/docs\.theforeman\.org\/.*?\/Managing_Hosts\/.*?registering-a-host.*?managing-hosts/i, "#{ForemanThemeSatellite.documentation_root}/managing_hosts/registering_hosts_to_server_managing-hosts#Registering_Hosts_managing-hosts"],
82
82
  ]
83
+
84
+ DOCS_GUIDES_LINKS = {
85
+ 'Managing_Hosts' => {
86
+ 'registering-a-host_managing-hosts' => "#{ForemanThemeSatellite.documentation_root}/managing_hosts/registering_hosts_to_server_managing-hosts#Registering_Hosts_managing-hosts",
87
+ }
88
+ }.freeze
83
89
  end
84
90
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanThemeSatellite
2
- VERSION = '13.2.1'.freeze
2
+ VERSION = '13.2.2'.freeze
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_theme_satellite",
3
- "version": "13.2.1",
3
+ "version": "13.2.2",
4
4
  "description": "Satellite theme =============",
5
5
  "main": "index.js",
6
6
  "scripts": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_theme_satellite
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.2.1
4
+ version: 13.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shimon Stein
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-01-05 00:00:00.000000000 Z
12
+ date: 2024-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport