From e538a8beb29eb7b56c075295216ef3a546d03a67 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Sun, 24 Jan 2016 08:58:18 -0800 Subject: [PATCH] included_assets and excluded_assets Documents https://github.com/lektor/lektor/pull/129 --- content/docs/project/file/contents.lr | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/content/docs/project/file/contents.lr b/content/docs/project/file/contents.lr index 8464a6ae..806b4fbb 100644 --- a/content/docs/project/file/contents.lr +++ b/content/docs/project/file/contents.lr @@ -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]`