@xyd-js/content 0.0.0-build-1760f84-20251129221538 → 0.0.0-build-aebf977-20251203155725

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/CHANGELOG.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # @xyd-js/content
2
2
 
3
- ## 0.0.0-build-1760f84-20251129221538
3
+ ## 0.0.0-build-aebf977-20251203155725
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - update all packages
8
8
  - Updated dependencies
9
- - @xyd-js/components@0.0.0-build-1760f84-20251129221538
10
- - @xyd-js/context@0.0.0-build-1760f84-20251129221538
11
- - @xyd-js/core@0.0.0-build-1760f84-20251129221538
12
- - @xyd-js/gql@0.0.0-build-1760f84-20251129221538
13
- - @xyd-js/openapi@0.0.0-build-1760f84-20251129221538
14
- - @xyd-js/sources@0.0.0-build-1760f84-20251129221538
9
+ - @xyd-js/components@0.0.0-build-aebf977-20251203155725
10
+ - @xyd-js/context@0.0.0-build-aebf977-20251203155725
11
+ - @xyd-js/core@0.0.0-build-aebf977-20251203155725
12
+ - @xyd-js/gql@0.0.0-build-aebf977-20251203155725
13
+ - @xyd-js/openapi@0.0.0-build-aebf977-20251203155725
14
+ - @xyd-js/sources@0.0.0-build-aebf977-20251203155725
package/dist/md.js CHANGED
@@ -19474,7 +19474,7 @@ function disallowed(code2) {
19474
19474
  // packages/md/plugins/output-variables/lib/util.ts
19475
19475
  var import_stringify_entities = __toESM(require_stringify_entities(), 1);
19476
19476
 
19477
- // ../../node_modules/.pnpm/unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.js
19477
+ // ../../node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js
19478
19478
  var convert = (
19479
19479
  // Note: overloads in JSDoc can’t yet use different `@template`s.
19480
19480
  /**
@@ -19498,7 +19498,14 @@ var convert = (
19498
19498
  return castFactory(test);
19499
19499
  }
19500
19500
  if (typeof test === "object") {
19501
- return Array.isArray(test) ? anyFactory(test) : propsFactory(test);
19501
+ return Array.isArray(test) ? anyFactory(test) : (
19502
+ // Cast because `ReadonlyArray` goes into the above but `isArray`
19503
+ // narrows to `Array`.
19504
+ propertiesFactory(
19505
+ /** @type {Props} */
19506
+ test
19507
+ )
19508
+ );
19502
19509
  }
19503
19510
  if (typeof test === "string") {
19504
19511
  return typeFactory(test);
@@ -19521,7 +19528,7 @@ function anyFactory(tests) {
19521
19528
  return false;
19522
19529
  }
19523
19530
  }
19524
- function propsFactory(check) {
19531
+ function propertiesFactory(check) {
19525
19532
  const checkAsRecord = (
19526
19533
  /** @type {Record<string, unknown>} */
19527
19534
  check
@@ -19566,12 +19573,12 @@ function looksLikeANode(value) {
19566
19573
  return value !== null && typeof value === "object" && "type" in value;
19567
19574
  }
19568
19575
 
19569
- // ../../node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/color.node.js
19576
+ // ../../node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.node.js
19570
19577
  function color2(d) {
19571
19578
  return "\x1B[33m" + d + "\x1B[39m";
19572
19579
  }
19573
19580
 
19574
- // ../../node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.js
19581
+ // ../../node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js
19575
19582
  var empty3 = [];
19576
19583
  var CONTINUE2 = true;
19577
19584
  var EXIT2 = false;
@@ -20085,17 +20092,62 @@ async function getMermaidPlugin() {
20085
20092
  }
20086
20093
  return rehypeMermaid;
20087
20094
  }
20088
- async function thirdPartyRehypePlugins(settings) {
20095
+ var rehypeGraphviz;
20096
+ var graphviz;
20097
+ async function getGraphvizPlugin() {
20098
+ if (!rehypeGraphviz) {
20099
+ const graphizMod = (await import("@hpcc-js/wasm")).Graphviz;
20100
+ graphviz = await graphizMod.load();
20101
+ rehypeGraphviz = (await import("rehype-graphviz")).default;
20102
+ }
20103
+ return [
20104
+ rehypeGraphviz,
20105
+ {
20106
+ graphviz
20107
+ }
20108
+ ];
20109
+ }
20110
+ function isDiagramTypeEnabled(settings, diagramType) {
20089
20111
  var _a;
20112
+ const diagrams = (_a = settings == null ? void 0 : settings.integrations) == null ? void 0 : _a.diagrams;
20113
+ if (!diagrams) {
20114
+ return false;
20115
+ }
20116
+ if (diagrams === true) {
20117
+ return true;
20118
+ }
20119
+ if (Array.isArray(diagrams) && diagrams.includes(diagramType)) {
20120
+ return true;
20121
+ }
20122
+ if (typeof diagrams === "object" && !Array.isArray(diagrams)) {
20123
+ if (diagramType in diagrams) {
20124
+ return true;
20125
+ }
20126
+ }
20127
+ return false;
20128
+ }
20129
+ function getDiagramOptions(settings, diagramType) {
20130
+ var _a;
20131
+ const diagrams = (_a = settings == null ? void 0 : settings.integrations) == null ? void 0 : _a.diagrams;
20132
+ if (!diagrams || typeof diagrams !== "object" || Array.isArray(diagrams)) {
20133
+ return {};
20134
+ }
20135
+ return diagrams[diagramType] && typeof diagrams[diagramType] === "object" ? diagrams[diagramType] : {};
20136
+ }
20137
+ async function thirdPartyRehypePlugins(settings) {
20090
20138
  const plugins = [
20091
20139
  [rehypeRaw, {
20092
20140
  passThrough: ["mdxjsEsm", "mdxJsxFlowElement", "mdxJsxTextElement"]
20093
20141
  }],
20094
20142
  rehypeKatex
20095
20143
  ];
20096
- if ((_a = settings == null ? void 0 : settings.integrations) == null ? void 0 : _a.diagrams) {
20097
- const options = typeof settings.integrations.diagrams === "object" ? settings.integrations.diagrams : {};
20098
- plugins.push([await getMermaidPlugin(), options]);
20144
+ if (isDiagramTypeEnabled(settings, "mermaid")) {
20145
+ const mermaidOptions = getDiagramOptions(settings, "mermaid");
20146
+ plugins.push([await getMermaidPlugin(), mermaidOptions]);
20147
+ }
20148
+ if (isDiagramTypeEnabled(settings, "graphviz")) {
20149
+ const graphvizPlugin = await getGraphvizPlugin();
20150
+ plugins.push(graphvizPlugin);
20099
20151
  }
20100
20152
  return plugins;
20101
20153
  }
@@ -20118,7 +20170,7 @@ import { readFileSync as readFileSync2, statSync } from "fs";
20118
20170
  import path4 from "path";
20119
20171
  import { unified as unified4 } from "unified";
20120
20172
 
20121
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
20173
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
20122
20174
  function blockquote(state, node) {
20123
20175
  const result = {
20124
20176
  type: "element",
@@ -20130,19 +20182,20 @@ function blockquote(state, node) {
20130
20182
  return state.applyData(node, result);
20131
20183
  }
20132
20184
 
20133
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/break.js
20185
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.js
20134
20186
  function hardBreak(state, node) {
20135
20187
  const result = { type: "element", tagName: "br", properties: {}, children: [] };
20136
20188
  state.patch(node, result);
20137
20189
  return [state.applyData(node, result), { type: "text", value: "\n" }];
20138
20190
  }
20139
20191
 
20140
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.js
20192
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js
20141
20193
  function code(state, node) {
20142
20194
  const value = node.value ? node.value + "\n" : "";
20143
20195
  const properties = {};
20144
- if (node.lang) {
20145
- properties.className = ["language-" + node.lang];
20196
+ const language = node.lang ? node.lang.split(/\s+/) : [];
20197
+ if (language.length > 0) {
20198
+ properties.className = ["language-" + language[0]];
20146
20199
  }
20147
20200
  let result = {
20148
20201
  type: "element",
@@ -20160,7 +20213,7 @@ function code(state, node) {
20160
20213
  return result;
20161
20214
  }
20162
20215
 
20163
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/delete.js
20216
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.js
20164
20217
  function strikethrough(state, node) {
20165
20218
  const result = {
20166
20219
  type: "element",
@@ -20172,7 +20225,7 @@ function strikethrough(state, node) {
20172
20225
  return state.applyData(node, result);
20173
20226
  }
20174
20227
 
20175
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
20228
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
20176
20229
  function emphasis(state, node) {
20177
20230
  const result = {
20178
20231
  type: "element",
@@ -20184,7 +20237,7 @@ function emphasis(state, node) {
20184
20237
  return state.applyData(node, result);
20185
20238
  }
20186
20239
 
20187
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
20240
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
20188
20241
  function footnoteReference(state, node) {
20189
20242
  const clobberPrefix = typeof state.options.clobberPrefix === "string" ? state.options.clobberPrefix : "user-content-";
20190
20243
  const id = String(node.identifier).toUpperCase();
@@ -20223,7 +20276,7 @@ function footnoteReference(state, node) {
20223
20276
  return state.applyData(node, sup);
20224
20277
  }
20225
20278
 
20226
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/heading.js
20279
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js
20227
20280
  function heading(state, node) {
20228
20281
  const result = {
20229
20282
  type: "element",
@@ -20235,7 +20288,7 @@ function heading(state, node) {
20235
20288
  return state.applyData(node, result);
20236
20289
  }
20237
20290
 
20238
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/html.js
20291
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js
20239
20292
  function html(state, node) {
20240
20293
  if (state.options.allowDangerousHtml) {
20241
20294
  const result = { type: "raw", value: node.value };
@@ -20245,7 +20298,7 @@ function html(state, node) {
20245
20298
  return void 0;
20246
20299
  }
20247
20300
 
20248
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.js
20301
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js
20249
20302
  function revert(state, node) {
20250
20303
  const subtype = node.referenceType;
20251
20304
  let suffix = "]";
@@ -20273,7 +20326,7 @@ function revert(state, node) {
20273
20326
  return contents;
20274
20327
  }
20275
20328
 
20276
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
20329
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
20277
20330
  function imageReference(state, node) {
20278
20331
  const id = String(node.identifier).toUpperCase();
20279
20332
  const definition2 = state.definitionById.get(id);
@@ -20289,7 +20342,7 @@ function imageReference(state, node) {
20289
20342
  return state.applyData(node, result);
20290
20343
  }
20291
20344
 
20292
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image.js
20345
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js
20293
20346
  function image(state, node) {
20294
20347
  const properties = { src: normalizeUri(node.url) };
20295
20348
  if (node.alt !== null && node.alt !== void 0) {
@@ -20303,7 +20356,7 @@ function image(state, node) {
20303
20356
  return state.applyData(node, result);
20304
20357
  }
20305
20358
 
20306
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
20359
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
20307
20360
  function inlineCode(state, node) {
20308
20361
  const text5 = { type: "text", value: node.value.replace(/\r?\n|\r/g, " ") };
20309
20362
  state.patch(node, text5);
@@ -20317,7 +20370,7 @@ function inlineCode(state, node) {
20317
20370
  return state.applyData(node, result);
20318
20371
  }
20319
20372
 
20320
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
20373
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
20321
20374
  function linkReference(state, node) {
20322
20375
  const id = String(node.identifier).toUpperCase();
20323
20376
  const definition2 = state.definitionById.get(id);
@@ -20338,7 +20391,7 @@ function linkReference(state, node) {
20338
20391
  return state.applyData(node, result);
20339
20392
  }
20340
20393
 
20341
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link.js
20394
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js
20342
20395
  function link(state, node) {
20343
20396
  const properties = { href: normalizeUri(node.url) };
20344
20397
  if (node.title !== null && node.title !== void 0) {
@@ -20354,7 +20407,7 @@ function link(state, node) {
20354
20407
  return state.applyData(node, result);
20355
20408
  }
20356
20409
 
20357
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
20410
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
20358
20411
  function listItem(state, node, parent) {
20359
20412
  const results = state.all(node);
20360
20413
  const loose = parent ? listLoose(parent) : listItemLoose(node);
@@ -20417,7 +20470,7 @@ function listItemLoose(node) {
20417
20470
  return spread === null || spread === void 0 ? node.children.length > 1 : spread;
20418
20471
  }
20419
20472
 
20420
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.js
20473
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js
20421
20474
  function list2(state, node) {
20422
20475
  const properties = {};
20423
20476
  const results = state.all(node);
@@ -20442,7 +20495,7 @@ function list2(state, node) {
20442
20495
  return state.applyData(node, result);
20443
20496
  }
20444
20497
 
20445
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
20498
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
20446
20499
  function paragraph(state, node) {
20447
20500
  const result = {
20448
20501
  type: "element",
@@ -20454,14 +20507,14 @@ function paragraph(state, node) {
20454
20507
  return state.applyData(node, result);
20455
20508
  }
20456
20509
 
20457
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.js
20510
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.js
20458
20511
  function root(state, node) {
20459
20512
  const result = { type: "root", children: state.wrap(state.all(node)) };
20460
20513
  state.patch(node, result);
20461
20514
  return state.applyData(node, result);
20462
20515
  }
20463
20516
 
20464
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.js
20517
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js
20465
20518
  function strong(state, node) {
20466
20519
  const result = {
20467
20520
  type: "element",
@@ -20497,7 +20550,7 @@ function position2(node) {
20497
20550
  }
20498
20551
  }
20499
20552
 
20500
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.js
20553
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js
20501
20554
  function table(state, node) {
20502
20555
  const rows = state.all(node);
20503
20556
  const firstRow = rows.shift();
@@ -20534,7 +20587,7 @@ function table(state, node) {
20534
20587
  return state.applyData(node, result);
20535
20588
  }
20536
20589
 
20537
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
20590
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
20538
20591
  function tableRow(state, node, parent) {
20539
20592
  const siblings2 = parent ? parent.children : void 0;
20540
20593
  const rowIndex = siblings2 ? siblings2.indexOf(node) : 1;
@@ -20568,7 +20621,7 @@ function tableRow(state, node, parent) {
20568
20621
  return state.applyData(node, result);
20569
20622
  }
20570
20623
 
20571
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
20624
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
20572
20625
  function tableCell(state, node) {
20573
20626
  const result = {
20574
20627
  type: "element",
@@ -20621,14 +20674,14 @@ function trimLine(value, start, end) {
20621
20674
  return endIndex > startIndex ? value.slice(startIndex, endIndex) : "";
20622
20675
  }
20623
20676
 
20624
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.js
20677
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js
20625
20678
  function text3(state, node) {
20626
20679
  const result = { type: "text", value: trimLines(String(node.value)) };
20627
20680
  state.patch(node, result);
20628
20681
  return state.applyData(node, result);
20629
20682
  }
20630
20683
 
20631
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
20684
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
20632
20685
  function thematicBreak2(state, node) {
20633
20686
  const result = {
20634
20687
  type: "element",
@@ -20640,7 +20693,7 @@ function thematicBreak2(state, node) {
20640
20693
  return state.applyData(node, result);
20641
20694
  }
20642
20695
 
20643
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/index.js
20696
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js
20644
20697
  var handlers = {
20645
20698
  blockquote,
20646
20699
  break: hardBreak,
@@ -20892,7 +20945,7 @@ var esm_default = typeof structuredClone === "function" ? (
20892
20945
  (any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any)
20893
20946
  ) : (any, options) => deserialize(serialize(any, options));
20894
20947
 
20895
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/footer.js
20948
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js
20896
20949
  function defaultFootnoteBackContent(_, rereferenceIndex) {
20897
20950
  const result = [{ type: "text", value: "\u21A9" }];
20898
20951
  if (rereferenceIndex > 1) {
@@ -21002,7 +21055,7 @@ function footer(state) {
21002
21055
  };
21003
21056
  }
21004
21057
 
21005
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.js
21058
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js
21006
21059
  import { visit as visit16 } from "unist-util-visit";
21007
21060
  var own5 = {}.hasOwnProperty;
21008
21061
  var emptyOptions3 = {};
@@ -21145,7 +21198,7 @@ function trimMarkdownSpaceStart(value) {
21145
21198
  return value.slice(index2);
21146
21199
  }
21147
21200
 
21148
- // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.js
21201
+ // ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.js
21149
21202
  function toHast(tree, options) {
21150
21203
  const state = createState(tree, options);
21151
21204
  const node = state.one(tree, void 0);
@@ -23266,10 +23319,14 @@ import { visit as visit17 } from "unist-util-visit";
23266
23319
  import GitHubSlugger from "github-slugger";
23267
23320
  async function mapSettingsToDocSections(xydSettings) {
23268
23321
  var _a;
23269
- const pages = flatPages(((_a = xydSettings.navigation) == null ? void 0 : _a.sidebar) || [], {}).map((page) => ({
23270
- name: page,
23271
- path: path4.join(process.cwd(), page)
23272
- }));
23322
+ const pages = flatPages(((_a = xydSettings.navigation) == null ? void 0 : _a.sidebar) || [], {}).map((page) => {
23323
+ var _a2;
23324
+ let baseName = ((_a2 = xydSettings.advanced) == null ? void 0 : _a2.basename) || "";
23325
+ return {
23326
+ name: path4.join(baseName, page),
23327
+ path: path4.join(process.cwd(), page)
23328
+ };
23329
+ });
23273
23330
  return await processSections(pages, xydSettings);
23274
23331
  }
23275
23332
  async function mapContentToDocSections(xydSettings, route, content3) {
@@ -23304,8 +23361,9 @@ async function mapContentToDocSections(xydSettings, route, content3) {
23304
23361
  if (rootSection.pageId) {
23305
23362
  console.error("Multiple h1 found");
23306
23363
  }
23364
+ const pageUrl = route.startsWith("/") ? route : `/${route}`;
23307
23365
  rootSection.pageId = slug;
23308
- rootSection.pageUrl = `/${route}`;
23366
+ rootSection.pageUrl = pageUrl;
23309
23367
  rootSection.pageTitle = heading2;
23310
23368
  rootSection.headingLevel = 1;
23311
23369
  rootSection.headingTitle = heading2;