David Hellyer Sign out Sign in

Link audit

Find orphaned pages and broken internal links.

Link audit

The lazysite-audit.pl script scans the docroot for orphaned pages (pages that exist but are not linked from anywhere) and broken internal links (links pointing to pages that do not exist).

Invocation

perl plugins/audit.pl [options] [docroot]

The docroot defaults to the current directory.

Options

What it scans

What it skips

Report format

ORPHANED PAGES (N)
  /path          source-file.md

BROKEN LINKS (N)
  source-file.md  -> /target

SUMMARY
  Source pages:    N
  Orphaned:        N
  Broken links:    N

Default exclusions

404 and index (root page) are always excluded from the orphan report.

Notes