@f5-sales-demo/docs-theme 3.9.38 → 3.9.40
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/config.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { unified } from '@astrojs/markdown-remark';
|
|
3
4
|
import react from '@astrojs/react';
|
|
4
5
|
import starlight from '@astrojs/starlight';
|
|
5
6
|
import type { StarlightPlugin } from '@astrojs/starlight/types';
|
|
@@ -766,7 +767,9 @@ export function createF5xcDocsConfig(options: F5xcDocsConfigOptions = {}) {
|
|
|
766
767
|
base,
|
|
767
768
|
...(resolvedLocales ? { redirects: { '/': `${normalizedBase}/${resolvedDefaultLocale}/` } } : {}),
|
|
768
769
|
markdown: {
|
|
769
|
-
|
|
770
|
+
processor: unified({
|
|
771
|
+
remarkPlugins: [remarkMermaid, [codeImport, { allowImportingFromOutside: true }], ...additionalRemarkPlugins],
|
|
772
|
+
}),
|
|
770
773
|
},
|
|
771
774
|
integrations: [
|
|
772
775
|
starlight({
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@f5-sales-demo/docs-theme",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.40",
|
|
4
4
|
"description": "F5 Distributed Cloud branded Starlight documentation theme",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22.12.0"
|
|
8
|
+
},
|
|
6
9
|
"bin": {
|
|
7
10
|
"docs-translate": "./bin/translate.mjs"
|
|
8
11
|
},
|
|
@@ -66,18 +69,32 @@
|
|
|
66
69
|
"access": "public"
|
|
67
70
|
},
|
|
68
71
|
"devDependencies": {
|
|
72
|
+
"@astrojs/markdown-remark": "^7.2.2",
|
|
73
|
+
"@astrojs/starlight": "^0.41.6",
|
|
74
|
+
"@f5-sales-demo/icons-f5-brand": "^0.2.0",
|
|
75
|
+
"@f5-sales-demo/icons-f5xc": "^0.3.2",
|
|
76
|
+
"@f5-sales-demo/icons-hashicorp-flight": "^0.3.0",
|
|
77
|
+
"@iconify-json/carbon": "^1.2.25",
|
|
78
|
+
"@iconify-json/lucide": "^1.2.121",
|
|
79
|
+
"@iconify-json/mdi": "^1.2.3",
|
|
80
|
+
"@iconify-json/ph": "^1.2.2",
|
|
81
|
+
"@iconify-json/tabler": "^1.2.38",
|
|
69
82
|
"@playwright/test": "^1.50.0",
|
|
83
|
+
"astro": "^7.1.6",
|
|
70
84
|
"vitest": "^4.1.9"
|
|
71
85
|
},
|
|
72
86
|
"scripts": {
|
|
87
|
+
"build": "node scripts/run-astro-with-content.mjs build",
|
|
88
|
+
"dev": "node scripts/run-astro-with-content.mjs dev",
|
|
89
|
+
"preview": "astro preview",
|
|
73
90
|
"test": "vitest run",
|
|
74
91
|
"test:watch": "vitest",
|
|
75
92
|
"test:visual": "playwright test",
|
|
76
93
|
"test:visual:update": "playwright test --update-snapshots"
|
|
77
94
|
},
|
|
78
95
|
"peerDependencies": {
|
|
79
|
-
"@astrojs/markdown-remark": "
|
|
80
|
-
"@astrojs/starlight": "
|
|
96
|
+
"@astrojs/markdown-remark": "^7.2.2",
|
|
97
|
+
"@astrojs/starlight": "^0.41.6",
|
|
81
98
|
"@f5-sales-demo/icons-f5-brand": "*",
|
|
82
99
|
"@f5-sales-demo/icons-f5xc": "*",
|
|
83
100
|
"@f5-sales-demo/icons-hashicorp-flight": "*",
|
|
@@ -86,7 +103,7 @@
|
|
|
86
103
|
"@iconify-json/mdi": "*",
|
|
87
104
|
"@iconify-json/ph": "*",
|
|
88
105
|
"@iconify-json/tabler": "*",
|
|
89
|
-
"astro": "
|
|
106
|
+
"astro": "^7.1.6"
|
|
90
107
|
},
|
|
91
108
|
"peerDependenciesMeta": {
|
|
92
109
|
"@iconify-json/lucide": {
|
|
@@ -116,9 +133,9 @@
|
|
|
116
133
|
},
|
|
117
134
|
"dependencies": {
|
|
118
135
|
"@anthropic-ai/sdk": "^0.115.0",
|
|
119
|
-
"@astrojs/react": "^6.0.
|
|
136
|
+
"@astrojs/react": "^6.0.2",
|
|
120
137
|
"@f5-sales-demo/i18n-core": "^1.0.0",
|
|
121
|
-
"@f5-sales-demo/starlight-llms-txt": "1.4.
|
|
138
|
+
"@f5-sales-demo/starlight-llms-txt": "1.4.1",
|
|
122
139
|
"@f5-sales-demo/starlight-mega-menu": "^2.0.0",
|
|
123
140
|
"gray-matter": "^4.0.3",
|
|
124
141
|
"remark-code-import": "^1.2.0",
|
|
@@ -130,5 +147,14 @@
|
|
|
130
147
|
"starlight-scroll-to-top": "^1.0.1",
|
|
131
148
|
"starlight-videos": "^0.5.0",
|
|
132
149
|
"unist-util-visit": "^5.0.0"
|
|
150
|
+
},
|
|
151
|
+
"overrides": {
|
|
152
|
+
"form-data": "4.0.6",
|
|
153
|
+
"glob": "^13.0.6",
|
|
154
|
+
"sharp": "^0.35.3"
|
|
155
|
+
},
|
|
156
|
+
"allowScripts": {
|
|
157
|
+
"esbuild@0.28.1": true,
|
|
158
|
+
"fsevents@2.3.2 || 2.3.3": true
|
|
133
159
|
}
|
|
134
160
|
}
|
|
@@ -59,8 +59,8 @@ describe('localizeEcosystemHref', () => {
|
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
it('supports custom ecosystem host', () => {
|
|
62
|
-
const result = localizeEcosystemHref('https://
|
|
63
|
-
expect(result).toBe('https://
|
|
62
|
+
const result = localizeEcosystemHref('https://docs.example.com/waf/', 'fr', 'docs.example.com');
|
|
63
|
+
expect(result).toBe('https://docs.example.com/waf/fr/');
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
it('does not localize single-locale ecosystem sites (would 404)', () => {
|