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

internal_links check for xhtml files #1328

lo48576 opened this issue Mar 4, 2018 · 1 comment

internal_links check for xhtml files #1328

lo48576 opened this issue Mar 4, 2018 · 1 comment


Copy link

@lo48576 lo48576 commented Mar 4, 2018

internal_links checker checks *.html files, but not *.xhtml files.

Steps to reproduce

  1. Prepare (generate) *.xhtml files with wrong site-local links.
  2. Run nanoc check ilinks

Expected behavior

nanoc check ilinks detects broken links in *.xhtml files.

Actual behavior

nanoc check ilinks doesn't detect broken links in *.xhtml files.


Maybe this line should be changed:

filenames = { |f| File.extname(f) == '.html' }

I'm not sure this should be configurable or can be hard-coded, but I think not only *.html but also *.xhtml and *.htm should be (can be) checked as HTML file.

Copy link

@ddfreyne ddfreyne commented Mar 4, 2018

Good catch! Here’s a fix: #1329

ddfreyne added a commit that referenced this issue Mar 4, 2018

Also consider .xhtml and .html in checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants