1
0
Aanand Prasad 0b3561a7d5 Merge pull request #2720 from seguins/2227-improvements-logs 9 жил өмнө
..
images e6797e1166 updated Wordpress example to be easier to follow, added/updated images 9 жил өмнө
reference 0b3561a7d5 Merge pull request #2720 from seguins/2227-improvements-logs 9 жил өмнө
Dockerfile 8af0a0f85b update to description of files generated from examples, which are no longer owned by root w/new release 9 жил өмнө
Makefile 1c4c7ccfac Support a volume to the docs directory and add --watch, so docs can be refreshed. 10 жил өмнө
README.md 3fc72038c5 New navigation for 1.10 release 9 жил өмнө
completion.md 3fc72038c5 New navigation for 1.10 release 9 жил өмнө
compose-file.md 7684604830 Merge pull request #3023 from londoncalling/fix-note-3019 9 жил өмнө
django.md e6797e1166 updated Wordpress example to be easier to follow, added/updated images 9 жил өмнө
extends.md 2cd1b94dd3 Update note about build + image with extends 9 жил өмнө
faq.md 6b947ee478 Document ways to make services wait for dependencies 9 жил өмнө
gettingstarted.md e6797e1166 updated Wordpress example to be easier to follow, added/updated images 9 жил өмнө
index.md 7b03de7d01 Move command reference to overview. 9 жил өмнө
install.md c72e9b3843 Add release notes for 1.6.2 9 жил өмнө
link-env-deprecated.md cf24c36c55 Rename the old environment variable page to link environment variables. 9 жил өмнө
networking.md 520c695bf4 Update Swarm integration guide and make it an official part of the docs 9 жил өмнө
overview.md 8af0a0f85b update to description of files generated from examples, which are no longer owned by root w/new release 9 жил өмнө
production.md 520c695bf4 Update Swarm integration guide and make it an official part of the docs 9 жил өмнө
rails.md e6797e1166 updated Wordpress example to be easier to follow, added/updated images 9 жил өмнө
swarm.md 520c695bf4 Update Swarm integration guide and make it an official part of the docs 9 жил өмнө
wordpress.md e6797e1166 updated Wordpress example to be easier to follow, added/updated images 9 жил өмнө

README.md

Contributing to the Docker Compose documentation

The documentation in this directory is part of the https://docs.docker.com website. Docker uses the Hugo static generator to convert project Markdown files to a static HTML site.

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.

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.

Documentation contributing workflow

  1. Edit a Markdown file in the tree.

  2. Save your changes.

  3. Make sure you are in the docs subdirectory.

  4. Build the documentation.

    $ make docs
     ---> ffcf3f6c4e97
    Removing intermediate container a676414185e8
    Successfully built ffcf3f6c4e97
    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
    ERROR: 2015/06/13 MenuEntry's .Url is deprecated and will be removed in Hugo 0.15. Use .URL instead.
    0 of 4 drafts rendered
    0 future content
    12 pages created
    0 paginator pages created
    0 tags created
    0 categories created
    in 55 ms
    Serving pages from /docs/public
    Web Server is available at http://0.0.0.0:8000/
    Press Ctrl+C to stop
    
  5. Open the available server in your browser.

    The documentation server has the complete menu but only the Docker Compose documentation resolves. You can't access the other project docs from this localized build.

Tips on Hugo metadata and menu positioning

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

<!--[metadata]>
+++
title = "Extending services in Compose"
description = "How to use Docker Compose's extends keyword to share configuration between files and projects"
keywords = ["fig, composition, compose, docker, orchestration, documentation, docs"]
[menu.main]
parent="workw_compose"
weight=2
+++
<![end-metadata]-->

The metadata alone has this structure:

+++
title = "Extending services in Compose"
description = "How to use Docker Compose's extends keyword to share configuration between files and projects"
keywords = ["fig, composition, compose, docker, orchestration, documentation, docs"]
[menu.main]
parent="workw_compose"
weight=2
+++

The [menu.main] section refers to navigation defined in the main Docker menu. 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.

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.

Other key documentation repositories

The docker/docs-base repository contains the Hugo theme and menu configuration. If you open the Dockerfile you'll see the make docs relies on this as a base image for building the Compose documentation.

The docker/docs.docker.com repository contains build system for building the Docker documentation site. Fork this repository to build the entire documentation site.