From 11987c65e052ee4b41f7a8714b311270dd078711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20H=C3=BCbelbauer?= Date: Mon, 5 Jun 2023 14:45:31 +0200 Subject: [PATCH] Document Exclude behavior, Include overrides and the default exclusion list (#9376) Merge pull request 9376 --- docs/_data/config_options/global.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/_data/config_options/global.yml b/docs/_data/config_options/global.yml index 406e841e..d645aa70 100644 --- a/docs/_data/config_options/global.yml +++ b/docs/_data/config_options/global.yml @@ -40,13 +40,33 @@ description: >- Exclude directories and/or files from the conversion. These exclusions are relative to the site's source directory and cannot be outside the source directory. +
+ In Jekyll 3, the `exclude` configuration option replaces the default exclusion list. +
+ In Jekyll 4, user-provided entries get added to the default exclusion list instead and the `include` option can be + used to override the default exclusion list entries. +
+ The default exclusions are found in _config.yml as created by jekyll new: + option: "exclude: [DIR, FILE, ...]" - name: Include description: >- Force inclusion of directories and/or files in the conversion. .htaccess is a good example since - dotfiles are excluded by default. + dotfiles are excluded by default. With Jekyll 4, the `include` configuration option entries override the + `exclude` option entries. option: "include: [DIR, FILE, ...]"