Skip to content

Commit ee023b8

Browse files
authored
Merge pull request #284 from nwcm/master
Update readme to be clearer for projectBaseUrl opt
2 parents 2a85427 + dda529f commit ee023b8

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

README.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ Parameters:
6666

6767
* `markdown` string containing markdown formatted text.
6868
* `opts` optional options object containing any of the following optional fields:
69-
* `baseUrl` the base URL for relative links.
7069
* `showProgressBar` enable an ASCII progress bar.
7170
* `timeout` timeout in [zeit/ms](https://www.npmjs.com/package/ms) format. (e.g. `"2000ms"`, `20s`, `1m`). Default `10s`.
7271
* `httpHeaders` to apply URL specific headers, see example below.
@@ -170,14 +169,15 @@ multiple files on the command line.
170169
Usage: markdown-link-check [options] [filenameOrUrl]
171170

172171
Options:
173-
-p, --progress show progress bar
174-
-c, --config [config] apply a config file (JSON), holding e.g. url specific header configuration
175-
-q, --quiet displays errors only
176-
-v, --verbose displays detailed error information
177-
-a, --alive <code> comma separated list of HTTP code to be considered as alive
178-
-r, --retry retry after the duration indicated in 'retry-after' header when HTTP code is 429
179-
-h, --help display help for command
180-
-V, --version display version string (e.g. `1.2.3`)
172+
-p, --progress show progress bar
173+
-c, --config [config] apply a config file (JSON), holding e.g. url specific header configuration
174+
-q, --quiet displays errors only
175+
-v, --verbose displays detailed error information
176+
-a, --alive <code> comma separated list of HTTP code to be considered as alive
177+
-r, --retry retry after the duration indicated in 'retry-after' header when HTTP code is 429
178+
-h, --help display help for command
179+
-V, --version display version string (e.g. `1.2.3`)
180+
, --projectBaseUrl <url> the URL to use for {{BASEURL}} replacement
181181
```
182182

183183
##### Config file format
@@ -192,11 +192,13 @@ Options:
192192
* `retryCount` the number of retries to be made on a 429 response. Default `2`.
193193
* `fallbackRetryDelay` the delay in [zeit/ms](https://www.npmjs.com/package/ms) format. (e.g. `"2000ms"`, `20s`, `1m`) for retries on a 429 response when no `retry-after` header is returned or when it has an invalid value. Default is `60s`.
194194
* `aliveStatusCodes` a list of HTTP codes to consider as alive.
195+
* `projectBaseUrl` the URL to use for `{{BASEURL}}` replacement
195196

196197
**Example:**
197198

198199
```json
199200
{
201+
"projectBaseUrl":"${workspaceFolder}",
200202
"ignorePatterns": [
201203
{
202204
"pattern": "^http://example.net"

0 commit comments

Comments
 (0)