included_assets and excluded_assets

Documents https://github.com/lektor/lektor/pull/129
This commit is contained in:
A. Jesse Jiryu Davis 2016-01-24 08:58:18 -08:00
parent 586e9c3154
commit e538a8beb2
1 changed files with 17 additions and 0 deletions

View File

@ -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
> 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:
```ini
@ -96,6 +111,8 @@ Example:
name = My Website
url = https://www.mywebsite.invalid/
locale = de_DE
excluded_assets = *.backup, *~
included_assets = _special_file
```
### `[packages]`