forked from SimonCropp/MarkdownSnippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a3cadb
commit 43399be
Showing
34 changed files
with
414 additions
and
441 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,48 @@ | ||
# Exclusions | ||
|
||
|
||
## Exclude directories from snippet and markdown discovery | ||
|
||
To exclude directories use `-e` or `--exclude-directories`. | ||
|
||
For example the following will exclude any directory containing 'foo' or 'bar' | ||
|
||
```ps | ||
mdsnippets -e foo:bar | ||
``` | ||
|
||
|
||
## Exclude snippets from directories | ||
|
||
To exclude directories from snippet discovery use `--exclude-snippet-directories`. | ||
|
||
For example the following will exclude any directory containing 'foo' or 'bar' | ||
|
||
```ps | ||
mdsnippets --exclude-snippet-directories foo:bar | ||
``` | ||
|
||
## Exclude markdown from directories | ||
|
||
To exclude directories from markdown discovery use `--exclude-markdown-directories`. | ||
|
||
For example the following will exclude any directory containing 'foo' or 'bar' | ||
|
||
```ps | ||
mdsnippets --exclude-markdown-directories foo:bar | ||
``` | ||
|
||
|
||
## Ignored paths | ||
|
||
When scanning for snippets the following are ignored: | ||
|
||
* All directories and files starting with a period `.` | ||
* Any of the following directory names: `bin`, `obj` | ||
* All binary files as defined by https://github.com/sindresorhus/binary-extensions/: | ||
|
||
snippet: BinaryFileExtensions | ||
|
||
* Files that cannot contain comments: | ||
|
||
snippet: NoAcceptCommentsExtensions |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.