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 1fcc2fe commit cddfb7eCopy full SHA for cddfb7e
1 file changed
scripts/build-docs.js
@@ -88,15 +88,16 @@ function prepareTree() {
88
}
89
90
91
+const IGNORE_FILES = [
92
+ join(PROJECTS, 'postcss/docs/README-cn.md'),
93
+ join(PROJECTS, 'postcss/docs/source-maps.md')
94
+]
95
+
96
async function readDocs() {
- let ignore = [
- '../postcss/docs/README-cn.md',
- '../postcss/docs/source-maps.md'
- ]
- let files = await globby('../postcss/docs/**/*.md')
97
+ let files = await globby(join(PROJECTS, 'postcss/docs/**/*.md'))
98
let docs = await Promise.all(
99
files
- .filter(file => !ignore.includes(file))
100
+ .filter(file => !IGNORE_FILES.includes(file))
101
.map(async file => {
102
let md = await readFile(join(ROOT, file))
103
let tree = await unified()().use(remarkParse).parse(md)
0 commit comments