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