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

pa11y hard to use from non-internet connected machines #44

Closed
tomduckering opened this issue Jun 13, 2014 · 4 comments
Closed

pa11y hard to use from non-internet connected machines #44

tomduckering opened this issue Jun 13, 2014 · 4 comments

Comments

@tomduckering
Copy link

Hi,

Thanks for making pa11y. We're trying to use it for our project but since we have machines with no internet connectivity we have to jump through some hoops to make HTMLCS.js available to download via HTTP.

Is there a reason you're not just including this js file in your code or is there a reason it can't be fetched from a local file system?

Happy to try and make a fix but wanted to understand if there were some reasons for this not being possible.

Thanks,

Tom

@rowanmanning
Copy link
Member

Hi Tom,

Thanks for bringing this up.

We did look at keeping a copy locally briefly but it wasn't a big priority for our use-case. I'd be interested in merging if you wanted to work on this, but we're currently building the next major version of pa11y (no ETA yet) which no longer uses HTML CodeSniffer, so I don't have much time to dedicate to writing a fix myself.

Rowan

@whymarrh
Copy link

@tomduckering This is probably what you're referring to, but in the event that it isn't:

You can supply the -c or --htmlcs flag to pa11y and have it load a different URL for HTML_CodeSniffer. For example:

$ wget http://squizlabs.github.io/HTML_CodeSniffer/build/HTMLCS.js
$ # Or alternatively `curl -O`
$ python -m SimpleHTTPServer
$ # Or put it on a server that your machines have access to

And run pa11y like so: pa11y --htmlcs localhost:8000/HTMLCS.js example.com.

I do agree though that this is jumping through hoops.

@rowanmanning Will v2.0 be open source?

@rowanmanning
Copy link
Member

@whymarrh absolutely! Alpha stages at the moment, but was planning to get some early feedback from you at some point. Public roadmap should hopefully appear soon

@rowanmanning
Copy link
Member

Marking this as resolved – you can achieve this from an offline machine in the way that @whymarrh specified for now. In the next version of pa11y, I'm considering moving to a locally-hosted version of HTML CodeSniffer by default which will make this much easier in future.

joeyciechanowicz pushed a commit that referenced this issue Oct 27, 2021
* Update Pa11y dependency from beta to 5.0.0

* Update navigation failure message from puppeteer and increase integration test timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants