File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,16 @@ function prepareTree() {
8888 }
8989}
9090
91+ const IGNORE_FILES = [
92+ join ( PROJECTS , 'postcss/docs/README-cn.md' ) ,
93+ join ( PROJECTS , 'postcss/docs/source-maps.md' )
94+ ]
95+
9196async function readDocs ( ) {
92- let ignore = [
93- '../postcss/docs/README-cn.md' ,
94- '../postcss/docs/source-maps.md'
95- ]
96- let files = await globby ( '../postcss/docs/**/*.md' )
97+ let files = await globby ( join ( PROJECTS , 'postcss/docs/**/*.md' ) )
9798 let docs = await Promise . all (
9899 files
99- . filter ( file => ! ignore . includes ( file ) )
100+ . filter ( file => ! IGNORE_FILES . includes ( file ) )
100101 . map ( async file => {
101102 let md = await readFile ( join ( ROOT , file ) )
102103 let tree = await unified ( ) ( ) . use ( remarkParse ) . parse ( md )
You can’t perform that action at this time.
0 commit comments