@f5-sales-demo/docs-theme 4.4.1 → 4.4.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.
- package/components/Footer.astro +2 -2
- package/components/MarkdownContent.astro +2 -4
- package/config.ts +6 -4
- package/package.json +1 -1
package/components/Footer.astro
CHANGED
|
@@ -5,7 +5,7 @@ import Icon from './Icon.astro';
|
|
|
5
5
|
|
|
6
6
|
<Default {...Astro.props}><slot /></Default>
|
|
7
7
|
|
|
8
|
-
<div class="social-links">
|
|
8
|
+
{process.env.DOCS_PROFILE !== 'canonical-provider' && <div class="social-links">
|
|
9
9
|
<a href="https://www.facebook.com/f5incorporated" target="_blank" rel="noopener noreferrer" aria-label="Facebook">
|
|
10
10
|
<Icon name="hashicorp-flight:facebook-color" size="1.5rem" />
|
|
11
11
|
</a>
|
|
@@ -21,7 +21,7 @@ import Icon from './Icon.astro';
|
|
|
21
21
|
<a href="https://www.youtube.com/user/f5networksinc" target="_blank" rel="noopener noreferrer" aria-label="YouTube">
|
|
22
22
|
<Icon name="hashicorp-flight:youtube-color" size="1.5rem" />
|
|
23
23
|
</a>
|
|
24
|
-
</div>
|
|
24
|
+
</div>}
|
|
25
25
|
|
|
26
26
|
<style>
|
|
27
27
|
.social-links {
|
|
@@ -7,7 +7,5 @@ import ImageZoom from 'starlight-image-zoom/components/ImageZoom.astro';
|
|
|
7
7
|
import StarlightVideosMarkdownContent from 'starlight-videos/components/MarkdownContent.astro';
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
<ImageZoom />
|
|
11
|
-
<StarlightVideosMarkdownContent>
|
|
12
|
-
{canonical ? <ProviderReference><slot /></ProviderReference> : <slot />}
|
|
13
|
-
</StarlightVideosMarkdownContent>
|
|
10
|
+
{!canonical && <ImageZoom />}
|
|
11
|
+
{canonical ? <div class="sl-markdown-content"><ProviderReference><slot /></ProviderReference></div> : <StarlightVideosMarkdownContent><slot /></StarlightVideosMarkdownContent>}
|
package/config.ts
CHANGED
|
@@ -712,7 +712,7 @@ export function createF5xcDocsConfig(options: F5xcDocsConfigOptions = {}) {
|
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
const megaMenuItems = options.megaMenuItems || (canonicalProvider ? providerMegaMenu(base) : defaultMegaMenuItems);
|
|
715
|
-
const head = options.head || defaultHead;
|
|
715
|
+
const head = options.head || (canonicalProvider ? [] : defaultHead);
|
|
716
716
|
const logo = options.logo || { src: '@f5-sales-demo/docs-theme/assets/f5-distributed-cloud.svg' };
|
|
717
717
|
const additionalRemarkPlugins = options.additionalRemarkPlugins || [];
|
|
718
718
|
const additionalIntegrations = options.additionalIntegrations || [];
|
|
@@ -774,8 +774,7 @@ export function createF5xcDocsConfig(options: F5xcDocsConfigOptions = {}) {
|
|
|
774
774
|
progressRingColor: '#e4002b',
|
|
775
775
|
showOnHomepage: false,
|
|
776
776
|
}),
|
|
777
|
-
starlightHeadingBadges(),
|
|
778
|
-
starlightPageActions(),
|
|
777
|
+
...(!canonicalProvider ? [starlightHeadingBadges(), starlightPageActions()] : []),
|
|
779
778
|
starlightIconsPlugin(),
|
|
780
779
|
...(openAPISpecs.length > 0
|
|
781
780
|
? [
|
|
@@ -870,7 +869,10 @@ export function createF5xcDocsConfig(options: F5xcDocsConfigOptions = {}) {
|
|
|
870
869
|
site,
|
|
871
870
|
base,
|
|
872
871
|
...(canonicalProvider
|
|
873
|
-
? {
|
|
872
|
+
? {
|
|
873
|
+
experimental: { collectionStorage: { type: 'chunked' as const, chunkSize: 1024 * 1024 } },
|
|
874
|
+
vite: { build: { assetsInlineLimit: 0 } },
|
|
875
|
+
}
|
|
874
876
|
: {}),
|
|
875
877
|
...(resolvedLocales ? { redirects: { '/': `${normalizedBase}/${resolvedDefaultLocale}/` } } : {}),
|
|
876
878
|
markdown: {
|