Checks if all hyperlinks in an asciidoc file are alive(or dead).
Usage
(Optional) Use the -p
or --progress
switch to view progress.
Check links for a local file
```
asciidoc-link-check README.adoc --progress
```
Check links for an online file
```
asciidoc-link-check https://github.com/gaurav-nelson/asciidoc-link-check/blob/master/README.adoc
```
Check links from standard input
```
cat <filename>.adoc | asciidoc-link-check -p
```
Check links in all asciidoc files in a directory
Check recursively in the current directory:
```
find . -name *.adoc -exec asciidoc-link-check -p {} ;
```
Check recursively in the other directories:
```
find <directory> -name *.adoc -exec asciidoc-link-check -p {} ;
```
Ignore specific links
Create a JSON config file containing ignore patterns:
```
{
"ignorePatterns": [
{ "pattern": "^https://192.17" },
{ "pattern": "^https://www.google" }
]
}
```
Use the config file option:
```
asciidoc-link-check README.adoc -c <configfile.json>
```