We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f92ba6 commit 314de1cCopy full SHA for 314de1c
src/DocsParser.ts
@@ -58,7 +58,12 @@ export class DocsParser {
58
isClass: boolean;
59
}[]
60
> {
61
- const relativeDocsPath = path.relative(this.baseElectronDir, filePath).split('.')[0];
+ // Ensure POSIX-style path separators regardless of OS
62
+ const relativeDocsPath = path
63
+ .relative(this.baseElectronDir, filePath)
64
+ .split(path.sep)
65
+ .join(path.posix.sep)
66
+ .split('.')[0];
67
const isStructure = relativeDocsPath.includes('structures');
68
const headings = headingsAndContent(tokens);
69
expect(headings).to.not.have.lengthOf(
0 commit comments