Skip to content

Commit

Permalink
Merge pull request #21756 from dvdksn/cli-aliases-sidebar
Browse files Browse the repository at this point in the history
cli: add common top-level aliases to sidebar
  • Loading branch information
dvdksn authored Jan 13, 2025
2 parents 2a11e52 + a2d2b07 commit ab43bae
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 12 deletions.
7 changes: 7 additions & 0 deletions content/reference/cli/docker/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: docker build
build:
render: never
sidebar:
goto: /reference/cli/docker/buildx/build/
---
1 change: 0 additions & 1 deletion content/reference/cli/docker/container/exec.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
datafolder: engine-cli
datafile: docker_container_exec
linkTitle: docker exec
title: docker container exec
aliases:
- /edge/engine/reference/commandline/container_exec/
Expand Down
1 change: 0 additions & 1 deletion content/reference/cli/docker/container/ls.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
datafolder: engine-cli
datafile: docker_container_ls
linkTitle: docker ps
title: docker container ls
aliases:
- /edge/engine/reference/commandline/container_ls/
Expand Down
1 change: 0 additions & 1 deletion content/reference/cli/docker/container/run.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
datafolder: engine-cli
datafile: docker_container_run
linkTitle: docker run
title: docker container run
aliases:
- /engine/reference/commandline/container_run/
Expand Down
7 changes: 7 additions & 0 deletions content/reference/cli/docker/exec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: docker exec
build:
render: never
sidebar:
goto: /reference/cli/docker/container/exec/
---
1 change: 0 additions & 1 deletion content/reference/cli/docker/image/ls.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
datafolder: engine-cli
datafile: docker_image_ls
linkTitle: docker images
title: docker image ls
aliases:
- /edge/engine/reference/commandline/image_ls/
Expand Down
1 change: 0 additions & 1 deletion content/reference/cli/docker/image/pull.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
datafolder: engine-cli
datafile: docker_image_pull
linkTitle: docker pull
title: docker image pull
aliases:
- /edge/engine/reference/commandline/image_pull/
Expand Down
1 change: 0 additions & 1 deletion content/reference/cli/docker/image/push.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
datafolder: engine-cli
datafile: docker_image_push
linkTitle: docker push
title: docker image push
aliases:
- /edge/engine/reference/commandline/image_push/
Expand Down
7 changes: 7 additions & 0 deletions content/reference/cli/docker/images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: docker images
build:
render: never
sidebar:
goto: /reference/cli/docker/image/ls/
---
7 changes: 7 additions & 0 deletions content/reference/cli/docker/info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: docker info
build:
render: never
sidebar:
goto: /reference/cli/docker/system/info/
---
7 changes: 7 additions & 0 deletions content/reference/cli/docker/ps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: docker ps
build:
render: never
sidebar:
goto: /reference/cli/docker/container/ls/
---
7 changes: 7 additions & 0 deletions content/reference/cli/docker/pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: docker pull
build:
render: never
sidebar:
goto: /reference/cli/docker/image/pull/
---
7 changes: 7 additions & 0 deletions content/reference/cli/docker/push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: docker push
build:
render: never
sidebar:
goto: /reference/cli/docker/image/push/
---
7 changes: 7 additions & 0 deletions content/reference/cli/docker/run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: docker run
build:
render: never
sidebar:
goto: /reference/cli/docker/container/run/
---
1 change: 0 additions & 1 deletion content/reference/cli/docker/system/info.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
datafolder: engine-cli
datafile: docker_system_info
linkTitle: docker info
title: docker system info
aliases:
- /edge/engine/reference/commandline/system_info/
Expand Down
12 changes: 7 additions & 5 deletions layouts/_default/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,13 @@ <h1 class="scroll-mt-36">{{ .Title }}</h1>
</thead>
<tbody>
{{ range .Pages }}
<tr>
<td class="text-left"><a class="link" href="{{ .Permalink }}"><code>{{ .Title }}</code></a></th>
{{ $data := index (index site.Data .Params.datafolder) .Params.datafile }}
<td class="text-left">{{ $data.short }}</th>
</tr>
{{- if and .Params.datafolder .Params.datafile }}
<tr>
<td class="text-left"><a class="link" href="{{ .Permalink }}"><code>{{ .Title }}</code></a></th>
{{ $data := index (index site.Data .Params.datafolder) .Params.datafile }}
<td class="text-left">{{ $data.short }}</th>
</tr>
{{- end }}
{{ end }}
</tbody>
</table>
Expand Down

0 comments on commit ab43bae

Please sign in to comment.