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

4.3.1 Ignoring options #748

Closed
plaindocs opened this issue Aug 3, 2022 · 2 comments
Closed

4.3.1 Ignoring options #748

plaindocs opened this issue Aug 3, 2022 · 2 comments

Comments

@plaindocs
Copy link
Contributor

With 4.3.1 we're finding that options like --disable-external=true aren't working at all:

htmlproofer --ignore-files "/404/,/2013/,/2014/,/2015/,/2016/,/2017/,/videos/,/search\/index.html/" --allow-hash-href --enforce-https=false --ignore-missing-alt --disable-external=true docs/_build/html
Running 3 checks (Images, Links, Scripts) in ["docs/_build/html"] on *.html files...


Checking 2633 external links
Checking 4874 internal links

I've not dug in too deeply, but there is a little discussion here writethedocs/www#1774

Reverting to 4.2 does fix things.

@riccardoporreca
Copy link
Collaborator

@plaindocs, @gjtorikian, this is another instance of the CLI args issues, see #745 (comment) for a similar issue and relevant pointers, but you ultimately have to make sure to specify =true/false for all boolean options.

In your specific case:

--allow-hash-href=true --enforce-https=false --ignore-missing-alt=true --disable-external=true 

should do the job

@plaindocs
Copy link
Contributor Author

Thanks @riccardoporreca ! <3

And thanks @gjtorikian for continued work on htmlproofer! <3

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

No branches or pull requests

2 participants