athackst / htmlproofer-action Goto Github PK
View Code? Open in Web Editor NEWRun htmlproofer on a directory. Defaults work with Github Pages.
Home Page: https://althack.dev/htmlproofer-action
License: Apache License 2.0
Run htmlproofer on a directory. Defaults work with Github Pages.
Home Page: https://althack.dev/htmlproofer-action
License: Apache License 2.0
Hello!
Thanks for providing this GH action :)!
Unfortunately, it seems that no checks are running.
{:check_external_hash=>false, :checks=>[], :ignore_empty_alt=>false, :enforce_https=>true, :hydra=>{:max_concurrency=>50}, :parallel=>{:in_processes=>3}, :typhoeus=>{:connecttimeout=>30, :followlocation=>true, :headers=>{"User-Agent"=>"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.0.0 Safari/537.36"}, :ssl_verifypeer=>false, :ssl_verifyhost=>0, :timeout=>120}, :ignore_urls=>["https://fonts.gstatic.com/"], :url_swap=>{/^\/error-prone-support/=>""}}
Running 0 checks () in ["./_site"] on *.html files...
This is my definition
- name: Validating HTML output
uses: athackst/htmlproofer-action@main
with:
check_external_hash: false
Thanks.
Hi @athackst, thanks for the updates!
Is it possible to have a new release ?
like the argument: --file-ignore "./something/404.html"
I'm getting:
* At ./ping-viewer/notifications-and-updates/index.html:700:
image /ping-viewer/images/icons/close.png does not have an alt attribute
* At ./ping-viewer/notifications-and-updates/index.html:700:
image /ping-viewer/images/icons/clear.png does not have an alt attribute
For the Links > External check, the following failures were found:
With the following configuration
- name: Htmlproofer
uses: athackst/[email protected]
with:
directory: "."
empty_alt_ignore: true
ignore_urls: |
https://fonts.gstatic.com
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.
{:allow_missing_href=>true, :check_external_hash=>true, :checks=>["Images", "Scripts"], :ignore_empty_alt=>true, :enforce_https=>false, :hydra=>{:max_concurrency=>50}, :typhoeus=>{:connecttimeout=>30, :followlocation=>true, :headers=>{"User-Agent"=>"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.0.0 Safari/537.36"}, :ssl_verifypeer=>false, :ssl_verifyhost=>0, :timeout=>120, :cookiefile=>".cookies", :cookiejar=>".cookies"}, :ignore_urls=>["********", "********"], :swap_urls=>{/^\/*******/=>"", /^.**********=>""}}
Running 2 checks (Images, Scripts) in ["./_site"] on *.html files ...
Workflow output:
Checking 4 external links
Checking 0 internal links
Checking internal link hashes in 0 files
Ran on 53492 files!
HTML-Proofer finished successfully.
My config:
uses: athackst/htmlproofer-action@main
with:
directory: ./_site
allow_missing_href: true
empty_alt_ignore: true
enforce_https: false
check_favicon: false
check_html: false
check_opengraph: false
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.