Closed roman-vasylenko closed 1 year ago
It looks like your config disables link checking
check_html: false
disables the link checker.
@athackst thanks for the quick reply :)
As I understand, check_html
option is also responsible for checking HTML markup. In my case it increases the check time dramatically. I am not quite sure if this is possible, but it would be great to have the possibility to check links but disable HTML validation.
This action runs htmlproofer - if there's some setting combination that does what you want that I'm not supporting I could maybe add it.
This action really only exposes the functionality of that program. I can't support it here if it doesn't do what you want.
Maybe caching is what you'd want?
Hi, @athackst
Thanks for the reply. The problem I am having is that there is a subdirectory under _site with thousands of HTML files. It is actually an automatically generated API documentation for our project. As an example, _site/apidoc
. It generates an enormous number of errors and makes workflow run almost endlessly.
I am looking for a way to exclude the mentioned subdirectory from the check. As I can see there is no such specific parameter in HTMLProofer. However, I found that there is a way to provide an array of folders to run checks on via check_directories
option https://github.com/gjtorikian/html-proofer#checking-directories
It will allow me to specify all subdirectories I want to run checks on except _site/apidoc
Can this be implemented?
@athackst I found a solution for my particular situation. I created an alternative config.yml which excludes the needed directory from the Jekyll build during workflow run. Thank you for your time.
Hi,
Thanks for the action. It does not seem to check links. There is at least one link in HTML files in _site directory with a bad anchor which is not detected.
Workflow output:
My config: