@robinmordasiewicz/f5xc-docs-theme 1.4.5 → 1.5.0

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.
@@ -0,0 +1,41 @@
1
+ ---
2
+ import Default from '@astrojs/starlight/components/SiteTitle.astro';
3
+
4
+ const docsHome = process.env.DOCS_HOME || 'https://robinmordasiewicz.github.io/f5xc-docs/';
5
+ ---
6
+
7
+ <div class="home-title-group">
8
+ <a href={docsHome} class="home-link" aria-label="Documentation home">
9
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
10
+ <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
11
+ <polyline points="9 22 9 12 15 12 15 22"/>
12
+ </svg>
13
+ </a>
14
+ <span class="home-separator" aria-hidden="true"></span>
15
+ <Default {...Astro.props}><slot /></Default>
16
+ </div>
17
+
18
+ <style>
19
+ .home-title-group {
20
+ display: flex;
21
+ align-items: center;
22
+ gap: 0.5rem;
23
+ }
24
+
25
+ .home-link {
26
+ display: inline-flex;
27
+ align-items: center;
28
+ color: var(--sl-color-text-accent);
29
+ transition: opacity 0.2s ease;
30
+ }
31
+
32
+ .home-link:hover {
33
+ opacity: 0.7;
34
+ }
35
+
36
+ .home-separator {
37
+ width: 1px;
38
+ height: 1.25rem;
39
+ background-color: var(--sl-color-gray-5);
40
+ }
41
+ </style>
package/index.ts CHANGED
@@ -4,7 +4,7 @@ export default function f5xcDocsTheme(): StarlightPlugin {
4
4
  return {
5
5
  name: 'f5xc-docs-theme',
6
6
  hooks: {
7
- setup({ config, updateConfig, logger }) {
7
+ 'config:setup'({ config, updateConfig, logger }) {
8
8
  updateConfig({
9
9
  customCss: [
10
10
  ...config.customCss,
@@ -14,6 +14,7 @@ export default function f5xcDocsTheme(): StarlightPlugin {
14
14
  components: {
15
15
  ...config.components,
16
16
  Footer: 'f5xc-docs-theme/components/Footer.astro',
17
+ SiteTitle: 'f5xc-docs-theme/components/SiteTitle.astro',
17
18
  },
18
19
  });
19
20
  logger.info('F5 XC docs theme loaded');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinmordasiewicz/f5xc-docs-theme",
3
- "version": "1.4.5",
3
+ "version": "1.5.0",
4
4
  "description": "F5 Distributed Cloud branded Starlight documentation theme",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,6 +17,7 @@
17
17
  "./fonts/font-face.css": "./fonts/font-face.css",
18
18
  "./styles/custom.css": "./styles/custom.css",
19
19
  "./components/Footer.astro": "./components/Footer.astro",
20
+ "./components/SiteTitle.astro": "./components/SiteTitle.astro",
20
21
  "./assets/f5-logo.svg": "./assets/f5-logo.svg"
21
22
  },
22
23
  "files": [