Skip to content

Commit

Permalink
Document Exclude behavior, Include overrides and the default exclusio…
Browse files Browse the repository at this point in the history
…n list (#9376)

Merge pull request 9376
  • Loading branch information
TomasHubelbauer committed Jun 5, 2023
1 parent 58a1f62 commit 11987c6
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/_data/config_options/global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<br />
In Jekyll 3, the `exclude` configuration option replaces the default exclusion list.
<br />
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.
<br />
The default exclusions are found in <code>_config.yml</code> as created by <code>jekyll new</code>:
<ul>
<li><code>.sass-cache/</code></li>
<li><code>.jekyll-cache/</code></li>
<li><code>gemfiles/</code></li>
<li><code>Gemfile</code></li>
<li><code>Gemfile.lock</code></li>
<li><code>node_modules/</code></li>
<li><code>vendor/bundle/</code></li>
<li><code>vendor/cache/</code></li>
<li><code>vendor/gems/</code></li>
<li><code>vendor/ruby/</code></li>
</ul>
option: "exclude: [DIR, FILE, ...]"


- name: Include
description: >-
Force inclusion of directories and/or files in the conversion. <code>.htaccess</code> 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, ...]"


Expand Down

0 comments on commit 11987c6

Please sign in to comment.