Skip to content

Commit

Permalink
Add improved docs
Browse files Browse the repository at this point in the history
Closes GH-63.

Reviewed-by: Christian Murphy <[email protected]>
Reviewed-by: Merlijn Vos <[email protected]>
Reviewed-by: Remco Haszing <[email protected]>
  • Loading branch information
wooorm authored Oct 28, 2021
1 parent c25391e commit 0489d13
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 124 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* @typedef {import('./lib/index.js').UrlConfig} UrlConfig
* @typedef {import('./lib/index.js').Options} Options
*/

import remarkValidateLinks from './lib/index.js'

export default remarkValidateLinks
12 changes: 6 additions & 6 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @typedef Options
* Configuration.
* @property {string|false} [repository]
* URL to hosted Git.
* If `repository` is nullish, the Git origin remote is detected.
* If the repository resolves to something npm understands as a Git host such
* as GitHub, GitLab, or Bitbucket, full URLs to that host (say,
Expand All @@ -31,14 +32,13 @@
* explicitly.
* @property {string} [root]
* A `root` (`string?`) can also be passed, referencing the local Git root
* directory (the place where `.git` is).
* directory (the folder that contains `.git`).
* If both `root` and `repository` are nullish, the Git root is detected.
* If `root` is not given but `repository` is, [`file.cwd`][cwd] is used.
* If `root` is not given but `repository` is, `file.cwd` is used.
* @property {UrlConfig} [urlConfig]
* If you’re self-hosting a Git server, you can provide URL information
* directly, as `urlConfig` (`Object`).
* If your project is hosted on `github.com`, `gitlab.com`, or `bitbucket.org`,
* this plugin can automatically detect the url configuration.
* Otherwise, use `urlConfig` to specify this manually.
*/

import {check} from './check/index.js'
Expand Down
Loading

0 comments on commit 0489d13

Please sign in to comment.