mirror of
https://github.com/primer/css.git
synced 2024-11-23 20:38:58 +03:00
chore: pull docs from modules/primer/**/*.md
This commit is contained in:
parent
96e5902af6
commit
f85f7c7abc
@ -23,14 +23,14 @@ module.exports = function sync(options = {}) {
|
||||
let files
|
||||
|
||||
const metal = Metalsmith(process.cwd())
|
||||
.source('../modules')
|
||||
.source('../modules/primer')
|
||||
.destination('pages/css')
|
||||
.clean(false)
|
||||
.frontmatter(false)
|
||||
// ignore anything containing "node_modules" in its path
|
||||
.ignore(path => path.includes('node_modules'))
|
||||
// only match files that look like docs
|
||||
.use(filter(['*/README.md', '*/docs/*.md', '*/package.json']))
|
||||
.use(filter(['**/*.md']))
|
||||
.use(extractPackages())
|
||||
// convert <!-- %docs -->...<!-- %enddocs --> blocks into frontmatter
|
||||
.use(parseDocComments({log}))
|
||||
|
Loading…
Reference in New Issue
Block a user