@callstack/rspress-preset 0.5.0 → 0.5.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/dist/index.cjs +2 -5
- package/dist/index.js +2 -5
- package/package.json +5 -6
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,6 @@ const external_node_url_namespaceObject = require("node:url");
|
|
|
46
46
|
var external_node_url_default = /*#__PURE__*/ __webpack_require__.n(external_node_url_namespaceObject);
|
|
47
47
|
const plugin_namespaceObject = require("@callstack/rspress-theme/plugin");
|
|
48
48
|
const core_namespaceObject = require("@rspress/core");
|
|
49
|
-
const plugin_llms_namespaceObject = require("@rspress/plugin-llms");
|
|
50
49
|
const plugin_sitemap_namespaceObject = require("@rspress/plugin-sitemap");
|
|
51
50
|
const external_rsbuild_plugin_open_graph_namespaceObject = require("rsbuild-plugin-open-graph");
|
|
52
51
|
const external_node_util_namespaceObject = require("node:util");
|
|
@@ -133,7 +132,7 @@ function addUTMParameters(url, location, siteTitle) {
|
|
|
133
132
|
const urlObj = new URL(url);
|
|
134
133
|
urlObj.searchParams.set('utm_campaign', 'open_source');
|
|
135
134
|
urlObj.searchParams.set('utm_source', siteTitle);
|
|
136
|
-
urlObj.searchParams.set('utm_medium', '
|
|
135
|
+
urlObj.searchParams.set('utm_medium', 'referral');
|
|
137
136
|
urlObj.searchParams.set('utm_content', location);
|
|
138
137
|
return urlObj.toString();
|
|
139
138
|
}
|
|
@@ -165,6 +164,7 @@ const createPreset = (config)=>{
|
|
|
165
164
|
title: docs.title,
|
|
166
165
|
description: docs.description,
|
|
167
166
|
icon: docs.icon,
|
|
167
|
+
llms: true,
|
|
168
168
|
globalStyles: getGlobalStyles(context),
|
|
169
169
|
globalUIComponents: enableVercel ? [
|
|
170
170
|
[
|
|
@@ -221,9 +221,6 @@ const createPreset = (config)=>{
|
|
|
221
221
|
(0, plugin_namespaceObject.pluginCallstackTheme)(theme),
|
|
222
222
|
(0, plugin_sitemap_namespaceObject.pluginSitemap)({
|
|
223
223
|
siteUrl: docs.rootUrl
|
|
224
|
-
}),
|
|
225
|
-
(0, plugin_llms_namespaceObject.pluginLlms)({
|
|
226
|
-
exclude: ({ page })=>page.routePath.includes('404')
|
|
227
224
|
})
|
|
228
225
|
]
|
|
229
226
|
});
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import node_path from "node:path";
|
|
|
3
3
|
import node_url from "node:url";
|
|
4
4
|
import { pluginCallstackTheme } from "@callstack/rspress-theme/plugin";
|
|
5
5
|
import { defineConfig, mergeDocConfig } from "@rspress/core";
|
|
6
|
-
import { pluginLlms } from "@rspress/plugin-llms";
|
|
7
6
|
import { pluginSitemap } from "@rspress/plugin-sitemap";
|
|
8
7
|
import { pluginOpenGraph } from "rsbuild-plugin-open-graph";
|
|
9
8
|
import { styleText } from "node:util";
|
|
@@ -90,7 +89,7 @@ function addUTMParameters(url, location, siteTitle) {
|
|
|
90
89
|
const urlObj = new URL(url);
|
|
91
90
|
urlObj.searchParams.set('utm_campaign', 'open_source');
|
|
92
91
|
urlObj.searchParams.set('utm_source', siteTitle);
|
|
93
|
-
urlObj.searchParams.set('utm_medium', '
|
|
92
|
+
urlObj.searchParams.set('utm_medium', 'referral');
|
|
94
93
|
urlObj.searchParams.set('utm_content', location);
|
|
95
94
|
return urlObj.toString();
|
|
96
95
|
}
|
|
@@ -122,6 +121,7 @@ const createPreset = (config)=>{
|
|
|
122
121
|
title: docs.title,
|
|
123
122
|
description: docs.description,
|
|
124
123
|
icon: docs.icon,
|
|
124
|
+
llms: true,
|
|
125
125
|
globalStyles: getGlobalStyles(context),
|
|
126
126
|
globalUIComponents: enableVercel ? [
|
|
127
127
|
[
|
|
@@ -178,9 +178,6 @@ const createPreset = (config)=>{
|
|
|
178
178
|
pluginCallstackTheme(theme),
|
|
179
179
|
pluginSitemap({
|
|
180
180
|
siteUrl: docs.rootUrl
|
|
181
|
-
}),
|
|
182
|
-
pluginLlms({
|
|
183
|
-
exclude: ({ page })=>page.routePath.includes('404')
|
|
184
181
|
})
|
|
185
182
|
]
|
|
186
183
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@callstack/rspress-preset",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Callstack preset for Rspress docs",
|
|
5
5
|
"author": "Jakub Romańczyk <jakub.romanczyk@callstack.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,20 +39,19 @@
|
|
|
39
39
|
"typescript"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@rspress/plugin-
|
|
43
|
-
"@rspress/plugin-sitemap": "2.0.0-rc.3",
|
|
42
|
+
"@rspress/plugin-sitemap": "2.0.0-rc.7",
|
|
44
43
|
"@vercel/analytics": "^1.5.0",
|
|
45
44
|
"rsbuild-plugin-open-graph": "^1.0.2",
|
|
46
45
|
"zod": "^3.23.8",
|
|
47
|
-
"@callstack/rspress-theme": "0.5.
|
|
46
|
+
"@callstack/rspress-theme": "0.5.2"
|
|
48
47
|
},
|
|
49
48
|
"peerDependencies": {
|
|
50
|
-
"@rspress/core": "2.0.0-rc.
|
|
49
|
+
"@rspress/core": "2.0.0-rc.7"
|
|
51
50
|
},
|
|
52
51
|
"devDependencies": {
|
|
53
52
|
"@microsoft/api-extractor": "^7.52.8",
|
|
54
53
|
"@rslib/core": "^0.10.5",
|
|
55
|
-
"@rspress/core": "2.0.0-rc.
|
|
54
|
+
"@rspress/core": "2.0.0-rc.7",
|
|
56
55
|
"@types/node": "^22",
|
|
57
56
|
"typescript": "^5.9.3"
|
|
58
57
|
},
|