mirror of https://github.com/docker/docs.git
jekyll: merge scopes and exclusions config
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
e4fdbe1892
commit
6821c07e34
13
_config.yml
13
_config.yml
|
@ -28,6 +28,9 @@ kramdown:
|
||||||
liquid:
|
liquid:
|
||||||
error_mode: strict
|
error_mode: strict
|
||||||
|
|
||||||
|
# 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.
|
||||||
exclude:
|
exclude:
|
||||||
- _deploy
|
- _deploy
|
||||||
- _releaser
|
- _releaser
|
||||||
|
@ -89,13 +92,10 @@ sass:
|
||||||
sass_dir: _scss
|
sass_dir: _scss
|
||||||
style: expanded
|
style: expanded
|
||||||
|
|
||||||
# Set default options / metadata for some paths.
|
|
||||||
#
|
|
||||||
# Setting options here prevents having to repeat the same option in front-matter
|
# Setting options here prevents having to repeat the same option in front-matter
|
||||||
# on every page.
|
# on every page.
|
||||||
|
# https://jekyllrb.com/docs/configuration/front-matter-defaults/
|
||||||
defaults:
|
defaults:
|
||||||
# Default one for development builds (local and PR previews)
|
|
||||||
# sitemap is disabled here but not for production in _config_production.yml
|
|
||||||
- scope:
|
- scope:
|
||||||
path: ""
|
path: ""
|
||||||
type: "pages"
|
type: "pages"
|
||||||
|
@ -105,6 +105,10 @@ defaults:
|
||||||
toc_max: 4
|
toc_max: 4
|
||||||
|
|
||||||
# Exclude from sitemap
|
# Exclude from sitemap
|
||||||
|
- scope:
|
||||||
|
path: "desktop/enterprise"
|
||||||
|
values:
|
||||||
|
sitemap: false
|
||||||
- scope:
|
- scope:
|
||||||
path: "assets/**"
|
path: "assets/**"
|
||||||
values:
|
values:
|
||||||
|
@ -141,6 +145,7 @@ defaults:
|
||||||
|
|
||||||
# Fetch upstream resources (reference documentation) used by _plugins/fetch_remote.rb
|
# Fetch upstream resources (reference documentation) used by _plugins/fetch_remote.rb
|
||||||
# - repo is the GitHub repository to fetch from
|
# - repo is the GitHub repository to fetch from
|
||||||
|
# - default_branch used to generate edit_url link
|
||||||
# - ref the Git reference
|
# - ref the Git reference
|
||||||
# - paths is a list to the resources within the remote repository
|
# - paths is a list to the resources within the remote repository
|
||||||
# - dest is the destination path within the working tree
|
# - dest is the destination path within the working tree
|
||||||
|
|
|
@ -2,17 +2,6 @@
|
||||||
# This file overrides options set in _config.yml for production / deploy
|
# This file overrides options set in _config.yml for production / deploy
|
||||||
##
|
##
|
||||||
|
|
||||||
# Override the exclusion list to include files that are excluded in "development",
|
|
||||||
# such as the "enterprise" stubs, which are in place to facilitate redirects
|
|
||||||
# to Mirantis.
|
|
||||||
exclude:
|
|
||||||
- _releaser
|
|
||||||
- _scripts
|
|
||||||
- docker-bake.hcl
|
|
||||||
- LICENSE
|
|
||||||
- Makefile
|
|
||||||
- README.md
|
|
||||||
|
|
||||||
# Google Analytics, etc.
|
# Google Analytics, etc.
|
||||||
google_analytics: GTM-WL2QLG5
|
google_analytics: GTM-WL2QLG5
|
||||||
onetrust_id: 8e0ebfd9-035d-4ec2-9b2f-a2de9c09f906
|
onetrust_id: 8e0ebfd9-035d-4ec2-9b2f-a2de9c09f906
|
||||||
|
@ -28,26 +17,3 @@ sass:
|
||||||
collections:
|
collections:
|
||||||
samples:
|
samples:
|
||||||
output: true
|
output: true
|
||||||
|
|
||||||
# Set default options / metadata for some paths.
|
|
||||||
#
|
|
||||||
# Setting options here prevents having to repeat the same option in front-matter
|
|
||||||
# on every page.
|
|
||||||
#
|
|
||||||
# The list below is used for *production* deploys, and overrides the one defined
|
|
||||||
# in "_config.yml", which is used for local builds and pull-request previews.
|
|
||||||
defaults:
|
|
||||||
- scope:
|
|
||||||
path: ""
|
|
||||||
type: "pages"
|
|
||||||
values:
|
|
||||||
layout: docs
|
|
||||||
toc_min: 2
|
|
||||||
toc_max: 4
|
|
||||||
|
|
||||||
# Hide Enterprise content from sitemap. These directories still contains stubs
|
|
||||||
# that are needed to redirect old URLs
|
|
||||||
- scope:
|
|
||||||
path: "desktop/enterprise"
|
|
||||||
values:
|
|
||||||
sitemap: false
|
|
||||||
|
|
Loading…
Reference in New Issue