Skip to content

Commit 1e7e241

Browse files
author
Mary Anthony
committed
Hugo 15 support Markdown per GitHub; Removing seds
Signed-off-by: Mary Anthony <mary@docker.com>
1 parent d181f53 commit 1e7e241

File tree

7 files changed

+70
-80
lines changed

7 files changed

+70
-80
lines changed

docs/Dockerfile

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
1-
FROM docs/base:latest
1+
FROM docs/base:hugo-github-linking
22
MAINTAINER Mary Anthony <mary@docker.com> (@moxiegirl)
33

4-
# To get the git info for this repo
5-
COPY . /src
6-
7-
COPY . /docs/content/machine/
8-
9-
RUN svn checkout https://github.com/docker/compose/trunk/docs /docs/content/compose
10-
RUN svn checkout https://github.com/docker/docker/trunk/docs /docs/content/docker
4+
RUN svn checkout https://github.com/docker/docker/trunk/docs /docs/content/engine
115
RUN svn checkout https://github.com/docker/swarm/trunk/docs /docs/content/swarm
6+
RUN svn checkout https://github.com/docker/compose/trunk/docs /docs/content/compose
127
RUN svn checkout https://github.com/docker/distribution/trunk/docs /docs/content/registry
13-
RUN svn checkout https://github.com/docker/tutorials/trunk/docs /docs/content
14-
RUN svn checkout https://github.com/docker/opensource/trunk/docs /docs/content/opensource
158
RUN svn checkout https://github.com/kitematic/kitematic/trunk/docs /docs/content/kitematic
9+
RUN svn checkout https://github.com/docker/tutorials/trunk/docs /docs/content/tutorials
10+
RUN svn checkout https://github.com/docker/opensource/trunk/docs /docs/content
11+
12+
1613

14+
# To get the git info for this repo
15+
COPY . /src
1716

18-
# Sed to process GitHub Markdown
19-
# 1-2 Remove comment code from metadata block
20-
# 3 Change ](/word to ](/project/ in links
21-
# 4 Change ](word.md) to ](/project/word)
22-
# 5 Remove .md extension from link text
23-
# 6 Change ](../ to ](/project/word)
24-
# 7 Change ](../../ to ](/project/ --> not implemented
25-
#
26-
#
27-
RUN /src/pre-process.sh /docs
17+
COPY . /docs/content/machine/

docs/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Contributing to the Docker Compose documentation
1+
# Contributing to the Docker Machine documentation
22

3-
The documentation in this directory is part of the [this documentation](docs.docker.com). Docker uses [the Hugo static generator](http://gohugo.io/overview/introduction/) to convert project Markdown files to a static HTML site.
3+
The documentation in this directory is part of the [this documentation](https://docs.docker.com). Docker uses [the Hugo static generator](http://gohugo.io/overview/introduction/) to convert project Markdown files to a static HTML site.
44

5-
You don't need to be a Hugo expert to contribute to the compose documentation. If you are familiar with Markdown, you can modify the content in the `docs` files.
5+
You don't need to be a Hugo expert to contribute to the machine documentation. If you are familiar with Markdown, you can modify the content in the `docs` files.
66

77
If you want to add a new file or change the location of the document in the menu, you do need to know a little more. If you want the detail of contributing, [use our contributor guide](http://docs.docker.com/project/make-a-contribution/).
88

@@ -27,7 +27,7 @@ If you want to add a new file or change the location of the document in the menu
2727
docker run --rm -it -e AWS_S3_BUCKET -e NOCACHE -p 8000:8000 -e DOCKERHOST "docs-base:test-tooling" hugo server --port=8000 --baseUrl=192.168.59.103 --bind=0.0.0.0
2828
ERROR: 2015/06/13 MenuEntry's .Url is deprecated and will be removed in Hugo 0.15. Use .URL instead.
2929
0 of 4 drafts rendered
30-
0 future content
30+
0 future content
3131
12 pages created
3232
0 paginator pages created
3333
0 tags created
@@ -39,43 +39,43 @@ If you want to add a new file or change the location of the document in the menu
3939

4040
5. Open the available server in your browser.
4141

42-
The documentation server has the complete menu but only the Docker Compose
42+
The documentation server has the complete menu but only the Docker machine
4343
documentation resolves. You can't access the other project docs from this
4444
localized build.
4545

4646
## Tips on Hugo metadata and menu positioning
4747

48-
The top of each Docker Compose documentation file contains TOML metadata. The metadata is commented out to prevent it from appearing in GitHub.
48+
The top of each Docker machine documentation file contains TOML metadata. The metadata is commented out to prevent it from appearing in GitHub.
4949

5050
<!--[metadata]>
5151
+++
52-
title = "Extending services in Compose"
53-
description = "How to use Docker Compose's extends keyword to share configuration between files and projects"
54-
keywords = ["fig, composition, compose, docker, orchestration, documentation, docs"]
52+
title = "Extending services in machine"
53+
description = "How to use Docker machine's extends keyword to share configuration between files and projects"
54+
keywords = ["fig, composition, machine, docker, orchestration, documentation, docs"]
5555
[menu.main]
56-
parent="smn_workw_compose"
56+
parent="smn_workw_machine"
5757
weight=2
5858
+++
5959
<![end-metadata]-->
6060

6161
The metadata alone has this structure:
6262

6363
+++
64-
title = "Extending services in Compose"
65-
description = "How to use Docker Compose's extends keyword to share configuration between files and projects"
66-
keywords = ["fig, composition, compose, docker, orchestration, documentation, docs"]
64+
title = "Extending services in machine"
65+
description = "How to use Docker machine's extends keyword to share configuration between files and projects"
66+
keywords = ["fig, composition, machine, docker, orchestration, documentation, docs"]
6767
[menu.main]
68-
parent="smn_workw_compose"
68+
parent="smn_workw_machine"
6969
weight=2
7070
+++
71-
72-
The `[menu.main]` section refers to navigation defined [in the main Docker menu](https://github.com/docker/docs-base/blob/hugo/config.toml). This metadata says *add a menu item called* Extending services in Compose *to the menu with the* `smn_workdw_compose` *identifier*. If you locate the menu in the configuration, you'll find *Create multi-container applications* is the menu title.
71+
72+
The `[menu.main]` section refers to navigation defined [in the main Docker menu](https://github.com/docker/docs-base/blob/hugo/config.toml). This metadata says *add a menu item called* Extending services in machine *to the menu with the* `smn_workdw_machine` *identifier*. If you locate the menu in the configuration, you'll find *Create multi-container applications* is the menu title.
7373

7474
You can move an article in the tree by specifying a new parent. You can shift the location of the item by changing its weight. Higher numbers are heavier and shift the item to the bottom of menu. Low or no numbers shift it up.
7575

7676

7777
## Other key documentation repositories
7878

79-
The `docker/docs-base` repository contains [the Hugo theme and menu configuration](https://github.com/docker/docs-base). If you open the `Dockerfile` you'll see the `make docs` relies on this as a base image for building the Compose documentation.
80-
79+
The `docker/docs-base` repository contains [the Hugo theme and menu configuration](https://github.com/docker/docs-base). If you open the `Dockerfile` you'll see the `make docs` relies on this as a base image for building the machine documentation.
80+
8181
The `docker/docs.docker.com` repository contains [build system for building the Docker documentation site](https://github.com/docker/docs.docker.com). Fork this repository to build the entire documentation site.

docs/drivers/index.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ identifier="smn_machine_drivers"
1111

1212
# Supported Drivers
1313

14-
* [Amazon Web Services](/drivers/aws.md)
15-
* [Microsoft Azure](/drivers/azure.md)
16-
* [Digital Ocean](/drivers/digital-ocean.md)
17-
* [Exoscale](/drivers/exoscale.md)
18-
* [Google Compute Engine](/drivers/gce.md)
19-
* [Generic](/drivers/generic.md)
20-
* [Microsoft Hyper-V](/drivers/hyper-v.md)
21-
* [OpenStack](/drivers/openstack.md)
22-
* [Rackspace](/drivers/rackspace.md)
23-
* [IBM Softlayer](/drivers/soft-layer.md)
24-
* [Oracle VirtualBox](/drivers/virtualbox.md)
25-
* [VMware vCloud Air](/drivers/vm-cloud.md)
26-
* [VMware Fusion](/drivers/vm-fusion.md)
27-
* [VMware vSphere](/drivers/vsphere.md)
14+
* [Amazon Web Services](aws.md)
15+
* [Microsoft Azure](azure.md)
16+
* [Digital Ocean](digital-ocean.md)
17+
* [Exoscale](exoscale.md)
18+
* [Google Compute Engine](gce.md)
19+
* [Generic](generic.md)
20+
* [Microsoft Hyper-V](hyper-v.md)
21+
* [OpenStack](openstack.md)
22+
* [Rackspace](rackspace.md)
23+
* [IBM Softlayer](soft-layer.md)
24+
* [Oracle VirtualBox](virtualbox.md)
25+
* [VMware vCloud Air](vm-cloud.md)
26+
* [VMware Fusion](vm-fusion.md)
27+
* [VMware vSphere](vsphere.md)

docs/drivers/os-base.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $ docker-machine create -d azure --azure-subscription-id="SUB_ID" --azure-subscr
2828
```
2929

3030
To see a list of providers and review the options available to a provider, see
31-
the [Docker Machine driver reference](/drivers).
31+
the [Docker Machine driver reference](../index.md).
3232

3333
In addition to the provider, you have the option of identifying a base operating
3434
system. It is an option because Docker Machine has defaults for both local and
@@ -54,4 +54,4 @@ provider's image flag and one of its available images. For example, to select a
5454
If you change the base image for a provider, you may also need to change
5555
the SSH user. For example, the default Red Hat AMI on EC2 expects the
5656
SSH user to be `ec2-user`, so you would have to specify this with
57-
`--amazonec2-ssh-user ec2-user`.
57+
`--amazonec2-ssh-user ec2-user`.

docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Machine on Linux or for installing Machine alone without Docker Toolbox, see the
3434

3535
Docker Machine allows you to provision Docker on virtual machines that reside either on your local system or on a cloud provider. Docker Machine creates a host on a VM and you use the Docker Engine client as needed to build images and create containers on the host.
3636

37-
To create a virtual machine, you supply Docker Machine with the name of the driver you want use. The driver represents the virtual environment. For example, on a local Linux, Mac, or Windows system the driver is typically Oracle Virtual Box. For cloud providers, Docker Machine supports drivers such as AWS, Microsoft Azure, Digital Ocean and many more. The Docker Machine reference includes a complete [list of the supported drivers](/drivers).
37+
To create a virtual machine, you supply Docker Machine with the name of the driver you want use. The driver represents the virtual environment. For example, on a local Linux, Mac, or Windows system the driver is typically Oracle Virtual Box. For cloud providers, Docker Machine supports drivers such as AWS, Microsoft Azure, Digital Ocean and many more. The Docker Machine reference includes a complete [list of the supported drivers](drivers/index.md).
3838

39-
Since Docker runs on Linux, each VM that Docker Machine provisions relies on a base operating system. For convenience, there are default base operating systems. For the Oracle Virtual Box driver, this base operating system is the `boot2docker.iso`. For drivers used to connect to cloud providers, the base operating system is Ubuntu 12.04+. You can change this default when you create a machine. The Docker Machine reference includes a complete [list of the supported operating systems](/drivers/os-base).
39+
Since Docker runs on Linux, each VM that Docker Machine provisions relies on a base operating system. For convenience, there are default base operating systems. For the Oracle Virtual Box driver, this base operating system is the `boot2docker.iso`. For drivers used to connect to cloud providers, the base operating system is Ubuntu 12.04+. You can change this default when you create a machine. The Docker Machine reference includes a complete [list of the supported operating systems](drivers/os-base.md).
4040

4141
For each machine you create, the Docker host address is the IP address of the
4242
Linux VM. This address is assigned by the `docker-machine create` subcommand.
@@ -48,7 +48,7 @@ command-line to point to that machine. The `docker-machine env <machine-name>`
4848
subcommand outputs the configuration command you should use. When you run a
4949
container on the Docker host, the container's ports map to ports on the VM.
5050

51-
For a complete list of the `docker-machine` subcommands, see the [Docker Machine subcommand reference](/reference).
51+
For a complete list of the `docker-machine` subcommands, see the [Docker Machine subcommand reference](reference/index.md).
5252

5353
## Getting help
5454

@@ -70,5 +70,5 @@ For more information and resources, please visit
7070

7171
* Install a machine on your [local system using VirtualBox](get-started.md).
7272
* Install multiple machines [on your cloud provider](get-started-cloud.md).
73-
* [Docker Machine driver reference](/drivers)
74-
* [Docker Machine subcommand reference](/reference)
73+
* [Docker Machine driver reference](drivers/index.md)
74+
* [Docker Machine subcommand reference](reference/index.md)

docs/install-machine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ Github](https://github.com/docker/machine/releases/). To install from a binary:
7575
## Where to go next
7676

7777
* [Docker Machine overview](/)
78-
* [Docker Machine driver reference](/drivers)
79-
* [Docker Machine subcommand reference](/reference)
78+
* [Docker Machine driver reference](drivers/index.md)
79+
* [Docker Machine subcommand reference](reference/index.md)

docs/reference/index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ parent="smn_machine_ref"
1212

1313
# Supported Docker Machine subcommands
1414

15-
* [active](/reference/active.md)
16-
* [config](/reference/config.md)
17-
* [create](/reference/create.md)
18-
* [env](/reference/env.md)
19-
* [help](/reference/help.md)
20-
* [inspect](/reference/inspect.md)
21-
* [ip](/reference/ip.md)
22-
* [kill](/reference/kill.md)
23-
* [ls](/reference/ls.md)
24-
* [regenerate-certs](/reference/regenerate-certs.md)
25-
* [restart](/reference/restart.md)
26-
* [rm](/reference/rm.md)
27-
* [scp](/reference/scp.md)
28-
* [ssh](/reference/ssh.md)
29-
* [start](/reference/start.md)
30-
* [status](/reference/status.md)
31-
* [stop](/reference/stop.md)
32-
* [upgrade](/reference/upgrade.md)
33-
* [url](/reference/url.md)
15+
* [active](active.md)
16+
* [config](config.md)
17+
* [create](create.md)
18+
* [env](env.md)
19+
* [help](help.md)
20+
* [inspect](inspect.md)
21+
* [ip](ip.md)
22+
* [kill](kill.md)
23+
* [ls](ls.md)
24+
* [regenerate-certs](regenerate-certs.md)
25+
* [restart](restart.md)
26+
* [rm](rm.md)
27+
* [scp](scp.md)
28+
* [ssh](ssh.md)
29+
* [start](start.md)
30+
* [status](status.md)
31+
* [stop](stop.md)
32+
* [upgrade](upgrade.md)
33+
* [url](url.md)

0 commit comments

Comments
 (0)