Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exclude_origins option to internal links checker #847

Merged
merged 1 commit into from Apr 9, 2016

Conversation

denisdefreyne
Copy link
Member

@denisdefreyne denisdefreyne commented Apr 9, 2016

The internal links checker has an exclude configuration option, which matches hrefs. This is often not enough, as sometimes it is useful to ignore all links in a file. This PR adds a configuration option exclude_origins, which is used for exactly that purpose.

For example, the following excludes all files under /api from the internal links checker, perhaps because it’s auto-generated and is known to be broken:

checks:
  internal_links:
    exclude_origins: ["^/api/"]

@denisdefreyne denisdefreyne added this to the 4.2 milestone Apr 9, 2016
@denisdefreyne denisdefreyne merged commit d841775 into master Apr 9, 2016
@denisdefreyne denisdefreyne deleted the ilinks-exclude-source branch April 9, 2016 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant