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

Projects
None yet
1 participant
@ddfreyne
Member

ddfreyne 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/"]

@ddfreyne ddfreyne added the feature label Apr 9, 2016

@ddfreyne ddfreyne added this to the 4.2 milestone Apr 9, 2016

@ddfreyne ddfreyne merged commit d841775 into master Apr 9, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@ddfreyne ddfreyne deleted the ilinks-exclude-source branch Apr 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment