mirror of https://github.com/docker/docs.git
chore: add comments explaining hugo.yaml config
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
cbc026dfb2
commit
3bf5edeb65
44
hugo.yaml
44
hugo.yaml
|
|
@ -11,6 +11,7 @@ taxonomies:
|
||||||
tag: tags
|
tag: tags
|
||||||
language: languages
|
language: languages
|
||||||
|
|
||||||
|
# Remove the /manuals prefix for content in the manuals section
|
||||||
permalinks:
|
permalinks:
|
||||||
page:
|
page:
|
||||||
manuals: /:sections[1:]/:slugorfilename/
|
manuals: /:sections[1:]/:slugorfilename/
|
||||||
|
|
@ -27,10 +28,13 @@ markup:
|
||||||
parser:
|
parser:
|
||||||
wrapStandAloneImageWithinParagraph: false
|
wrapStandAloneImageWithinParagraph: false
|
||||||
attribute:
|
attribute:
|
||||||
|
# Allow setting attributes on block-level elements
|
||||||
block: true
|
block: true
|
||||||
renderer:
|
renderer:
|
||||||
|
# Allow inline HTML
|
||||||
unsafe: true
|
unsafe: true
|
||||||
highlight:
|
highlight:
|
||||||
|
# Use custom CSS for syntax highlighting
|
||||||
noClasses: false
|
noClasses: false
|
||||||
|
|
||||||
related:
|
related:
|
||||||
|
|
@ -46,10 +50,12 @@ related:
|
||||||
toLower: false
|
toLower: false
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
# Generate hugo_stats.json - Tailwind uses this to detect classes
|
||||||
buildStats:
|
buildStats:
|
||||||
enable: true
|
enable: true
|
||||||
disableIDs: true
|
disableIDs: true
|
||||||
disableTags: true
|
disableTags: true
|
||||||
|
# Ensure that CSS/assets changes trigger a dev server rebuild
|
||||||
cachebusters:
|
cachebusters:
|
||||||
- source: assets/watching/hugo_stats\.json
|
- source: assets/watching/hugo_stats\.json
|
||||||
target: styles\.css
|
target: styles\.css
|
||||||
|
|
@ -60,23 +66,29 @@ build:
|
||||||
- source: (assets|layouts)/.*\.(.*)$
|
- source: (assets|layouts)/.*\.(.*)$
|
||||||
target: "$2"
|
target: "$2"
|
||||||
|
|
||||||
|
# Additional output formats (e.g. custom JSON files)
|
||||||
outputFormats:
|
outputFormats:
|
||||||
|
# File containing all redirects, see: layouts/index.redirects.json
|
||||||
redirects:
|
redirects:
|
||||||
baseName: redirects
|
baseName: redirects
|
||||||
isPlainText: true
|
isPlainText: true
|
||||||
mediaType: "application/json"
|
mediaType: "application/json"
|
||||||
notAlternative: true
|
notAlternative: true
|
||||||
|
# Metadata file used by DD global search, see: layouts/index.metadata.json
|
||||||
metadata:
|
metadata:
|
||||||
baseName: metadata
|
baseName: metadata
|
||||||
isPlainText: true
|
isPlainText: true
|
||||||
mediaType: "application/json"
|
mediaType: "application/json"
|
||||||
notAlternative: true
|
notAlternative: true
|
||||||
|
# robots.txt, see: layouts/index.robots.json
|
||||||
robots:
|
robots:
|
||||||
baseName: robots
|
baseName: robots
|
||||||
isPlainText: true
|
isPlainText: true
|
||||||
mediaType: "text/plain"
|
mediaType: "text/plain"
|
||||||
notAlternative: true
|
notAlternative: true
|
||||||
|
|
||||||
|
# Enable custom output formats for the home page only
|
||||||
|
# (only generate the custom output files once)
|
||||||
outputs:
|
outputs:
|
||||||
home:
|
home:
|
||||||
- html
|
- html
|
||||||
|
|
@ -88,6 +100,9 @@ languages:
|
||||||
en:
|
en:
|
||||||
languageName: English
|
languageName: English
|
||||||
|
|
||||||
|
# Site-wide parameters
|
||||||
|
# Can be accessed in content with {{% param "param_name" %}}
|
||||||
|
# Or in layouts/partials with site.Params.param_name
|
||||||
params:
|
params:
|
||||||
kapa:
|
kapa:
|
||||||
id: ba5c2cbc-6535-4334-a72e-050f7a681c8a
|
id: ba5c2cbc-6535-4334-a72e-050f7a681c8a
|
||||||
|
|
@ -103,21 +118,36 @@ params:
|
||||||
apikey: 2899036ce47dba191b8dc1758e4bc6a4
|
apikey: 2899036ce47dba191b8dc1758e4bc6a4
|
||||||
indexname: docker
|
indexname: docker
|
||||||
|
|
||||||
|
# Docs repository URL
|
||||||
repo: https://github.com/docker/docs
|
repo: https://github.com/docker/docs
|
||||||
docs_url: https://docs.docker.com
|
docs_url: https://docs.docker.com
|
||||||
|
|
||||||
|
# === Example versions ===
|
||||||
|
# The following parameters are used in various ways in content and templates.
|
||||||
|
# Mostly as examples in code snippets, but also in other exotic ways.
|
||||||
|
# Use `grep` to figure out how they might be used.
|
||||||
|
|
||||||
|
# Latest version of the Docker Engine API
|
||||||
latest_engine_api_version: "1.47"
|
latest_engine_api_version: "1.47"
|
||||||
|
# Latest version of Docker Engine
|
||||||
docker_ce_version: "27.5.0"
|
docker_ce_version: "27.5.0"
|
||||||
|
# Previous version of the Docker Engine
|
||||||
|
# (Used to show e.g., "latest" and "latest"-1 in engine install examples
|
||||||
docker_ce_version_prev: "27.4.1"
|
docker_ce_version_prev: "27.4.1"
|
||||||
|
# Latest Docker Compose version
|
||||||
compose_version: "v2.32.3"
|
compose_version: "v2.32.3"
|
||||||
compose_file_v3: "3.8"
|
compose_file_v3: "3.8"
|
||||||
compose_file_v2: "2.4"
|
compose_file_v2: "2.4"
|
||||||
|
# Latest BuildKit version
|
||||||
buildkit_version: "0.16.0"
|
buildkit_version: "0.16.0"
|
||||||
|
|
||||||
|
# Example runtime/library/os versions
|
||||||
example_go_version: "1.23"
|
example_go_version: "1.23"
|
||||||
example_alpine_version: "3.21"
|
example_alpine_version: "3.21"
|
||||||
example_node_version: "20"
|
example_node_version: "20"
|
||||||
|
|
||||||
|
# Minimum version thresholds (used together with the "introduced" shortcode
|
||||||
|
# See layouts/shortcodes/introduced.html
|
||||||
min_version_thresholds:
|
min_version_thresholds:
|
||||||
buildx: "0.10.0"
|
buildx: "0.10.0"
|
||||||
buildkit: "0.11.0"
|
buildkit: "0.11.0"
|
||||||
|
|
@ -128,6 +158,7 @@ params:
|
||||||
scout: "1.0.0"
|
scout: "1.0.0"
|
||||||
|
|
||||||
menus:
|
menus:
|
||||||
|
# Site header menu
|
||||||
main:
|
main:
|
||||||
- name: Get started
|
- name: Get started
|
||||||
pageRef: /get-started/
|
pageRef: /get-started/
|
||||||
|
|
@ -142,6 +173,7 @@ menus:
|
||||||
pageRef: /reference/
|
pageRef: /reference/
|
||||||
weight: 4
|
weight: 4
|
||||||
|
|
||||||
|
# Footer links
|
||||||
footer:
|
footer:
|
||||||
- url: https://www.docker.com/products
|
- url: https://www.docker.com/products
|
||||||
name: Product offerings
|
name: Product offerings
|
||||||
|
|
@ -241,21 +273,28 @@ menus:
|
||||||
name: Newsletter
|
name: Newsletter
|
||||||
parent: About us
|
parent: About us
|
||||||
|
|
||||||
|
# Hugo modules - for fetching docs from upstream repos
|
||||||
|
# NOTE: we always vendor upstream docs in _vendor/
|
||||||
|
# Versions are declared in go.mod
|
||||||
module:
|
module:
|
||||||
proxy: https://proxy.golang.org,direct
|
proxy: https://proxy.golang.org,direct
|
||||||
hugoVersion:
|
hugoVersion:
|
||||||
extended: false
|
extended: false
|
||||||
min: "0.139.0"
|
min: "0.139.0"
|
||||||
mounts:
|
mounts:
|
||||||
|
# Mount the assets directory so it doesn't get overwritten
|
||||||
- source: assets
|
- source: assets
|
||||||
target: assets
|
target: assets
|
||||||
|
# Mount hugo_stats.json to the assets dir to trigger cachebust
|
||||||
- source: hugo_stats.json
|
- source: hugo_stats.json
|
||||||
target: assets/watching/hugo_stats.json
|
target: assets/watching/hugo_stats.json
|
||||||
|
# Mount the icon files to assets so we can access them with resources.Get
|
||||||
- source: node_modules/@material-symbols/svg-400/rounded
|
- source: node_modules/@material-symbols/svg-400/rounded
|
||||||
target: assets/icons
|
target: assets/icons
|
||||||
|
|
||||||
imports:
|
imports:
|
||||||
|
|
||||||
|
# Docker Engine
|
||||||
- path: github.com/moby/moby
|
- path: github.com/moby/moby
|
||||||
mounts:
|
mounts:
|
||||||
- source: docs/api/v1.24.md
|
- source: docs/api/v1.24.md
|
||||||
|
|
@ -266,6 +305,7 @@ module:
|
||||||
target: content/reference/api/engine/version
|
target: content/reference/api/engine/version
|
||||||
includeFiles: "*.yaml"
|
includeFiles: "*.yaml"
|
||||||
|
|
||||||
|
# BuildKit
|
||||||
- path: github.com/moby/buildkit
|
- path: github.com/moby/buildkit
|
||||||
mounts:
|
mounts:
|
||||||
- source: frontend/dockerfile/docs/reference.md
|
- source: frontend/dockerfile/docs/reference.md
|
||||||
|
|
@ -280,11 +320,13 @@ module:
|
||||||
- source: docs/attestations/attestation-storage.md
|
- source: docs/attestations/attestation-storage.md
|
||||||
target: content/manuals/build/metadata/attestations/attestation-storage.md
|
target: content/manuals/build/metadata/attestations/attestation-storage.md
|
||||||
|
|
||||||
|
# Buildx CLI plugin
|
||||||
- path: github.com/docker/buildx
|
- path: github.com/docker/buildx
|
||||||
mounts:
|
mounts:
|
||||||
- source: docs/bake-reference.md
|
- source: docs/bake-reference.md
|
||||||
target: content/manuals/build/bake/reference.md
|
target: content/manuals/build/bake/reference.md
|
||||||
|
|
||||||
|
# Docker CLI
|
||||||
- path: github.com/docker/cli
|
- path: github.com/docker/cli
|
||||||
mounts:
|
mounts:
|
||||||
- source: docs/extend
|
- source: docs/extend
|
||||||
|
|
@ -300,12 +342,14 @@ module:
|
||||||
- source: docs/reference/dockerd.md
|
- source: docs/reference/dockerd.md
|
||||||
target: content/reference/cli/dockerd.md
|
target: content/reference/cli/dockerd.md
|
||||||
|
|
||||||
|
# Compose
|
||||||
- path: github.com/docker/compose/v2
|
- path: github.com/docker/compose/v2
|
||||||
mounts:
|
mounts:
|
||||||
- source: docs/reference
|
- source: docs/reference
|
||||||
target: data/compose-cli
|
target: data/compose-cli
|
||||||
includeFiles: "*.yaml"
|
includeFiles: "*.yaml"
|
||||||
|
|
||||||
|
# Scout CLI plugin (public dist repo)
|
||||||
- path: github.com/docker/scout-cli
|
- path: github.com/docker/scout-cli
|
||||||
mounts:
|
mounts:
|
||||||
- source: docs
|
- source: docs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue