included_assets and excluded_assets
Documents https://github.com/lektor/lektor/pull/129
This commit is contained in:
parent
586e9c3154
commit
e538a8beb2
|
@ -89,6 +89,21 @@ This section controls some basics about the project:
|
||||||
> Note that if this setting is used some functionality in the desktop app
|
> Note that if this setting is used some functionality in the desktop app
|
||||||
> might no longer work (for instance opening `.lr` files with a double click).
|
> might no longer work (for instance opening `.lr` files with a double click).
|
||||||
|
|
||||||
|
`excluded_assets`
|
||||||
|
> A list of file names or Unix shell-style wildcards, separated by commas.
|
||||||
|
> The wildcard syntax follows [fnmatch](https://docs.python.org/2/library/fnmatch.html).
|
||||||
|
>
|
||||||
|
> By default, filenames beginning with "_" or "." are not copied from the
|
||||||
|
> `assets` directory to the output directory. Exclude *additional* files with
|
||||||
|
> the `excluded_assets` option.
|
||||||
|
|
||||||
|
`included_assets`
|
||||||
|
> A comma-separated list of file names or Unix shell-style wildcards, specifying
|
||||||
|
> files that should be copied from the `assets` directory to the output
|
||||||
|
> directory even if they begin with "_" or "." (the default exclusion patterns)
|
||||||
|
> or match your custom `excluded_assets` pattern. The wildcard syntax follows
|
||||||
|
> [fnmatch](https://docs.python.org/2/library/fnmatch.html).
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
|
@ -96,6 +111,8 @@ Example:
|
||||||
name = My Website
|
name = My Website
|
||||||
url = https://www.mywebsite.invalid/
|
url = https://www.mywebsite.invalid/
|
||||||
locale = de_DE
|
locale = de_DE
|
||||||
|
excluded_assets = *.backup, *~
|
||||||
|
included_assets = _special_file
|
||||||
```
|
```
|
||||||
|
|
||||||
### `[packages]`
|
### `[packages]`
|
||||||
|
|
Loading…
Reference in New Issue