Skip to content

Commit 4227134

Browse files
authored
Merge pull request #24191 from dvdksn/hugo-template-housekeeping
hugo template housekeeping
2 parents b5e217c + 766abb5 commit 4227134

939 files changed

Lines changed: 1500 additions & 7019 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/validate-upstream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
const yamlSrcFilename = path.basename(yamlSrcPath);
6262
const yamlSrcNoExt = yamlSrcPath.replace(".yaml", "");
6363
const hasSubCommands = (await (await glob.create(yamlSrcNoExt)).glob()).length > 1;
64-
const yamlDestPath = path.join('data', `${{ inputs.data-files-folder }}`, yamlSrcFilename);
64+
const yamlDestPath = path.join('data', 'cli', `${{ inputs.data-files-folder }}`, yamlSrcFilename);
6565
let placeholderPath = path.join("content/reference/cli", yamlSrcFilename.replace('_', '/').replace(/\.yaml$/, '.md'));
6666
if (hasSubCommands) {
6767
placeholderPath = placeholderPath.replace('.md', '/_index.md');

COMPONENTS.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,32 @@ params:
6060
---
6161
```
6262

63+
### Series (guide) pages
64+
65+
Section pages under `content/guides/` automatically use the `series` layout
66+
(via a Hugo cascade in `hugo.yaml`). Series pages support additional front
67+
matter parameters for the metadata card:
68+
69+
```yaml
70+
---
71+
title: Getting started
72+
description: Learn the basics of Docker
73+
summary: |
74+
A longer summary shown on the series landing page.
75+
params:
76+
proficiencyLevel: Beginner
77+
time: 15 minutes
78+
prerequisites: None
79+
---
80+
```
81+
82+
| Field | Description |
83+
| ---------------- | ---------------------------------------- |
84+
| summary | Extended description for the series page |
85+
| proficiencyLevel | Skill level (Beginner, Intermediate) |
86+
| time | Estimated time to complete |
87+
| prerequisites | Prerequisites or "None" |
88+
6389
## Shortcodes
6490

6591
Shortcodes are reusable components that add rich functionality to your

CONTRIBUTING.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,17 @@ If this command doesn't result in any errors, you're good to go!
111111

112112
## Content not edited here
113113

114-
CLI reference documentation is maintained in upstream repositories. It's
115-
partially generated from code, and is only vendored here for publishing. To
116-
update the CLI reference docs, refer to the corresponding repository:
114+
CLI reference documentation is maintained in upstream repositories and
115+
generated from YAML data files in `data/cli/`. A Hugo content adapter
116+
(`content/reference/cli/_content.gotmpl`) turns these data files into pages
117+
automatically. To update the CLI reference docs, refer to the corresponding
118+
repository:
117119

118120
- [docker/cli](https://github.com/docker/cli)
119121
- [docker/buildx](https://github.com/docker/buildx)
120122
- [docker/compose](https://github.com/docker/compose)
121123
- [docker/model-runner](https://github.com/docker/model-runner)
124+
- [docker/mcp-gateway](https://github.com/docker/mcp-gateway)
122125

123126
Feel free to raise an issue on this repository if you're not sure how to
124127
proceed, and we'll help out.

content/get-started/docker-concepts/building-images/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ summary: |
1313
deep dive into the secrets of images, how they are built and best practices.
1414
layout: series
1515
params:
16-
skill: Beginner
16+
proficiencyLevel: Beginner
1717
time: 25 minutes
18-
prereq: None
18+
prerequisites: None
1919
---
2020

2121
## About this series

content/get-started/docker-concepts/building-images/build-tag-and-publish-an-image.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ Now that you have an image built, it's time to push the image to a registry.
221221
To learn more about building, tagging, and publishing images, visit the following resources:
222222

223223
* [What is a build context?](/build/concepts/context/#what-is-a-build-context)
224-
* [docker build reference](/engine/reference/commandline/image_build/)
225-
* [docker image tag reference](/engine/reference/commandline/image_tag/)
226-
* [docker push reference](/engine/reference/commandline/image_push/)
224+
* [docker build reference](/reference/cli/docker/buildx/build/)
225+
* [docker image tag reference](/reference/cli/docker/image/tag/)
226+
* [docker push reference](/reference/cli/docker/image/push/)
227227
* [What is a registry?](/get-started/docker-concepts/the-basics/what-is-a-registry/)
228228

229229
## Next steps

content/get-started/docker-concepts/building-images/writing-a-dockerfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
152152
> The `docker init` command will analyze your project and quickly create
153153
> a Dockerfile, a `compose.yaml`, and a `.dockerignore`, helping you get
154154
> up and going. Since you're learning about Dockerfiles specifically here,
155-
> you won't use it now. But, [learn more about it here](/engine/reference/commandline/init/).
155+
> you won't use it now. But, [learn more about it here](/reference/cli/docker/init/).
156156

157157
## Additional resources
158158

content/get-started/docker-concepts/the-basics/what-is-an-image.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Follow the instructions to search and pull a Docker image using CLI to view its
8484

8585
### Search for and download an image
8686

87-
1. Open a terminal and search for images using the [`docker search`](/reference/cli/docker/search.md) command:
87+
1. Open a terminal and search for images using the [`docker search`](/reference/cli/docker/search/) command:
8888

8989
```console
9090
docker search docker/welcome-to-docker
@@ -99,7 +99,7 @@ Follow the instructions to search and pull a Docker image using CLI to view its
9999

100100
This output shows you information about relevant images available on Docker Hub.
101101

102-
2. Pull the image using the [`docker pull`](/reference/cli/docker/image/pull.md) command.
102+
2. Pull the image using the [`docker pull`](/reference/cli/docker/image/pull/) command.
103103

104104
```console
105105
docker pull docker/welcome-to-docker
@@ -127,7 +127,7 @@ Follow the instructions to search and pull a Docker image using CLI to view its
127127

128128
### Learn about the image
129129

130-
1. List your downloaded images using the [`docker image ls`](/reference/cli/docker/image/ls.md) command:
130+
1. List your downloaded images using the [`docker image ls`](/reference/cli/docker/image/ls/) command:
131131

132132
```console
133133
docker image ls
@@ -146,7 +146,7 @@ Follow the instructions to search and pull a Docker image using CLI to view its
146146
>
147147
> The image size represented here reflects the uncompressed size of the image, not the download size of the layers.
148148
149-
2. List the image's layers using the [`docker image history`](/reference/cli/docker/image/history.md) command:
149+
2. List the image's layers using the [`docker image history`](/reference/cli/docker/image/history/) command:
150150

151151
```console
152152
docker image history docker/welcome-to-docker

content/get-started/docker-concepts/the-basics/what-is-docker-compose.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,5 @@ This page was a brief introduction to Compose. In the following resources, you c
138138

139139

140140
* [Overview of Docker Compose](/compose/)
141-
* [Overview of Docker Compose CLI](/compose/reference/)
141+
* [Overview of Docker Compose CLI](/reference/cli/docker/compose/)
142142
* [How Compose works](/compose/intro/compose-application-model/)

content/get-started/introduction/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ summary: |
1212
commands, image creation, and container orchestration.
1313
layout: series
1414
params:
15-
skill: Beginner
15+
proficiencyLevel: Beginner
1616
time: 15 minutes
17-
prereq: None
17+
prerequisites: None
1818
aliases:
1919
- /guides/getting-started/
2020
---

content/get-started/workshop/08_using_compose.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ the way you define and share multi-service applications.
283283
Related information:
284284
- [Compose overview](/manuals/compose/_index.md)
285285
- [Compose file reference](/reference/compose-file/_index.md)
286-
- [Compose CLI reference](/reference/cli/docker/compose/_index.md)
286+
- [Compose CLI reference](/reference/cli/docker/compose/)
287287

288288
## Next steps
289289

0 commit comments

Comments
 (0)