chore(doclint): do not attempt to lint non-documentation markdown
This commit is contained in:
parent
cc5e8a9bd4
commit
a467d35a5f
@ -36,7 +36,8 @@ async function run() {
|
|||||||
|
|
||||||
// Documentation checks.
|
// 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');
|
const toc = require('./toc');
|
||||||
messages.push(...await toc(mdSources));
|
messages.push(...await toc(mdSources));
|
||||||
|
Loading…
Reference in New Issue
Block a user