@rspress/plugin-llms 2.0.0-beta.13 → 2.0.0-beta.15

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- import external_node_path_default from "node:path";
2
+ import node_path from "node:path";
3
3
  import { getSidebarDataGroup, normalizeHref, removeBase } from "@rspress/shared";
4
4
  import { logger } from "@rspress/shared/logger";
5
5
  import { remarkPluginNormalizeLink } from "@rspress/core";
6
- import external_remark_mdx_default from "remark-mdx";
7
- import external_remark_parse_default from "remark-parse";
8
- import external_remark_stringify_default from "remark-stringify";
6
+ import remark_mdx from "remark-mdx";
7
+ import remark_parse from "remark-parse";
8
+ import remark_stringify from "remark-stringify";
9
9
  import { unified } from "unified";
10
10
  import { SKIP, visit } from "unist-util-visit";
11
11
  var router_Action;
@@ -201,11 +201,11 @@ const mdxToMdPlugin = ()=>(tree)=>{
201
201
  });
202
202
  };
203
203
  function mdxToMd(content, filepath, docDirectory, routeService) {
204
- return unified().use(external_remark_parse_default).use(external_remark_mdx_default).use(mdxToMdPlugin).use(remarkPluginNormalizeLink, {
204
+ return unified().use(remark_parse).use(remark_mdx).use(mdxToMdPlugin).use(remarkPluginNormalizeLink, {
205
205
  cleanUrls: '.md',
206
206
  root: docDirectory,
207
207
  routeService
208
- }).use(external_remark_stringify_default).process({
208
+ }).use(remark_stringify).process({
209
209
  value: content,
210
210
  path: filepath
211
211
  });
@@ -259,7 +259,7 @@ const rsbuildPluginLlms = ({ disableSSGRef, pageDataList, routes, titleRef, desc
259
259
  ].map(async (pageData)=>{
260
260
  const content = pageData._flattenContent ?? pageData.content;
261
261
  const filepath = pageData._filepath;
262
- const isMD = 'mdx' !== external_node_path_default.extname(filepath).slice(1);
262
+ const isMD = 'mdx' !== node_path.extname(filepath).slice(1);
263
263
  let mdContent;
264
264
  if (isMD) mdContent = content;
265
265
  else try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-llms",
3
- "version": "2.0.0-beta.13",
3
+ "version": "2.0.0-beta.15",
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": {
@@ -24,21 +24,21 @@
24
24
  "unified": "^11.0.5",
25
25
  "unist-util-visit": "^5.0.0",
26
26
  "unist-util-visit-children": "^3.0.0",
27
- "@rspress/shared": "2.0.0-beta.13"
27
+ "@rspress/shared": "2.0.0-beta.15"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@microsoft/api-extractor": "^7.52.8",
31
31
  "@rsbuild/core": "~1.3.22",
32
- "@rslib/core": "0.9.2",
32
+ "@rslib/core": "0.10.0",
33
33
  "@types/hast": "^3.0.4",
34
34
  "@types/node": "^22.8.1",
35
35
  "typescript": "^5.8.2",
36
36
  "vfile": "^6.0.3",
37
37
  "@rspress/config": "1.0.0",
38
- "@rspress/runtime": "2.0.0-beta.13"
38
+ "@rspress/runtime": "2.0.0-beta.15"
39
39
  },
40
40
  "peerDependencies": {
41
- "@rspress/core": "^2.0.0-beta.13"
41
+ "@rspress/core": "^2.0.0-beta.15"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=18.0.0"