@tenphi/docs 0.18.1 → 0.19.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.
@@ -1,4 +1,4 @@
1
- import { i as normalizeDocsConfig, m as validateTableOfContents, p as validateSeo, u as pagePublishing } from "./config-CD77r6rT.js";
1
+ import { i as normalizeDocsConfig, m as validateTableOfContents, p as validateSeo, u as pagePublishing } from "./config-DSkGRYWp.js";
2
2
  import { cloneAst, parseMarkdown, removeRenderedTitle, serializeMarkdown, stripLeadingBadgeBlock } from "./markdown/index.js";
3
3
  import { lstat, mkdir, mkdtemp, readFile, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
4
4
  import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
@@ -1600,7 +1600,7 @@ function createDocsLoader(config, options = {}) {
1600
1600
  context.store.clear();
1601
1601
  for (const entry of graph.entries) {
1602
1602
  const loaderEntry = toLoaderEntry(entry);
1603
- const filePath = starlightFilePath(entry, context.config);
1603
+ const filePath = contentFilePath(entry, context.config);
1604
1604
  const data = context.parseData ? await context.parseData({
1605
1605
  id: loaderEntry.id,
1606
1606
  data: loaderEntry.data,
@@ -1622,7 +1622,7 @@ function createDocsLoader(config, options = {}) {
1622
1622
  }
1623
1623
  };
1624
1624
  }
1625
- function starlightFilePath(entry, config) {
1625
+ function contentFilePath(entry, config) {
1626
1626
  const id = entry.route === "/" ? "index" : entry.route.slice(1);
1627
1627
  const extension = extname(entry.sourcePath).toLowerCase() === ".mdx" ? ".mdx" : ".md";
1628
1628
  if (!config) return `src/content/docs/${id}${extension}`;
@@ -1653,4 +1653,4 @@ function toLoaderEntry(entry) {
1653
1653
  //#endregion
1654
1654
  export { reconcileDocsLock as _, validateDocs as a, writeDocsLock as b, normalizeRoute as c, defaultLock as d, discoverPackage as f, readDocsLock as g, packageNameFromSpecifier as h, formatDiagnostics as i, routeForPath as l, materializePackage as m, DocsValidationError as n, DOCS_FRONTMATTER_KEYS as o, lockForSource as p, assertValidDocs as r, createDocsGraph as s, createDocsLoader as t, assertSafePackagePath as u, resolvePackageLock as v, validateLock as y };
1655
1655
 
1656
- //# sourceMappingURL=content-DQluL5Ox.js.map
1656
+ //# sourceMappingURL=content-EHZ-S-TN.js.map