You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Updating the Dockerfile to lastest
- Adding support for building all the public doc projects from machine
Signed-off-by: Mary Anthony <mary@docker.com>
Michael's comments
Signed-off-by: Mary Anthony <mary@docker.com>
Adding in comments from nathan
Signed-off-by: Mary Anthony <mary@docker.com>
# Contributing to the Docker Compose documentation
2
+
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.
4
+
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.
6
+
7
+
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/).
8
+
9
+
## Documentation contributing workflow
10
+
11
+
1. Edit a Markdown file in the tree.
12
+
13
+
2. Save your changes.
14
+
15
+
3. Make sure all your changes maintain an 80 character line wrap.
16
+
17
+
All check lines you've written. Don't wrap content you didn't change material.
18
+
19
+
3. Make sure you are in the `docs` subdirectory.
20
+
21
+
4. Build the documentation.
22
+
23
+
$ make docs
24
+
---> ffcf3f6c4e97
25
+
Removing intermediate container a676414185e8
26
+
Successfully built ffcf3f6c4e97
27
+
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
28
+
ERROR: 2015/06/13 MenuEntry's .Url is deprecated and will be removed in Hugo 0.15. Use .URL instead.
29
+
0 of 4 drafts rendered
30
+
0 future content
31
+
12 pages created
32
+
0 paginator pages created
33
+
0 tags created
34
+
0 categories created
35
+
in 55 ms
36
+
Serving pages from /docs/public
37
+
Web Server is available at http://0.0.0.0:8000/
38
+
Press Ctrl+C to stop
39
+
40
+
5. Open the available server in your browser.
41
+
42
+
The documentation server has the complete menu but only the Docker Compose
43
+
documentation resolves. You can't access the other project docs from this
44
+
localized build.
45
+
46
+
## Tips on Hugo metadata and menu positioning
47
+
48
+
The top of each Docker Compose documentation file contains TOML metadata. The metadata is commented out to prevent it from appearing in GitHub.
49
+
50
+
<!--[metadata]>
51
+
+++
52
+
title = "Extending services in Compose"
53
+
description = "How to use Docker Compose's extends keyword to share configuration between files and projects"
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.
73
+
74
+
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.
75
+
76
+
77
+
## Other key documentation repositories
78
+
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
+
81
+
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.
0 commit comments