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 1 commit into from Apr 9, 2016


Copy link

@ddfreyne 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:

    exclude_origins: ["^/api/"]
@ddfreyne ddfreyne added this to the 4.2 milestone Apr 9, 2016
@ddfreyne ddfreyne force-pushed the ilinks-exclude-source branch from 6191268 to c96d085 Apr 9, 2016
@ddfreyne ddfreyne merged commit d841775 into master Apr 9, 2016
1 check passed
@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
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant