mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-06-16 09:46:39 +00:00
docs: clarify parens on ignorePatterns (closes #2009)
This commit is contained in:
parent
b48aa91728
commit
cd13ce3c47
@ -13,9 +13,7 @@ There may be some notes you want to avoid publishing as a website. Quartz suppor
|
|||||||
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.
|
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.
|
||||||
|
|
||||||
> [!warning]
|
> [!warning]
|
||||||
> 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.
|
> 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.
|
||||||
>
|
|
||||||
> `"!(PublicMedia)**/!(*.md)", "!(*.md)"`
|
|
||||||
|
|
||||||
## `ignorePatterns`
|
## `ignorePatterns`
|
||||||
|
|
||||||
@ -28,7 +26,7 @@ Common examples include:
|
|||||||
|
|
||||||
- `some/folder`: exclude the entire of `some/folder`
|
- `some/folder`: exclude the entire of `some/folder`
|
||||||
- `*.md`: exclude all files with a `.md` extension
|
- `*.md`: exclude all files with a `.md` extension
|
||||||
- `!*.md` exclude all files that _don't_ have a `.md` extension
|
- `!(*.md)` exclude all files that _don't_ have a `.md` extension. Note that negations _must_ parenthesize the rest of the pattern!
|
||||||
- `**/private`: exclude any files or folders named `private` at any level of nesting
|
- `**/private`: exclude any files or folders named `private` at any level of nesting
|
||||||
|
|
||||||
> [!warning]
|
> [!warning]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user