-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New option 'linking.limitByAlternatives (#137)
See README.md for details. * test: New baseline.
- Loading branch information
1 parent
37c7b1e
commit 98cb9d0
Showing
39 changed files
with
308 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/negative/def-1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 1 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/negative/def-2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 2 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/negative/def-3.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 3 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/negative/def-4.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 4 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/negative/def-5.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 5 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/negative/def-6.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 6 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/negative/document.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Document | ||
|
||
GIVEN option `linking.limitByAlternatives: -5` WITH a negative limit | ||
AND a term *Ambiguous* with more definitions than the mathematical amount of the limit | ||
THEN the term MUST NOT be linkified at all. |
11 changes: 11 additions & 0 deletions
11
test/input/config-linking/limitByAlternatives/negative/glossarify-md.conf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "../../../../../conf/v5/schema.json", | ||
"baseDir": ".", | ||
"outDir": "../../../../output-actual/config-linking/limitByAlternatives/negative", | ||
"glossaries": [ | ||
{"file": "./*.md" } | ||
], | ||
"linking": { | ||
"limitByAlternatives": -5 | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/positive/def-1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 1 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/positive/def-2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 2 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/positive/def-3.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 3 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/positive/def-4.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 4 |
5 changes: 5 additions & 0 deletions
5
test/input/config-linking/limitByAlternatives/positive/def-5.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Testing `linking.limitByAlternatives` | ||
|
||
## Ambiguous | ||
|
||
Definition 5 |
Oops, something went wrong.