Closed SilasBerger closed 8 months ago
Likely root cause: applyMarkers
does not know that the target directory has been renamed to 01-Komponentengalerie
by the previous mapping.
// sync-tree-processing.ts@53-55
const canonicalPathSegments = _splitPathSegments(markedNode.treePath)
.map(segment => canonicalNameFrom(segment));
const destNode = destTree.ensureNode(canonicalPathSegments);
markedNode.treePath
will receive /Components-Gallery/index.[cc].md
and thus ensure a dest node /Components-Gallery/index.md
, rather than 01-Komponentengalerie/index.md
.
Works:
Does not work properly; uses both
index.mdx
andindex.[cc].mdx
and creates directories01-Komponentengalerie
andComponents-Gallery
: