Giter Site home page Giter Site logo

athackst / htmlproofer-action Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4.29 MB

Run htmlproofer on a directory. Defaults work with Github Pages.

Home Page: https://althack.dev/htmlproofer-action

License: Apache License 2.0

Dockerfile 0.48% Shell 1.10% Ruby 89.35% HTML 9.00% JavaScript 0.08%
github-actions htmlproofer

htmlproofer-action's People

Contributors

athackst avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

htmlproofer-action's Issues

Checks do not run

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.

empty_alt_ignore is not working

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

Links check is not run

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.