Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 3, 2024
1 parent 1fcc2fe commit cddfb7e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/build-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,16 @@ function prepareTree() {
}
}

const IGNORE_FILES = [
join(PROJECTS, 'postcss/docs/README-cn.md'),
join(PROJECTS, 'postcss/docs/source-maps.md')
]

async function readDocs() {
let ignore = [
'../postcss/docs/README-cn.md',
'../postcss/docs/source-maps.md'
]
let files = await globby('../postcss/docs/**/*.md')
let files = await globby(join(PROJECTS, 'postcss/docs/**/*.md'))
let docs = await Promise.all(
files
.filter(file => !ignore.includes(file))
.filter(file => !IGNORE_FILES.includes(file))
.map(async file => {
let md = await readFile(join(ROOT, file))
let tree = await unified()().use(remarkParse).parse(md)
Expand Down

0 comments on commit cddfb7e

Please sign in to comment.