@seqera/docusaurus-preset-seqera 1.0.24 → 1.0.25-next.83
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/index.js +1 -5
- package/lib/options.d.ts +0 -3
- package/package.json +3 -3
- package/src/index.ts +0 -8
- package/src/options.ts +0 -3
package/lib/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function preset(context, opts = {}) {
|
|
|
21
21
|
const { themeConfig } = siteConfig;
|
|
22
22
|
const { algolia } = themeConfig;
|
|
23
23
|
const isProd = process.env.NODE_ENV === 'production';
|
|
24
|
-
const { debug, docs, blog, pages, sitemap, svgr, theme, googleAnalytics, gtag, googleTagManager, openapi,
|
|
24
|
+
const { debug, docs, blog, pages, sitemap, svgr, theme, googleAnalytics, gtag, googleTagManager, openapi, ...rest } = opts;
|
|
25
25
|
const themes = [];
|
|
26
26
|
// Add OpenAPI theme FIRST if enabled
|
|
27
27
|
if (openapi !== false) {
|
|
@@ -74,9 +74,6 @@ function preset(context, opts = {}) {
|
|
|
74
74
|
if (svgr !== false) {
|
|
75
75
|
plugins.push(makePluginConfig('@docusaurus/plugin-svgr', svgr));
|
|
76
76
|
}
|
|
77
|
-
if (llmsTxt !== false) {
|
|
78
|
-
plugins.push(makePluginConfig('@signalwire/docusaurus-plugin-llms-txt', llmsTxt));
|
|
79
|
-
}
|
|
80
77
|
if (Object.keys(rest).length > 0) {
|
|
81
78
|
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
79
|
}
|
|
@@ -474,6 +471,5 @@ async function getSeqeraPresetOptions(overrides = {}) {
|
|
|
474
471
|
...(typeof overrides.sitemap === 'object' ? overrides.sitemap : {}),
|
|
475
472
|
},
|
|
476
473
|
openapi: overrides.openapi === false ? false : overrides.openapi || undefined,
|
|
477
|
-
llmsTxt: overrides.llmsTxt === false ? false : overrides.llmsTxt || undefined,
|
|
478
474
|
};
|
|
479
475
|
}
|
package/lib/options.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type { Options as SVGRPluginOptions } from '@docusaurus/plugin-svgr';
|
|
|
6
6
|
import type { Options as GAPluginOptions } from '@docusaurus/plugin-google-analytics';
|
|
7
7
|
import type { Options as GtagPluginOptions } from '@docusaurus/plugin-google-gtag';
|
|
8
8
|
import type { Options as GTMPluginOptions } from '@docusaurus/plugin-google-tag-manager';
|
|
9
|
-
import type { PluginOptions as LlmsTxtPluginOptions } from '@signalwire/docusaurus-plugin-llms-txt';
|
|
10
9
|
import type { Options as ThemeOptions } from '@seqera/docusaurus-theme-seqera';
|
|
11
10
|
import type { UserThemeConfig as BaseThemeConfig } from "@seqera/docusaurus-theme-seqera";
|
|
12
11
|
export type OpenAPIPluginOptions = {
|
|
@@ -59,8 +58,6 @@ export type Options = {
|
|
|
59
58
|
googleTagManager?: GTMPluginOptions;
|
|
60
59
|
/** Options for `docusaurus-plugin-openapi-docs`. Use `false` to disable. */
|
|
61
60
|
openapi?: false | OpenAPIPluginOptions;
|
|
62
|
-
/** Options for `@signalwire/docusaurus-plugin-llms-txt`. Use `false` to disable. */
|
|
63
|
-
llmsTxt?: false | LlmsTxtPluginOptions;
|
|
64
61
|
};
|
|
65
62
|
export type ThemeConfig = BaseThemeConfig & {
|
|
66
63
|
typesense?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seqera/docusaurus-preset-seqera",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25-next.83",
|
|
4
4
|
"description": "Docusaurus preset for Seqera docs",
|
|
5
5
|
"author": "Seqera docs team <education@seqera.io>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@docusaurus/theme-common": "3.9.2",
|
|
31
31
|
"@docusaurus/theme-search-algolia": "3.9.2",
|
|
32
32
|
"@docusaurus/types": "3.9.2",
|
|
33
|
-
"@seqera/docusaurus-theme-seqera": "1.0.
|
|
34
|
-
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.2",
|
|
33
|
+
"@seqera/docusaurus-theme-seqera": "1.0.25",
|
|
35
34
|
"@tailwindcss/oxide": "^4.1.17",
|
|
35
|
+
"docusaurus-plugin-llms": "^0.3.0",
|
|
36
36
|
"docusaurus-plugin-openapi-docs": "^4.5.1",
|
|
37
37
|
"docusaurus-remark-plugin-tab-blocks": "^3.1.0",
|
|
38
38
|
"docusaurus-theme-openapi-docs": "^4.5.1",
|
package/src/index.ts
CHANGED
|
@@ -42,7 +42,6 @@ export default function preset(
|
|
|
42
42
|
gtag,
|
|
43
43
|
googleTagManager,
|
|
44
44
|
openapi,
|
|
45
|
-
llmsTxt,
|
|
46
45
|
...rest
|
|
47
46
|
} = opts;
|
|
48
47
|
|
|
@@ -113,11 +112,6 @@ export default function preset(
|
|
|
113
112
|
if (svgr !== false) {
|
|
114
113
|
plugins.push(makePluginConfig('@docusaurus/plugin-svgr', svgr));
|
|
115
114
|
}
|
|
116
|
-
if (llmsTxt !== false) {
|
|
117
|
-
plugins.push(
|
|
118
|
-
makePluginConfig('@signalwire/docusaurus-plugin-llms-txt', llmsTxt),
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
115
|
if (Object.keys(rest).length > 0) {
|
|
122
116
|
throw new Error(
|
|
123
117
|
`Unrecognized keys ${Object.keys(rest).join(
|
|
@@ -556,8 +550,6 @@ export async function getSeqeraPresetOptions(
|
|
|
556
550
|
},
|
|
557
551
|
openapi:
|
|
558
552
|
overrides.openapi === false ? false : overrides.openapi || undefined,
|
|
559
|
-
llmsTxt:
|
|
560
|
-
overrides.llmsTxt === false ? false : overrides.llmsTxt || undefined,
|
|
561
553
|
};
|
|
562
554
|
}
|
|
563
555
|
|
package/src/options.ts
CHANGED
|
@@ -8,7 +8,6 @@ import type {Options as SVGRPluginOptions} from '@docusaurus/plugin-svgr';
|
|
|
8
8
|
import type {Options as GAPluginOptions} from '@docusaurus/plugin-google-analytics';
|
|
9
9
|
import type {Options as GtagPluginOptions} from '@docusaurus/plugin-google-gtag';
|
|
10
10
|
import type {Options as GTMPluginOptions} from '@docusaurus/plugin-google-tag-manager';
|
|
11
|
-
import type {PluginOptions as LlmsTxtPluginOptions} from '@signalwire/docusaurus-plugin-llms-txt';
|
|
12
11
|
import type {Options as ThemeOptions} from '@seqera/docusaurus-theme-seqera';
|
|
13
12
|
// import type {ThemeConfig as BaseThemeConfig} from '@docusaurus/types';
|
|
14
13
|
import type {UserThemeConfig as ClassicThemeConfig} from '@docusaurus/theme-common';
|
|
@@ -67,8 +66,6 @@ export type Options = {
|
|
|
67
66
|
googleTagManager?: GTMPluginOptions;
|
|
68
67
|
/** Options for `docusaurus-plugin-openapi-docs`. Use `false` to disable. */
|
|
69
68
|
openapi?: false | OpenAPIPluginOptions;
|
|
70
|
-
/** Options for `@signalwire/docusaurus-plugin-llms-txt`. Use `false` to disable. */
|
|
71
|
-
llmsTxt?: false | LlmsTxtPluginOptions;
|
|
72
69
|
};
|
|
73
70
|
|
|
74
71
|
|