Skip to content

Commit 6821c07

Browse files
committed
jekyll: merge scopes and exclusions config
Signed-off-by: CrazyMax <[email protected]>
1 parent e4fdbe1 commit 6821c07

File tree

2 files changed

+9
-38
lines changed

2 files changed

+9
-38
lines changed

_config.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ kramdown:
2828
liquid:
2929
error_mode: strict
3030

31+
# Exclude directories and/or files from the conversion. These exclusions are
32+
# relative to the site's source directory and cannot be outside the source
33+
# directory.
3134
exclude:
3235
- _deploy
3336
- _releaser
@@ -89,13 +92,10 @@ sass:
8992
sass_dir: _scss
9093
style: expanded
9194

92-
# Set default options / metadata for some paths.
93-
#
9495
# Setting options here prevents having to repeat the same option in front-matter
9596
# on every page.
97+
# https://jekyllrb.com/docs/configuration/front-matter-defaults/
9698
defaults:
97-
# Default one for development builds (local and PR previews)
98-
# sitemap is disabled here but not for production in _config_production.yml
9999
- scope:
100100
path: ""
101101
type: "pages"
@@ -105,6 +105,10 @@ defaults:
105105
toc_max: 4
106106

107107
# Exclude from sitemap
108+
- scope:
109+
path: "desktop/enterprise"
110+
values:
111+
sitemap: false
108112
- scope:
109113
path: "assets/**"
110114
values:
@@ -141,6 +145,7 @@ defaults:
141145

142146
# Fetch upstream resources (reference documentation) used by _plugins/fetch_remote.rb
143147
# - repo is the GitHub repository to fetch from
148+
# - default_branch used to generate edit_url link
144149
# - ref the Git reference
145150
# - paths is a list to the resources within the remote repository
146151
# - dest is the destination path within the working tree

_config_production.yml

-34
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22
# This file overrides options set in _config.yml for production / deploy
33
##
44

5-
# Override the exclusion list to include files that are excluded in "development",
6-
# such as the "enterprise" stubs, which are in place to facilitate redirects
7-
# to Mirantis.
8-
exclude:
9-
- _releaser
10-
- _scripts
11-
- docker-bake.hcl
12-
- LICENSE
13-
- Makefile
14-
- README.md
15-
165
# Google Analytics, etc.
176
google_analytics: GTM-WL2QLG5
187
onetrust_id: 8e0ebfd9-035d-4ec2-9b2f-a2de9c09f906
@@ -28,26 +17,3 @@ sass:
2817
collections:
2918
samples:
3019
output: true
31-
32-
# Set default options / metadata for some paths.
33-
#
34-
# Setting options here prevents having to repeat the same option in front-matter
35-
# on every page.
36-
#
37-
# The list below is used for *production* deploys, and overrides the one defined
38-
# in "_config.yml", which is used for local builds and pull-request previews.
39-
defaults:
40-
- scope:
41-
path: ""
42-
type: "pages"
43-
values:
44-
layout: docs
45-
toc_min: 2
46-
toc_max: 4
47-
48-
# Hide Enterprise content from sitemap. These directories still contains stubs
49-
# that are needed to redirect old URLs
50-
- scope:
51-
path: "desktop/enterprise"
52-
values:
53-
sitemap: false

0 commit comments

Comments
 (0)