Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scripts/check-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ const fs = require('fs')
const path = require('path')

const ROOT = path.resolve(__dirname, '..')
// Defaults to docs/; an explicit path argument is used by the test fixtures.
const SCAN_DIR = process.argv[2] ? path.resolve(process.argv[2]) : path.join(ROOT, 'docs')
// Always scans docs/ -- no CLI argument is accepted, so nothing external
// can steer this at an arbitrary filesystem path (e.g. '../../../etc/passwd').
const SCAN_DIR = path.join(ROOT, 'docs')

// Directories that hold build output or dependencies, not authored content.
const SKIP_DIRS = new Set(['node_modules', 'dist', '.vuepress-cache', '.temp', '.git'])
Expand Down