@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.
- package/README.md +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/schema.json +5 -34
- package/dist/{config-CD77r6rT.js → config-DSkGRYWp.js} +16 -33
- package/dist/config-DSkGRYWp.js.map +1 -0
- package/dist/content/index.d.ts +1 -1
- package/dist/content/index.js +1 -1
- package/dist/{content-DQluL5Ox.js → content-EHZ-S-TN.js} +4 -4
- package/dist/{content-DQluL5Ox.js.map → content-EHZ-S-TN.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/markdown/index.d.ts +1 -1
- package/dist/{types-CoFJUBNa.d.ts → types-ByqyI18o.d.ts} +11 -15
- package/dist/{types-CoFJUBNa.d.ts.map → types-ByqyI18o.d.ts.map} +1 -1
- package/package.json +1 -1
- package/dist/config-CD77r6rT.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as normalizeDocsConfig, m as validateTableOfContents, p as validateSeo, u as pagePublishing } from "./config-
|
|
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 =
|
|
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
|
|
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-
|
|
1656
|
+
//# sourceMappingURL=content-EHZ-S-TN.js.map
|