Skip to content

Commit cd13ce3

Browse files
committed
docs: clarify parens on ignorePatterns (closes #2009)
1 parent b48aa91 commit cd13ce3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/features/private pages.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ There may be some notes you want to avoid publishing as a website. Quartz suppor
1313
If you'd like to only publish a select number of notes, you can instead use [[ExplicitPublish]] which will filter out all notes except for any that have `publish: true` in the frontmatter.
1414

1515
> [!warning]
16-
> Regardless of the filter plugin used, **all non-markdown files will be emitted and available publically in the final build.** This includes files such as images, voice recordings, PDFs, etc. One way to prevent this and still be able to embed local images is to create a folder specifically for public media and add the following two patterns to the ignorePatterns array.
17-
>
18-
> `"!(PublicMedia)**/!(*.md)", "!(*.md)"`
16+
> Regardless of the filter plugin used, **all non-markdown files will be emitted and available publically in the final build.** This includes files such as images, voice recordings, PDFs, etc.
1917
2018
## `ignorePatterns`
2119

@@ -28,7 +26,7 @@ Common examples include:
2826

2927
- `some/folder`: exclude the entire of `some/folder`
3028
- `*.md`: exclude all files with a `.md` extension
31-
- `!*.md` exclude all files that _don't_ have a `.md` extension
29+
- `!(*.md)` exclude all files that _don't_ have a `.md` extension. Note that negations _must_ parenthesize the rest of the pattern!
3230
- `**/private`: exclude any files or folders named `private` at any level of nesting
3331

3432
> [!warning]

0 commit comments

Comments
 (0)