@rspress/plugin-llms 2.0.0-rc.1 → 2.0.0-rc.3
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/rslib-runtime.js +18 -0
- package/dist/runtime/index.js +3 -2
- package/package.json +7 -7
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __webpack_modules__ = {};
|
|
2
|
+
var __webpack_module_cache__ = {};
|
|
3
|
+
function __webpack_require__(moduleId) {
|
|
4
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
5
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
6
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
7
|
+
exports: {}
|
|
8
|
+
};
|
|
9
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
10
|
+
return module.exports;
|
|
11
|
+
}
|
|
12
|
+
__webpack_require__.m = __webpack_modules__;
|
|
13
|
+
(()=>{
|
|
14
|
+
__webpack_require__.add = function(modules) {
|
|
15
|
+
Object.assign(__webpack_require__.m, modules);
|
|
16
|
+
};
|
|
17
|
+
})();
|
|
18
|
+
export { __webpack_require__ };
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "./index.css"
|
|
2
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import "../rslib-runtime.js";
|
|
3
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { normalizeHref, useLang, usePageData, withBase } from "@rspress/core/runtime";
|
|
5
6
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -220,7 +221,7 @@ const LlmsViewOptions = ({ options = [
|
|
|
220
221
|
const lang = useLang();
|
|
221
222
|
const isEn = !lang || 'en' === lang;
|
|
222
223
|
const items = useMemo(()=>{
|
|
223
|
-
const fullMarkdownUrl =
|
|
224
|
+
const fullMarkdownUrl = "u" > typeof window ? new URL(pathname, window.location.origin).toString() : 'loading';
|
|
224
225
|
const q = `Read ${fullMarkdownUrl}, I want to ask questions about it.`;
|
|
225
226
|
return {
|
|
226
227
|
markdownLink: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-llms",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.3",
|
|
4
4
|
"description": "A plugin for rspress to generate llms.txt, llms-full.txt, md files to let llm understand your website.",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"unist-util-visit": "^5.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@microsoft/api-extractor": "^7.55.
|
|
39
|
-
"@rsbuild/core": "~1.6.
|
|
38
|
+
"@microsoft/api-extractor": "^7.55.2",
|
|
39
|
+
"@rsbuild/core": "~1.6.15",
|
|
40
40
|
"@rsbuild/plugin-react": "~1.4.2",
|
|
41
41
|
"@rsbuild/plugin-sass": "~1.4.0",
|
|
42
|
-
"@rslib/core": "0.
|
|
42
|
+
"@rslib/core": "0.18.5",
|
|
43
43
|
"@types/hast": "^3.0.4",
|
|
44
44
|
"@types/node": "^22.8.1",
|
|
45
|
-
"@types/react": "^19.2.
|
|
46
|
-
"react": "^19.2.
|
|
45
|
+
"@types/react": "^19.2.7",
|
|
46
|
+
"react": "^19.2.3",
|
|
47
47
|
"rsbuild-plugin-publint": "^0.3.3",
|
|
48
48
|
"typescript": "^5.8.2",
|
|
49
49
|
"vfile": "^6.0.3",
|
|
50
50
|
"@rspress/config": "1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@rspress/core": "^2.0.0-rc.
|
|
53
|
+
"@rspress/core": "^2.0.0-rc.3"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=18.0.0"
|