@eventcatalog/core 2.65.3 → 2.65.4
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/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-HQJBSQAH.js → chunk-G7PV2VC7.js} +1 -1
- package/dist/{chunk-N6BXLBZA.js → chunk-NNRVFYON.js} +1 -1
- package/dist/{chunk-27BQ5SXA.js → chunk-OUQRGXEK.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/index.astro +1 -1
- package/eventcatalog/src/enterprise/custom-documentation/utils/custom-docs.ts +6 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-NNRVFYON.js";
|
|
4
|
+
import "../chunk-G7PV2VC7.js";
|
|
5
|
+
import "../chunk-OUQRGXEK.js";
|
|
6
6
|
import "../chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-NNRVFYON.js";
|
|
10
|
+
import "./chunk-G7PV2VC7.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrations
|
|
13
13
|
} from "./chunk-BH3JMNAV.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import "./chunk-55D645EH.js";
|
|
20
20
|
import {
|
|
21
21
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OUQRGXEK.js";
|
|
23
23
|
import {
|
|
24
24
|
getProjectOutDir,
|
|
25
25
|
isAuthEnabled,
|
|
@@ -63,7 +63,7 @@ sidebar.forEach((section: SidebarSection) => {
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
const { prev, next } = await getAdjacentPages(currentSlug
|
|
66
|
+
const { prev, next } = await getAdjacentPages(currentSlug);
|
|
67
67
|
|
|
68
68
|
const ownersRaw = doc?.owners || [];
|
|
69
69
|
const owners = await Promise.all<ReturnType<typeof getOwner>>(ownersRaw.map(getOwner));
|
|
@@ -71,13 +71,17 @@ const processAutoGeneratedDirectory = async (
|
|
|
71
71
|
undefined, // No badge for subdirectories
|
|
72
72
|
collapsed // Inherit collapsed state
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
// Only add the directory if it contains valid items (mdx/md files)
|
|
75
|
+
if (subdirResult.items && subdirResult.items.length > 0) {
|
|
76
|
+
allItems.push(subdirResult);
|
|
77
|
+
}
|
|
75
78
|
} else {
|
|
76
79
|
// Process file
|
|
77
80
|
const content = fs.readFileSync(fullPath, 'utf8');
|
|
78
81
|
const { data } = matter(content);
|
|
79
82
|
|
|
80
|
-
|
|
83
|
+
// Normalize path separators to forward slashes for cross-platform compatibility (Windows uses backslashes)
|
|
84
|
+
const astroId = data.slug || path.join(DOCS_DIR, directory, item).replace('.mdx', '').replace(/\\/g, '/');
|
|
81
85
|
const entry = await getEntry('customPages', astroId.toLowerCase());
|
|
82
86
|
|
|
83
87
|
if (entry) {
|