foreman_theme_satellite 16.2.0 → 16.2.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: 163343ae67522de8d9cf9ae884a4ce4828aeb5e5118779094d7fd29077e18357
4
- data.tar.gz: 7d0e0710022784af3c3cc3137c1188df4920a8d7137749739c0b67b29329813b
3
+ metadata.gz: d35bd851499da4bc1defae6d90da2d052fff3890ad32128643f2e9782ac2abfe
4
+ data.tar.gz: 13400b432f27e80d5690905a403f9a1b897e006ad99ddbf329a28ef9beb5b5d0
5
5
  SHA512:
6
- metadata.gz: 99582773fe98527d78f30410320054e9f32614d1162ae8c6185a064b420d9cd30c8a4570fa81576f4131f316bdd5a19094cebce7dc95f57cae73cfb97b318763
7
- data.tar.gz: 68d956140e9ee904ce6f710612d34d30fd3b88a59f574132f91db2be5adc1fd2122b0ed2e20573b70ed17708575b4b93ba9eba158053e8d544839255b3f54f32
6
+ metadata.gz: 3ae36927444d660229f3dbc4049797ef003274f57ab544b116efae3c79e1cefeabcdbcba978132f7b0a1f6572edff339e3c7c21e39778263cd88b6af33dbf79c
7
+ data.tar.gz: f2b58b7a8104b46ee952d1e9b215654cfab4518d423d81fee5cbcd4ea888b12ca7c8fc12ee8faa368360378878d3232e065224ccd1f2f1b2769d34a5609c042a
@@ -17,20 +17,10 @@
17
17
  overflow-x: auto;
18
18
  }
19
19
 
20
- #rails-app-content {
21
- --header-height: 70px;
22
- top: var(--header-height);
23
- height: calc(100% - var(--header-height));
24
-
25
- &.eol-banner {
26
- --banner-height: calc(
27
- 2 * var(--pf-v5-global--spacer--xs) +
28
- 2 * (var(--pf-v5-global--LineHeight--md) * var(--pf-v5-global--FontSize--sm))
29
- ); // banner height is line height and a small padding
30
- top: calc(
31
- var(--header-height) + var(--banner-height)
32
- );
33
-
34
- height: calc(100% - var(--header-height) - var(--banner-height));
35
- }
20
+ body.eol-banner-present {
21
+ --eol-banner-height: calc(
22
+ 2 * var(--pf-v5-global--spacer--xs) + 2 *
23
+ (var(--pf-v5-global--LineHeight--md) * var(--pf-v5-global--FontSize--sm))
24
+ ); // banner height is line height and a small padding
25
+ --header-height: (70px + var(--eol-banner-height));
36
26
  }
@@ -38,9 +38,9 @@ end %>
38
38
  } else {
39
39
  window.onload = function(e) {
40
40
  // We have to do it from a callback because the element may not exist yet
41
- const railsContainer = document.getElementById('rails-app-content');
42
- if (railsContainer) {
43
- railsContainer.classList.add('eol-banner');
41
+ const body = document.body;
42
+ if (body) {
43
+ body.classList.add('eol-banner-present');
44
44
  }
45
45
  }
46
46
  }
@@ -48,9 +48,9 @@ end %>
48
48
  const dismissButton = document.getElementById('satellite-oel-banner-dismiss-button');
49
49
  dismissButton.addEventListener('click', () => {
50
50
  element.style.display = 'none';
51
- const railsContainer = document.getElementById('rails-app-content');
52
- if (railsContainer) {
53
- railsContainer.classList.remove('eol-banner');
51
+ const body = document.body
52
+ if (body) {
53
+ body.classList.remove('eol-banner-present');
54
54
  }
55
55
  localStorage.setItem('satellite-eol-banner-dismissed', level);
56
56
  const now = new Date();
@@ -54,7 +54,7 @@ module ForemanThemeSatellite
54
54
  'Auditing' => "overview_concepts_and_deployment_considerations/index#glossary-of-terms-used-in-satellite_planning",
55
55
 
56
56
  # Install
57
- 'HTTP(S)Proxy' => "installing_satellite_server_in_a_connected_network_environment/index#Configuring_Server_with_an_HTTP_Proxy_satellite",
57
+ 'HTTP(S)Proxy' => "installing_satellite_server_in_a_connected_network_environment/index#configuring-satellite-server-to-use-an-http-proxy",
58
58
 
59
59
  # Misc
60
60
  'GettingHelp' => "https://access.redhat.com/products/red-hat-satellite/#support",
@@ -1,3 +1,3 @@
1
1
  module ForemanThemeSatellite
2
- VERSION = '16.2.0'.freeze
2
+ VERSION = '16.2.1'.freeze
3
3
  end
@@ -31,7 +31,10 @@ namespace :foreman_theme_satellite do
31
31
  .merge(ForemanThemeSatellite::Documentation::PLUGINS_DOCUMENTATION)
32
32
  .merge(ForemanThemeSatellite::Documentation.flat_docs_guides_links)
33
33
 
34
- failed = all_links.filter { |_key, doc_address| doc_address.include?('/html-single/') && !checker.test_link(doc_address) }
34
+ # The links are either
35
+ # - path fragments - managing_hosts/index#data-control-settings
36
+ # - full URLs - https://access.redhat.com/products/red-hat-satellite/#support
37
+ failed = all_links.filter { |_key, doc_address| !doc_address.start_with?('http') && !checker.test_link(doc_address) }
35
38
 
36
39
  abort((failed.map { |key, doc_address| "FAILED: Cannot find #{doc_address} in TOC for entry: #{key}" } + ["Total failed: #{failed.count} entries"]).join("\n")) unless failed.empty?
37
40
 
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: 16.2.0
4
+ version: 16.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shimon Stein