You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, the information in your HTML is not the same as how your server serves content. In these cases, you can use `swap_urls` to map the URL in a file to the URL you'd like it to become. For example:
In this case, we are telling HTMLProofer that, for any `img` tag detected, and for any check using the `src` attribute, to use the `data-src` attribute instead. Since the value is an array of arrays, you can pass in as many attribute swaps as you need.
163
+
In this case, we are telling HTMLProofer that, for any `img` tag detected, for any `src` attribute, pretend it's actually the `src` attribute instead. Since the value is an array of arrays, you can pass in as many attribute swaps as you need for each element.
164
164
165
165
### Using on the command-line
166
166
@@ -172,7 +172,7 @@ Pass in options through the command-line as flags, like this:
172
172
htmlproofer --extensions .html.erb ./out
173
173
```
174
174
175
-
Use `htmlproofer --help` to see all command line options, or [take a peek here](https://github.com/gjtorikian/html-proofer/blob/main/bin/htmlproofer).
175
+
Use `htmlproofer --help` to see all command line options.
176
176
177
177
#### Special cases for the command-line
178
178
@@ -294,7 +294,6 @@ The `HTMLProofer` constructor takes an optional hash of additional options:
294
294
In addition, there are a few "namespaced" options. These are:
295
295
296
296
*`:typhoeus` / `:hydra`
297
-
*`:parallel`
298
297
*`:cache`
299
298
300
299
### Configuring Typhoeus and Hydra
@@ -339,20 +338,6 @@ proofer.run
339
338
340
339
The `Authorization` header is being set if and only if the `base_url` is `https://github.com`, and it is excluded for all other URLs.
341
340
342
-
### Configuring Parallel
343
-
344
-
[Parallel](https://github.com/grosser/parallel) is used to speed internal file checks. You can pass in any of its options with the options namespace `:parallel`. For example:
In this example, `in_processes: 3` is passed into Parallel as a configuration option.
351
-
352
-
Pass in `parallel: { enable: false }` to disable parallel runs.
353
-
354
-
On the CLI, you can provide the `--parallel` argument to set the configuration. This is parsed using `JSON.parse` and mapped on top of the default configuration values so that they can be overridden.
355
-
356
341
## Configuring caching
357
342
358
343
Checking external URLs can slow your tests down. If you'd like to speed that up, you can enable caching for your external and internal links. Caching simply means to skip link checking for links that are valid for a certain period of time.
warn"Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
0 commit comments