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

Checking anchors isn't working for me #493

Closed
plaindocs opened this issue Oct 9, 2018 · 2 comments · Fixed by #498
Closed

Checking anchors isn't working for me #493

plaindocs opened this issue Oct 9, 2018 · 2 comments · Fixed by #498

Comments

@plaindocs
Copy link
Contributor

Apologies for the quasi support nature of this issue.

I'm having trouble checking (internal) anchors in the Travis CI docs, even with check_external_hash: true.

Most of the internal links are relative, due to netlify preview urls, so not sure that the internal domain setting is doing anything.

A lot of them are case changes only (such as https://github.com/travis-ci/docs-travis-ci-com/pull/2050/files )

If you have any ideas on what I'm doing wrong that would be awesome.

desc 'Runs the html-proofer test'
task :run_html_proofer => [:build] do
  HTMLProofer.check_directory(
    './_site',
    internal_domains: ['docs.travis-ci.com'],
    check_external_hash: true,
    check_html: true,
    connecttimeout: 600,
    allow_hash_ref: true,
    only_4xx: true,
    typhoeus: {
      ssl_verifypeer: false, ssl_verifyhost: 0, followlocation: true
    },
  ).run
end
@plaindocs plaindocs changed the title Checking hashes isn't working for me Checking anchors isn't working for me Oct 9, 2018
@gjtorikian
Copy link
Owner

travis-ci/docs-travis-ci-com#2050 is a passing build. Could you show me a failing build where this is occurring?

@plaindocs
Copy link
Contributor Author

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 a pull request may close this issue.

2 participants