File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @rocket/cli ' : patch
3+ ---
4+
5+ fix: windows path issue avoid filtering of index section of collections
Original file line number Diff line number Diff line change 7373 "fs-extra" : " ^9.0.1" ,
7474 "micromatch" : " ^4.0.2" ,
7575 "plugins-manager" : " ^0.2.1" ,
76+ "slash" : " ^3.0.0" ,
7677 "utf8" : " ^3.0.0"
7778 },
7879 "types" : " dist-types/index.d.ts"
Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22const fs = require ( 'fs' ) ;
3+ const slash = require ( 'slash' ) ;
34const { readdirSync } = require ( 'fs' ) ;
45
56function getDirectories ( source ) {
@@ -23,7 +24,7 @@ const rocketCollections = {
2324 let docs = [
2425 ...collection . getFilteredByGlob ( `${ _inputDirCwdRelative } /${ section } /**/*.md` ) ,
2526 ] ;
26- docs = docs . filter ( page => page . inputPath !== `./${ indexSection } ` ) ;
27+ docs = docs . filter ( page => page . inputPath !== `./${ slash ( indexSection ) } ` ) ;
2728
2829 return docs ;
2930 } ) ;
You can’t perform that action at this time.
0 commit comments