Skip to content

Commit c662699

Browse files
authored
SUSE shared header (#4296)
* testing new SUSE shared header * update * update
1 parent 1a82d69 commit c662699

File tree

13 files changed

+138
-106
lines changed

13 files changed

+138
-106
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- Shared header enablement for documentation.suse.com
12
- Fixed command for proxy installation (bsc#1249807)
23
- Added clarification about containerized proxy (bsc#1248247)
34
- Updated hub certificates deployment documentation (bsc#1249462)

branding/default-ui/mlm/partials/toolbar.hbs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
<div class="toolbar" role="navigation">
22
{{> nav-toggle}}
3-
4-
<a href="https://documentation.suse.com" class="home-link" title="Documentation.suse.com"></a>
5-
6-
<a href="https://documentation.suse.com/multi-linux-manager/5.1/" class="library-link" title="SUSE Multi-Linux Manager Product Page">
7-
<span class="library-text">SUSE Multi-Linux Manager 5.1 | </span>
8-
<img class="library-icon" src="{{uiRootPath}}/img/library.svg" alt="Library" width="20" height="20">
9-
</a>
10-
11-
{{!-- }} <a href="https://documentation.suse.com/multi-linux-manager/5.1/" class="library-link" title="SUSE Multi-Linux Manager Product Page">
12-
<img src="{{uiRootPath}}/img/library.svg" alt="Library" width="16" height="16">
13-
</a> --}}
14-
153
{{> breadcrumbs}}
164
{{> page-versions}}
175

branding/supplemental-ui/mlm/susecom-2025/css/site-extra.css

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,4 +1287,53 @@ margin: .225rem;
12871287
.breadcrumbs {
12881288
display: block !important;
12891289
}
1290-
}
1290+
}
1291+
1292+
.toolbar {
1293+
background-color: #efefef;
1294+
/* Shared Header - start */
1295+
top: 6.9rem;
1296+
/* Shared Header - end */
1297+
}
1298+
1299+
body {
1300+
font-family: "SUSE", "Poppins", sans-serif;
1301+
word-break: keep-all;
1302+
/* Shared Header - start */
1303+
padding-top: 0;
1304+
/* Shared Header - end */
1305+
}
1306+
1307+
.toc .toc-menu a {
1308+
border-left: unset;
1309+
}
1310+
1311+
.home-link-dsc {
1312+
display: block;
1313+
height: 1.25rem;
1314+
width: 1.25rem;
1315+
margin: .625rem;
1316+
}
1317+
1318+
/* Shared Header - start */
1319+
.nav {
1320+
top: 6.9rem;
1321+
-webkit-box-shadow: none;
1322+
box-shadow: none;
1323+
position: sticky;
1324+
height: calc(100vh - 6.9rem);
1325+
}
1326+
1327+
.toc.sidebar .toc-menu {
1328+
margin-right: .75rem;
1329+
position: sticky;
1330+
top: 9.4rem;
1331+
}
1332+
1333+
shared-header {
1334+
position: sticky;
1335+
top: 0;
1336+
z-index: 999;
1337+
}
1338+
1339+
/* Shared Header - end */
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
{{> head defaultPageTitle='Page Not Found'}}
5+
</head>
6+
<body class="status-404">
7+
{{> header}}
8+
{{> body}}
9+
{{> footer}}
10+
</body>
11+
</html>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
{{> head defaultPageTitle='Untitled'}}
5+
</head>
6+
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}">
7+
{{> header}}
8+
{{> body}}
9+
{{> footer}}
10+
</body>
11+
</html>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="body">
2+
{{> nav}}
3+
{{> main}}
4+
<script src="{{{uiRootPath}}}/js/language-switcher.js"></script>
5+
</div>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<nav class="breadcrumbs" aria-label="breadcrumbs">
2+
<ul>
3+
{{#if page.breadcrumbs.[0]}}
4+
<li>
5+
{{#if (and page.breadcrumbs.[0].url (eq page.breadcrumbs.[0].urlType 'internal'))}}
6+
<a href="{{{relativize page.breadcrumbs.[0].url}}}">{{{page.breadcrumbs.[0].content}}}</a>
7+
{{else}}
8+
{{{page.breadcrumbs.[0].content}}}
9+
{{/if}}
10+
</li>
11+
{{/if}}
12+
</ul>
13+
</nav>

branding/supplemental-ui/mlm/susecom-2025/partials/footer-scripts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{#if env.SITE_SEARCH_PROVIDER}}
44
{{> search-scripts}}
55
{{/if}}
6-
<script src="{{uiRootPath}}/js/vendor/langSelection.js"></script>
6+
<!-- <script src="{{uiRootPath}}/js/vendor/langSelection.js"></script> -->
77
<script async src="{{{uiRootPath}}}/js/vendor/tabs.js"></script>
88

99

branding/supplemental-ui/mlm/susecom-2025/partials/head-meta.hbs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
<a class="survey-link" href="https://suselinux.fra1.qualtrics.com/jfe/form/SV_bEiGZbUNzLD8Tcy"> Documentation survey
1515
</a>
1616
<script src="/docserv/res/lightheaded/analytics.js" type="text/javascript"></script>
17+
1718
<script type="module">
18-
import { defineCustomElements, setAssetPath } from 'https://static.scc.suse.com/shared-header/0.1.0/shared-header.bundle.js';
19-
defineCustomElements();
20-
setAssetPath("https://static.scc.suse.com/shared-header/0.1.0/assets");
19+
import { defineCustomElements, setAssetPath } from 'https://d12w0ryu9hjsx8.cloudfront.net/shared-header/1.3/shared-header.esm.js';
20+
defineCustomElements();
21+
setAssetPath("https://d12w0ryu9hjsx8.cloudfront.net/shared-header/1.2/assets");
2122
</script>
23+
2224
<link href="https://documentation.suse.com/multi-linux-manager/5.1/en{{page.url}}" rel="canonical"/>
2325
<link href="https://documentation.suse.com/multi-linux-manager/5.1/en{{page.url}}" hreflang="x-default" rel="alternate"/>
2426
<link href="https://documentation.suse.com/multi-linux-manager/5.1/en{{page.url}}" hreflang="en-US" rel="alternate" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{> head-prelude}}
2+
{{> head-title}}
3+
{{> head-info}}
4+
{{> head-styles}}
5+
{{> head-meta}}
6+
{{> head-scripts}}
7+
{{> head-icons}}

0 commit comments

Comments
 (0)