@mintlify/previewing 4.0.1664 → 4.0.1666
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/dist/__tests__/export-archive.test.d.ts +1 -0
- package/dist/__tests__/export-archive.test.js +53 -0
- package/dist/__tests__/listener-batching.test.js +11 -13
- package/dist/__tests__/listener-graphql-packages.test.js +9 -11
- package/dist/__tests__/listener-package-manifest.test.js +9 -11
- package/dist/__tests__/page-metadata-cache.test.js +17 -1
- package/dist/__tests__/watcher-native.test.d.ts +1 -0
- package/dist/__tests__/watcher-native.test.js +61 -0
- package/dist/__tests__/watcher.test.d.ts +1 -0
- package/dist/__tests__/watcher.test.js +237 -0
- package/dist/local-preview/export-archive.d.ts +9 -0
- package/dist/local-preview/export-archive.js +51 -0
- package/dist/local-preview/export.js +12 -5
- package/dist/local-preview/listener/index.js +7 -10
- package/dist/local-preview/listener/page-metadata-cache.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/watcher.d.ts +14 -0
- package/dist/watcher.js +267 -0
- package/package.json +10 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAllPathsInDocsNav, getDecoratedNavPageAndSlug, optionallyRemoveLeadingSlash, optionallyRemoveTrailingSlash, } from '@mintlify/common';
|
|
1
|
+
import { getAllPathsInDocsNav, getDecoratedNavPageAndSlug, optionallyRemoveLeadingSlash, optionallyRemoveTrailingSlash, toPosixPath, } from '@mintlify/common';
|
|
2
2
|
import { generateDecoratedDocsNavigationFromPages } from '@mintlify/prebuild';
|
|
3
3
|
import { divisions } from '@mintlify/validation';
|
|
4
4
|
import fse from 'fs-extra';
|
|
@@ -64,7 +64,7 @@ export const removePageMetadataCacheEntry = (slug) => {
|
|
|
64
64
|
generatedPageMetadataSlugs.delete(slug);
|
|
65
65
|
};
|
|
66
66
|
export const removePageMetadataCacheEntryForFile = (filename) => {
|
|
67
|
-
removePageMetadataCacheEntry(filename.replace(/\.mdx?$/, ''));
|
|
67
|
+
removePageMetadataCacheEntry(toPosixPath(filename).replace(/\.mdx?$/, ''));
|
|
68
68
|
};
|
|
69
69
|
// Returns true when the page references an OpenAPI/AsyncAPI spec via frontmatter.
|
|
70
70
|
// Those titles are derived from the schema, which the cache (built without spec
|