Skip to content

Commit

Permalink
doc: Option linking.pathRewrites in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
about-code committed Apr 10, 2022
1 parent e43284d commit d2121b7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

[vuepress] users might be interested in learning [how to use the tool with vuepress][doc-vuepress].

[doc-paths-and-urls]: https://github.com/about-code/glossarify-md/blob/master/doc/paths-and-urls.md

[doc-vocabulary-uris]: https://github.com/about-code/glossarify-md/blob/master/doc/vocabulary-uris.md

[doc-skos-interop]: https://github.com/about-code/glossarify-md/blob/master/doc/skos-interop.md
Expand Down Expand Up @@ -1043,6 +1045,7 @@ glossarifying and linking. Non-markdown files won't be processed anyways, so no
byReferenceDefinition: boolean,
paths: "relative" | "absolute",
pathComponents: ["path", "file", "ext"],
pathRewrites: {},
mentions: "all" | "first-in-paragraph",
headingAsLink: boolean,
headingDepths: number[],
Expand Down Expand Up @@ -1187,6 +1190,14 @@ Allows to tweak which components of a file path should make it into auto-generat

Use `linking.paths: "none"` if you would like to have a fragment (`#`) but no path components.

#### `linking.pathRewrites`

- **Range:** `{ [key: string]: string | string[] }`
- **Default:** `{}`
- **Since:** v6.2.0

Key-Value map where *Value* is a single search string or an array of strings or regular expressions (RegExp) and *Key* is the replacement/rewrite string. See also [Paths and Urls][doc-paths-and-urls].

#### `outDir`

- **Range:** `string`
Expand Down
10 changes: 10 additions & 0 deletions md/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

[vuepress] users might be interested in learning [how to use the tool with vuepress][doc-vuepress].

[doc-paths-and-urls]: https://github.com/about-code/glossarify-md/blob/master/doc/paths-and-urls.md
[doc-vocabulary-uris]: https://github.com/about-code/glossarify-md/blob/master/doc/vocabulary-uris.md
[doc-skos-interop]: https://github.com/about-code/glossarify-md/blob/master/doc/skos-interop.md
[doc-vuepress]: https://github.com/about-code/glossarify-md/blob/master/doc/vuepress.md
Expand Down Expand Up @@ -978,6 +979,7 @@ glossarifying and linking. Non-markdown files won't be processed anyways, so no
byReferenceDefinition: boolean,
paths: "relative" | "absolute",
pathComponents: ["path", "file", "ext"],
pathRewrites: {},
mentions: "all" | "first-in-paragraph",
headingAsLink: boolean,
headingDepths: number[],
Expand Down Expand Up @@ -1126,6 +1128,14 @@ Allows to tweak which components of a file path should make it into auto-generat

Use `linking.paths: "none"` if you would like to have a fragment (`#`) but no path components.

#### `linking.pathRewrites`

- **Range:** `{ [key: string]: string | string[] }`
- **Default:** `{}`
- **Since:** v6.2.0

Key-Value map where *Value* is a single search string or an array of strings or regular expressions (RegExp) and *Key* is the replacement/rewrite string. See also [Paths and Urls][doc-paths-and-urls].

#### `outDir`

- **Range:** `string`
Expand Down

0 comments on commit d2121b7

Please sign in to comment.