Skip to content

Commit aae9bfc

Browse files
committed
Rename / remove edge-related variables
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent b35c875 commit aae9bfc

File tree

12 files changed

+20
-22
lines changed

12 files changed

+20
-22
lines changed

_config.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ url: https://docs.docker.com
1616
keep_files: ["v1.4", "v1.5", "v1.6", "v1.7", "v1.8", "v1.9", "v1.10", "v1.11", "v1.12", "v1.13", "v17.03", "v17.06", "v17.09", "v17.12", "v18.03"]
1717
exclude: ["_scripts", "apidocs/layouts", "Gemfile", "hooks"]
1818

19-
# Component versions -- address like site.docker_ce_stable_version
19+
# Component versions -- address like site.docker_ce_version
2020
# You can't have - characters in these for non-YAML reasons
2121

22-
latest_stable_docker_engine_api_version: "1.39"
23-
docker_ce_stable_version: "18.09"
24-
docker_ce_edge_version: "18.09"
22+
latest_engine_api_version: "1.39"
23+
docker_ce_version: "18.09"
2524
docker_ee_version: "18.09"
2625
compose_version: "1.23.2"
2726
machine_version: "0.16.0"

_config_authoring.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ lsi: false
1212
url: https://docs.docker.com
1313
incremental: false
1414

15-
# Component versions -- address like site.docker_ce_stable_version
15+
# Component versions -- address like site.docker_ce_version
1616
# You can't have - characters in these for non-YAML reasons
1717

1818
# TO USE ME:
1919
# jekyll serve --incremental --config _config_authoring.yml
2020

21-
docker_ce_stable_version: "17.09"
22-
latest_stable_docker_engine_api_version: "1.32"
23-
docker_ce_edge_version: "17.09"
21+
latest_engine_api_version: "1.32"
22+
docker_ce_version: "17.09"
2423
docker_ee_version: "17.06"
2524
compose_version: "1.16.1"
2625
machine_version: "0.12.2"

_data/toc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ reference:
970970
- path: /engine/api/sdks/
971971
title: SDKs
972972
- path: /engine/api/latest/
973-
title: v{{ site.latest_stable_docker_engine_api_version }} reference (latest stable)
973+
title: v{{ site.latest_engine_api_version }} reference (latest)
974974
- sectiontitle: API reference by version
975975
section:
976976
- path: /engine/api/version-history/

_layouts/docs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
// Default to assuming this is an archive and hiding some stuff
107107
// See js/archive.js and js/docs.js for logic relating to this
108108
var isArchive = true;
109-
var dockerVersion = 'v{{ site.docker_ce_stable_version }}';
109+
var dockerVersion = 'v{{ site.docker_ce_version }}';
110110
</script>
111111
</head>
112112
<body ng-app="Docker" ng-controller="DockerController" class="colums">
@@ -303,7 +303,7 @@ <h2>Next steps</h2>
303303
// Default to assuming this is an archive and hiding some stuff
304304
// See js/archive.js and js/docs.js for logic relating to this
305305
var isArchive = true;
306-
var dockerVersion = 'v{{ site.docker_ce_stable_version }}';
306+
var dockerVersion = 'v{{ site.docker_ce_version }}';
307307
// In archives, we need to know the page root and we get it from JEKYLL_ENV in the jekyll build command
308308
var jekyllEnv = '{{ jekyll.environment }}';
309309
// If unset (in non-archive branches), defaults to "development". In that case, reset it to empty

_scripts/fetch-upstream-resources.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ while read i; do
6464
done < <(cat ${SOURCE}/_config.yml |grep '_version:' |grep '^[a-z].*')
6565

6666
# Replace variable in toc.yml with value from above
67-
sedi "s/{{ site.latest_stable_docker_engine_api_version }}/$latest_stable_docker_engine_api_version/g" ${SOURCE}/_data/toc.yaml
67+
sedi "s/{{ site.latest_engine_api_version }}/$latest_engine_api_version/g" ${SOURCE}/_data/toc.yaml
6868

6969
# Engine stable
7070
ENGINE_SVN_BRANCH="branches/18.09"

docker-for-mac/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ running different versions.
2929

3030
```shell
3131
$ docker --version
32-
Docker version {{ site.docker_ce_stable_version }}, build c97c6d6
32+
Docker version {{ site.docker_ce_version }}, build c97c6d6
3333

3434
$ docker-compose --version
3535
docker-compose version {{ site.compose_version }}, build 8dd22a9

edge/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords: engine, edge, installation
66

77
> **The Docker CE Edge channel is deprecated in favor of nightly channel. See [About Docker CE](/install/index.md) for details on how to access the nightly channel.**
88
9-
The latest Docker CE Stable release is **[{{ site.docker_ce_stable_version }}](/engine/release-notes/)**.
9+
The latest Docker CE Stable release is **[{{ site.docker_ce_version }}](/engine/release-notes/)**.
1010

1111
Stable releases are not published to the Edge channel, so Linux repository users
1212
should subscribe to the Stable channels.

engine/api/latest/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
---
33
<html>
4-
<head><meta http-equiv="refresh" content="0;url=/engine/api/v{{ site.latest_stable_docker_engine_api_version }}/" /></head>
4+
<head><meta http-equiv="refresh" content="0;url=/engine/api/v{{ site.latest_engine_api_version }}/" /></head>
55
<body><p>Redirecting to the latest version of the Docker Engine API reference.</body>
66
</html>

install/linux/docker-ce/centos.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ from the repository.
160160
```bash
161161
$ yum list docker-ce --showduplicates | sort -r
162162
163-
docker-ce.x86_64 {{ site.docker_ce_stable_version }}.0.ce-1.el7.centos docker-ce-stable
163+
docker-ce.x86_64 {{ site.docker_ce_version }}.0.ce-1.el7.centos docker-ce-stable
164164
```
165165

166166
The list returned depends on which repositories are enabled, and is specific

install/linux/docker-ce/fedora.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ from the repository.
149149
```bash
150150
$ dnf list docker-ce --showduplicates | sort -r
151151
152-
docker-ce.x86_64 {{ site.docker_ce_stable_version }}.0.fc26 docker-ce-stable
152+
docker-ce.x86_64 {{ site.docker_ce_version }}.0.fc26 docker-ce-stable
153153
```
154154

155155
The list returned depends on which repositories are enabled, and is specific

storage/storagedriver/select-storage-driver.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Docker supports the following storage drivers:
5050
driver is poor, and is not generally recommended for production use.
5151

5252
Docker's source code defines the selection order. You can see the order at
53-
[the source code for Docker Engine - Community {{ site.docker_ce_stable_version }}](https://github.com/docker/docker-ce/blob/{{ site.docker_ce_stable_version }}/components/engine/daemon/graphdriver/driver_linux.go#L50)
53+
[the source code for Docker Engine - Community {{ site.docker_ce_version }}](https://github.com/docker/docker-ce/blob/{{ site.docker_ce_version }}/components/engine/daemon/graphdriver/driver_linux.go#L50)
5454

5555
If you run a different version of Docker, you can use the branch selector at the top of the file viewer to choose a different branch.
5656
{: id="storage-driver-order" }

test.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,14 @@ example, [swarm](glossary.md?term=swarm)).
268268
## Site-wide variables
269269
270270
Look in the top-level `_config.yml` for site-wide variables, such as
271-
`site.docker_ce_stable_version`. To use them, use Liquid like:
271+
`site.docker_ce_version`. To use them, use Liquid like:
272272
273273
```liquid
274-
{% raw %}{{ site.docker_ce_stable_version }}{% endraw %}
274+
{% raw %}{{ site.docker_ce_version }}{% endraw %}
275275
```
276276
277-
The current value of `site.docker_ce_stable_version` is
278-
{{ site.docker_ce_stable_version }}.
277+
The current value of `site.docker_ce_version` is
278+
{{ site.docker_ce_version }}.
279279
280280
## Mixing Markdown and HTML
281281

0 commit comments

Comments
 (0)