chore(doclint): do not attempt to lint non-documentation markdown

This commit is contained in:
Andrey Lushnikov 2017-11-07 03:33:25 -08:00
parent cc5e8a9bd4
commit a467d35a5f

View File

@ -36,7 +36,8 @@ async function run() {
// Documentation checks.
{
const mdSources = await sourceFactory.readdir(path.join(PROJECT_DIR, 'docs'), '.md');
const apiSource = await sourceFactory.readFile(path.join(PROJECT_DIR, 'docs', 'api.md'));
const mdSources = [apiSource];
const toc = require('./toc');
messages.push(...await toc(mdSources));