-
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(cli): New parameter --init to generate a config file with all op…
…tions and defaults (#126) * Bump test suite version * test: New test case. * test: New baseline.
- Loading branch information
1 parent
1583ff0
commit 04894ce
Showing
10 changed files
with
156 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Test Case | ||
|
||
GIVEN | ||
|
||
- a directory `docs` | ||
- a markdown file `./docs/document.md` | ||
- a markdown file `./docs/glossary.md` | ||
- a glossary term INIT | ||
- a command line (multiple lines for readability only) | ||
|
||
~~~ | ||
npx glossarify-md --init > glossarify-md.conf.json | ||
&& npx glossarify-md --config ./glossarify-md.conf.json` | ||
~~~ | ||
|
||
THEN | ||
|
||
- the files MUST be processable without errors | ||
|
||
AND | ||
|
||
- the term should be replaced with a link to its glossary definition. |
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 @@ | ||
# Glossary | ||
|
||
## INIT | ||
|
||
Initialize a configuration via `npx glossarify-md --init`. |
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,22 @@ | ||
# [Test Case](#test-case) | ||
|
||
GIVEN | ||
|
||
- a directory `docs` | ||
- a markdown file `./docs/document.md` | ||
- a markdown file `./docs/glossary.md` | ||
- a glossary term [INIT][1] | ||
- a command line (multiple lines for readability only) | ||
|
||
npx glossarify-md --init > glossarify-md.conf.json | ||
&& npx glossarify-md --config ./glossarify-md.conf.json` | ||
|
||
THEN | ||
|
||
- the files MUST be processable without errors | ||
|
||
AND | ||
|
||
- the term should be replaced with a link to its glossary definition. | ||
|
||
[1]: ./glossary.md#init "Initialize a configuration via npx glossarify-md --init." |
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 @@ | ||
# [Glossary](#glossary) | ||
|
||
## [INIT](#init) | ||
|
||
Initialize a configuration via `npx glossarify-md --init`. |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.