@seqera/docusaurus-preset-seqera 1.0.31-next.102 → 1.0.32-next.104
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/lib/fonts.css +164 -0
- package/lib/index.js +35 -2
- package/package.json +1 -1
- package/src/fonts.css +164 -0
- package/src/index.ts +39 -2
package/lib/fonts.css
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* ─── Degular ─────────────────────────────────────────── */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Degular';
|
|
4
|
+
src: url('/fonts/Degular-Thin.woff2') format('woff2');
|
|
5
|
+
font-weight: 100;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-display: swap;
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Degular';
|
|
11
|
+
src: url('/fonts/Degular-ThinItalic.woff2') format('woff2');
|
|
12
|
+
font-weight: 100;
|
|
13
|
+
font-style: italic;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'Degular';
|
|
18
|
+
src: url('/fonts/Degular-Light.woff2') format('woff2');
|
|
19
|
+
font-weight: 300;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-display: swap;
|
|
22
|
+
}
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'Degular';
|
|
25
|
+
src: url('/fonts/Degular-LightItalic.woff2') format('woff2');
|
|
26
|
+
font-weight: 300;
|
|
27
|
+
font-style: italic;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
}
|
|
30
|
+
@font-face {
|
|
31
|
+
font-family: 'Degular';
|
|
32
|
+
src: url('/fonts/Degular-Regular.woff2') format('woff2');
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-display: swap;
|
|
36
|
+
}
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'Degular';
|
|
39
|
+
src: url('/fonts/Degular-Italic.woff2') format('woff2');
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
font-style: italic;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
}
|
|
44
|
+
@font-face {
|
|
45
|
+
font-family: 'Degular';
|
|
46
|
+
src: url('/fonts/Degular-Medium.woff2') format('woff2');
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
}
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: 'Degular';
|
|
53
|
+
src: url('/fonts/Degular-MediumItalic.woff2') format('woff2');
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
font-style: italic;
|
|
56
|
+
font-display: swap;
|
|
57
|
+
}
|
|
58
|
+
@font-face {
|
|
59
|
+
font-family: 'Degular';
|
|
60
|
+
src: url('/fonts/Degular-Semibold.woff2') format('woff2');
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-display: swap;
|
|
64
|
+
}
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: 'Degular';
|
|
67
|
+
src: url('/fonts/Degular-SemiboldItalic.woff2') format('woff2');
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
font-style: italic;
|
|
70
|
+
font-display: swap;
|
|
71
|
+
}
|
|
72
|
+
@font-face {
|
|
73
|
+
font-family: 'Degular';
|
|
74
|
+
src: url('/fonts/Degular-Bold.woff2') format('woff2');
|
|
75
|
+
font-weight: 700;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-display: swap;
|
|
78
|
+
}
|
|
79
|
+
@font-face {
|
|
80
|
+
font-family: 'Degular';
|
|
81
|
+
src: url('/fonts/Degular-BoldItalic.woff2') format('woff2');
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
font-style: italic;
|
|
84
|
+
font-display: swap;
|
|
85
|
+
}
|
|
86
|
+
@font-face {
|
|
87
|
+
font-family: 'Degular';
|
|
88
|
+
src: url('/fonts/Degular-Black.woff2') format('woff2');
|
|
89
|
+
font-weight: 900;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
font-display: swap;
|
|
92
|
+
}
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: 'Degular';
|
|
95
|
+
src: url('/fonts/Degular-BlackItalic.woff2') format('woff2');
|
|
96
|
+
font-weight: 900;
|
|
97
|
+
font-style: italic;
|
|
98
|
+
font-display: swap;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* ─── Inter ───────────────────────────────────────────── */
|
|
102
|
+
@font-face {
|
|
103
|
+
font-family: 'Inter';
|
|
104
|
+
src: url('/fonts/Inter-Thin.woff2') format('woff2');
|
|
105
|
+
font-weight: 100;
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-display: swap;
|
|
108
|
+
}
|
|
109
|
+
@font-face {
|
|
110
|
+
font-family: 'Inter';
|
|
111
|
+
src: url('/fonts/Inter-ExtraLight.woff2') format('woff2');
|
|
112
|
+
font-weight: 200;
|
|
113
|
+
font-style: normal;
|
|
114
|
+
font-display: swap;
|
|
115
|
+
}
|
|
116
|
+
@font-face {
|
|
117
|
+
font-family: 'Inter';
|
|
118
|
+
src: url('/fonts/Inter-Light.woff2') format('woff2');
|
|
119
|
+
font-weight: 300;
|
|
120
|
+
font-style: normal;
|
|
121
|
+
font-display: swap;
|
|
122
|
+
}
|
|
123
|
+
@font-face {
|
|
124
|
+
font-family: 'Inter';
|
|
125
|
+
src: url('/fonts/Inter-Regular.woff2') format('woff2');
|
|
126
|
+
font-weight: 400;
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-display: swap;
|
|
129
|
+
}
|
|
130
|
+
@font-face {
|
|
131
|
+
font-family: 'Inter';
|
|
132
|
+
src: url('/fonts/Inter-Medium.woff2') format('woff2');
|
|
133
|
+
font-weight: 500;
|
|
134
|
+
font-style: normal;
|
|
135
|
+
font-display: swap;
|
|
136
|
+
}
|
|
137
|
+
@font-face {
|
|
138
|
+
font-family: 'Inter';
|
|
139
|
+
src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
|
|
140
|
+
font-weight: 600;
|
|
141
|
+
font-style: normal;
|
|
142
|
+
font-display: swap;
|
|
143
|
+
}
|
|
144
|
+
@font-face {
|
|
145
|
+
font-family: 'Inter';
|
|
146
|
+
src: url('/fonts/Inter-Bold.woff2') format('woff2');
|
|
147
|
+
font-weight: 700;
|
|
148
|
+
font-style: normal;
|
|
149
|
+
font-display: swap;
|
|
150
|
+
}
|
|
151
|
+
@font-face {
|
|
152
|
+
font-family: 'Inter';
|
|
153
|
+
src: url('/fonts/Inter-ExtraBold.woff2') format('woff2');
|
|
154
|
+
font-weight: 800;
|
|
155
|
+
font-style: normal;
|
|
156
|
+
font-display: swap;
|
|
157
|
+
}
|
|
158
|
+
@font-face {
|
|
159
|
+
font-family: 'Inter';
|
|
160
|
+
src: url('/fonts/Inter-Black.woff2') format('woff2');
|
|
161
|
+
font-weight: 900;
|
|
162
|
+
font-style: normal;
|
|
163
|
+
font-display: swap;
|
|
164
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -80,6 +80,33 @@ function preset(context, opts = {}) {
|
|
|
80
80
|
if (Object.keys(rest).length > 0) {
|
|
81
81
|
throw new Error(`Unrecognized keys ${Object.keys(rest).join(', ')} found in preset-classic configuration. The allowed keys are debug, docs, blog, pages, sitemap, theme, googleAnalytics, gtag, and googleTagManager. Check the documentation: https://docusaurus.io/docs/using-plugins#docusauruspreset-classic for more information on how to configure individual plugins.`);
|
|
82
82
|
}
|
|
83
|
+
// Fix postman-code-generators Node.js path polyfill
|
|
84
|
+
plugins.push(function webpackPlugin() {
|
|
85
|
+
return {
|
|
86
|
+
name: 'seqera-webpack-config',
|
|
87
|
+
configureWebpack() {
|
|
88
|
+
return {
|
|
89
|
+
resolve: {
|
|
90
|
+
fallback: {
|
|
91
|
+
path: false,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
// Serve static font files from preset
|
|
99
|
+
plugins.push(function fontPlugin() {
|
|
100
|
+
return {
|
|
101
|
+
name: 'seqera-fonts-plugin',
|
|
102
|
+
getStaticDirectories() {
|
|
103
|
+
return [path_1.default.join(__dirname, 'static')];
|
|
104
|
+
},
|
|
105
|
+
getClientModules() {
|
|
106
|
+
return [require.resolve('./fonts.css')];
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
});
|
|
83
110
|
// Add home page plugin
|
|
84
111
|
plugins.push(homePagePlugin_1.default);
|
|
85
112
|
return { themes, plugins };
|
|
@@ -119,7 +146,12 @@ function getSeqeraThemeConfig(overrides = {}) {
|
|
|
119
146
|
placeholder: 'Search Seqera docs...',
|
|
120
147
|
// Search page product drop down search selectors
|
|
121
148
|
productRoutes: [
|
|
122
|
-
[
|
|
149
|
+
[
|
|
150
|
+
'/platform-enterprise/',
|
|
151
|
+
'Platform Enterprise',
|
|
152
|
+
'platform-enterprise',
|
|
153
|
+
null,
|
|
154
|
+
],
|
|
123
155
|
['/platform-cloud/', 'Platform Cloud', 'platform-cloud', null],
|
|
124
156
|
['/platform-cli/', 'Platform CLI', 'platform-cli', null],
|
|
125
157
|
['/platform-api/', 'Platform API', 'platform-api', null],
|
|
@@ -356,7 +388,8 @@ function getSeqeraThemeConfig(overrides = {}) {
|
|
|
356
388
|
...overrides.seqera?.docs,
|
|
357
389
|
};
|
|
358
390
|
// Merge versionDropdown configuration
|
|
359
|
-
if (overrides.seqera?.docs?.versionDropdown ||
|
|
391
|
+
if (overrides.seqera?.docs?.versionDropdown ||
|
|
392
|
+
baseConfig.seqera?.docs?.versionDropdown) {
|
|
360
393
|
mergedConfig.seqera.docs.versionDropdown = {
|
|
361
394
|
...baseConfig.seqera?.docs?.versionDropdown,
|
|
362
395
|
...overrides.seqera?.docs?.versionDropdown,
|
package/package.json
CHANGED
package/src/fonts.css
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* ─── Degular ─────────────────────────────────────────── */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Degular';
|
|
4
|
+
src: url('/fonts/Degular-Thin.woff2') format('woff2');
|
|
5
|
+
font-weight: 100;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-display: swap;
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Degular';
|
|
11
|
+
src: url('/fonts/Degular-ThinItalic.woff2') format('woff2');
|
|
12
|
+
font-weight: 100;
|
|
13
|
+
font-style: italic;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'Degular';
|
|
18
|
+
src: url('/fonts/Degular-Light.woff2') format('woff2');
|
|
19
|
+
font-weight: 300;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-display: swap;
|
|
22
|
+
}
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'Degular';
|
|
25
|
+
src: url('/fonts/Degular-LightItalic.woff2') format('woff2');
|
|
26
|
+
font-weight: 300;
|
|
27
|
+
font-style: italic;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
}
|
|
30
|
+
@font-face {
|
|
31
|
+
font-family: 'Degular';
|
|
32
|
+
src: url('/fonts/Degular-Regular.woff2') format('woff2');
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-display: swap;
|
|
36
|
+
}
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'Degular';
|
|
39
|
+
src: url('/fonts/Degular-Italic.woff2') format('woff2');
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
font-style: italic;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
}
|
|
44
|
+
@font-face {
|
|
45
|
+
font-family: 'Degular';
|
|
46
|
+
src: url('/fonts/Degular-Medium.woff2') format('woff2');
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
}
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: 'Degular';
|
|
53
|
+
src: url('/fonts/Degular-MediumItalic.woff2') format('woff2');
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
font-style: italic;
|
|
56
|
+
font-display: swap;
|
|
57
|
+
}
|
|
58
|
+
@font-face {
|
|
59
|
+
font-family: 'Degular';
|
|
60
|
+
src: url('/fonts/Degular-Semibold.woff2') format('woff2');
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-display: swap;
|
|
64
|
+
}
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: 'Degular';
|
|
67
|
+
src: url('/fonts/Degular-SemiboldItalic.woff2') format('woff2');
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
font-style: italic;
|
|
70
|
+
font-display: swap;
|
|
71
|
+
}
|
|
72
|
+
@font-face {
|
|
73
|
+
font-family: 'Degular';
|
|
74
|
+
src: url('/fonts/Degular-Bold.woff2') format('woff2');
|
|
75
|
+
font-weight: 700;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-display: swap;
|
|
78
|
+
}
|
|
79
|
+
@font-face {
|
|
80
|
+
font-family: 'Degular';
|
|
81
|
+
src: url('/fonts/Degular-BoldItalic.woff2') format('woff2');
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
font-style: italic;
|
|
84
|
+
font-display: swap;
|
|
85
|
+
}
|
|
86
|
+
@font-face {
|
|
87
|
+
font-family: 'Degular';
|
|
88
|
+
src: url('/fonts/Degular-Black.woff2') format('woff2');
|
|
89
|
+
font-weight: 900;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
font-display: swap;
|
|
92
|
+
}
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: 'Degular';
|
|
95
|
+
src: url('/fonts/Degular-BlackItalic.woff2') format('woff2');
|
|
96
|
+
font-weight: 900;
|
|
97
|
+
font-style: italic;
|
|
98
|
+
font-display: swap;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* ─── Inter ───────────────────────────────────────────── */
|
|
102
|
+
@font-face {
|
|
103
|
+
font-family: 'Inter';
|
|
104
|
+
src: url('/fonts/Inter-Thin.woff2') format('woff2');
|
|
105
|
+
font-weight: 100;
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-display: swap;
|
|
108
|
+
}
|
|
109
|
+
@font-face {
|
|
110
|
+
font-family: 'Inter';
|
|
111
|
+
src: url('/fonts/Inter-ExtraLight.woff2') format('woff2');
|
|
112
|
+
font-weight: 200;
|
|
113
|
+
font-style: normal;
|
|
114
|
+
font-display: swap;
|
|
115
|
+
}
|
|
116
|
+
@font-face {
|
|
117
|
+
font-family: 'Inter';
|
|
118
|
+
src: url('/fonts/Inter-Light.woff2') format('woff2');
|
|
119
|
+
font-weight: 300;
|
|
120
|
+
font-style: normal;
|
|
121
|
+
font-display: swap;
|
|
122
|
+
}
|
|
123
|
+
@font-face {
|
|
124
|
+
font-family: 'Inter';
|
|
125
|
+
src: url('/fonts/Inter-Regular.woff2') format('woff2');
|
|
126
|
+
font-weight: 400;
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-display: swap;
|
|
129
|
+
}
|
|
130
|
+
@font-face {
|
|
131
|
+
font-family: 'Inter';
|
|
132
|
+
src: url('/fonts/Inter-Medium.woff2') format('woff2');
|
|
133
|
+
font-weight: 500;
|
|
134
|
+
font-style: normal;
|
|
135
|
+
font-display: swap;
|
|
136
|
+
}
|
|
137
|
+
@font-face {
|
|
138
|
+
font-family: 'Inter';
|
|
139
|
+
src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
|
|
140
|
+
font-weight: 600;
|
|
141
|
+
font-style: normal;
|
|
142
|
+
font-display: swap;
|
|
143
|
+
}
|
|
144
|
+
@font-face {
|
|
145
|
+
font-family: 'Inter';
|
|
146
|
+
src: url('/fonts/Inter-Bold.woff2') format('woff2');
|
|
147
|
+
font-weight: 700;
|
|
148
|
+
font-style: normal;
|
|
149
|
+
font-display: swap;
|
|
150
|
+
}
|
|
151
|
+
@font-face {
|
|
152
|
+
font-family: 'Inter';
|
|
153
|
+
src: url('/fonts/Inter-ExtraBold.woff2') format('woff2');
|
|
154
|
+
font-weight: 800;
|
|
155
|
+
font-style: normal;
|
|
156
|
+
font-display: swap;
|
|
157
|
+
}
|
|
158
|
+
@font-face {
|
|
159
|
+
font-family: 'Inter';
|
|
160
|
+
src: url('/fonts/Inter-Black.woff2') format('woff2');
|
|
161
|
+
font-weight: 900;
|
|
162
|
+
font-style: normal;
|
|
163
|
+
font-display: swap;
|
|
164
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -123,6 +123,35 @@ export default function preset(
|
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
// Fix postman-code-generators Node.js path polyfill
|
|
127
|
+
plugins.push(function webpackPlugin() {
|
|
128
|
+
return {
|
|
129
|
+
name: 'seqera-webpack-config',
|
|
130
|
+
configureWebpack() {
|
|
131
|
+
return {
|
|
132
|
+
resolve: {
|
|
133
|
+
fallback: {
|
|
134
|
+
path: false,
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
// Serve static font files from preset
|
|
143
|
+
plugins.push(function fontPlugin() {
|
|
144
|
+
return {
|
|
145
|
+
name: 'seqera-fonts-plugin',
|
|
146
|
+
getStaticDirectories() {
|
|
147
|
+
return [path.join(__dirname, 'static')];
|
|
148
|
+
},
|
|
149
|
+
getClientModules() {
|
|
150
|
+
return [require.resolve('./fonts.css')];
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
|
|
126
155
|
// Add home page plugin
|
|
127
156
|
plugins.push(homePagePlugin);
|
|
128
157
|
|
|
@@ -171,7 +200,12 @@ export function getSeqeraThemeConfig(
|
|
|
171
200
|
|
|
172
201
|
// Search page product drop down search selectors
|
|
173
202
|
productRoutes: [
|
|
174
|
-
[
|
|
203
|
+
[
|
|
204
|
+
'/platform-enterprise/',
|
|
205
|
+
'Platform Enterprise',
|
|
206
|
+
'platform-enterprise',
|
|
207
|
+
null,
|
|
208
|
+
],
|
|
175
209
|
['/platform-cloud/', 'Platform Cloud', 'platform-cloud', null],
|
|
176
210
|
['/platform-cli/', 'Platform CLI', 'platform-cli', null],
|
|
177
211
|
['/platform-api/', 'Platform API', 'platform-api', null],
|
|
@@ -416,7 +450,10 @@ export function getSeqeraThemeConfig(
|
|
|
416
450
|
...overrides.seqera?.docs,
|
|
417
451
|
};
|
|
418
452
|
// Merge versionDropdown configuration
|
|
419
|
-
if (
|
|
453
|
+
if (
|
|
454
|
+
overrides.seqera?.docs?.versionDropdown ||
|
|
455
|
+
baseConfig.seqera?.docs?.versionDropdown
|
|
456
|
+
) {
|
|
420
457
|
mergedConfig.seqera.docs.versionDropdown = {
|
|
421
458
|
...baseConfig.seqera?.docs?.versionDropdown,
|
|
422
459
|
...overrides.seqera?.docs?.versionDropdown,
|