Engine API: use filename instead of custom api_version property

Now that the files are named `<api-version>.md`, we no longer need
to set a custom `api_version` property; instead we can use the filename
to detect what API version we're rendering.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2020-02-24 14:25:37 +01:00
parent 6dab89c905
commit 770cdeecb1
17 changed files with 2 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Docker Engine API {{ page.api_version }} Reference</title>
<title>Docker Engine API {{ page.name | replace: '.md' }} Reference</title>
<!-- needed for adaptive design -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Reference for the API served by Docker Engine." />
@@ -14,7 +14,7 @@
<link rel="stylesheet" type="text/css" href="/css/api-reference.css" />
</head>
<body>
<redoc spec-url="/engine/api/{{ page.api_version }}.yaml" hide-hostname="true" suppress-warnings="true" lazy-rendering></redoc>
<redoc spec-url="/engine/api/{{ page.name | replace: '.md'}}.yaml" hide-hostname="true" suppress-warnings="true" lazy-rendering></redoc>
<script src="/js/redoc.min.js"></script>
</body>
</html>

View File

@@ -1,6 +1,5 @@
---
layout: engine-api
api_version: v1.25
redirect_from:
- /engine/reference/api/docker_remote_api_v1.25/
---

View File

@@ -1,6 +1,5 @@
---
layout: engine-api
api_version: v1.26
redirect_from:
- /engine/reference/api/docker_remote_api_v1.26/
---

View File

@@ -1,6 +1,5 @@
---
layout: engine-api
api_version: v1.27
redirect_from:
- /engine/reference/api/docker_remote_api_v1.27/
---

View File

@@ -1,6 +1,5 @@
---
layout: engine-api
api_version: v1.28
redirect_from:
- /engine/reference/api/docker_remote_api_v1.28/
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.29
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.30
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.31
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.32
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.33
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.34
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.35
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.36
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.37
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.38
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.39
---

View File

@@ -1,4 +1,3 @@
---
layout: engine-api
api_version: v1.40
---