@barodoc/plugin-llms-txt 9.0.0 → 10.0.0

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 +4 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -51,9 +51,10 @@ function walkMdFiles(dir, base = dir) {
51
51
  function scanDocs(docsDir, locales, defaultLocale, navigation) {
52
52
  const orderedSlugs = [];
53
53
  for (const group of navigation) {
54
- for (const slug of group.pages ?? []) {
55
- if (!orderedSlugs.includes(slug)) {
56
- orderedSlugs.push(slug);
54
+ for (const entry of group.pages ?? []) {
55
+ const slugs = typeof entry === "string" ? [entry] : entry.pages;
56
+ for (const slug of slugs) {
57
+ if (!orderedSlugs.includes(slug)) orderedSlugs.push(slug);
57
58
  }
58
59
  }
59
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barodoc/plugin-llms-txt",
3
- "version": "9.0.0",
3
+ "version": "10.0.0",
4
4
  "description": "Generate llms.txt and llms-full.txt for AI consumption",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,13 +15,13 @@
15
15
  "dist"
16
16
  ],
17
17
  "peerDependencies": {
18
- "@barodoc/core": "9.0.0"
18
+ "@barodoc/core": "10.0.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^22.0.0",
22
22
  "tsup": "^8.3.0",
23
23
  "typescript": "^5.7.0",
24
- "@barodoc/core": "9.0.0"
24
+ "@barodoc/core": "10.0.0"
25
25
  },
26
26
  "license": "MIT",
27
27
  "scripts": {