Source repo for Docker's Documentation
Go to file
Misty Stanley-Jones 32d07fe77c Merge pull request #1065 from mstanleyjones/service_create_with_content_trust
Add info about image resolution with content trust
2017-01-19 11:21:03 -08:00
.github Update PULL_REQUEST_TEMPLATE.md (#1106) 2017-01-12 18:56:55 -08:00
_data Document Docker secrets 2017-01-19 11:18:18 -08:00
_includes YAML-sourced CLI refdocs 2017-01-19 11:12:55 -08:00
_layouts Remove 'edit this page' button when there's no source file 2017-01-13 14:51:36 -08:00
apidocs cf6fc379 fix had to be made in /apidocs/cloud-api-source 2017-01-11 12:06:08 -08:00
compose Merge pull request #1146 from shin-/ipv6_networks_compose 2017-01-18 15:28:22 -08:00
cs-engine Fix searches not running on Enter, CS Release notes 2017-01-17 18:51:22 -08:00
css Update DDC screenshots, christmas cleaning 2016-12-18 20:55:47 -08:00
datacenter Rename Remote API to Engine API 2017-01-19 10:43:43 -08:00
docker-cloud Restructure navigation for Editions 2017-01-19 11:04:55 -08:00
docker-for-aws Restructure navigation for Editions 2017-01-19 11:04:55 -08:00
docker-for-azure Restructure navigation for Editions 2017-01-19 11:04:55 -08:00
docker-for-mac Restructure navigation for Editions 2017-01-19 11:04:55 -08:00
docker-for-windows Restructure navigation for Editions 2017-01-19 11:04:55 -08:00
docker-hub replaces edit from #979 2017-01-18 11:17:05 -08:00
docker-id Move accounts API docs to Docker ID section 2017-01-19 10:43:43 -08:00
docker-store Lossless Image optimization (#959) 2016-12-21 11:12:13 -08:00
engine Add info about image resolution with content trust 2017-01-19 11:21:03 -08:00
favicons Lossless Image optimization (#959) 2016-12-21 11:12:13 -08:00
fonts Convert TOML to YAML, tweaks to work with Jekyll 2016-09-29 17:16:03 -07:00
images Lossless Image optimization (#959) 2016-12-21 11:12:13 -08:00
js Fix searches not running on Enter, CS Release notes 2017-01-17 18:51:22 -08:00
kitematic Rename Remote API to Engine API 2017-01-19 10:43:43 -08:00
machine Update hyper-v.md 2017-01-15 15:48:16 +08:00
notary Fix root_ca, json structure (#1079) 2017-01-12 18:11:48 -08:00
opensource more more link link fixes fixes 2017-01-11 15:02:28 -08:00
registry Update links to DTR 2017-01-12 15:37:07 -08:00
swarm Rename Remote API to Engine API 2017-01-19 10:43:43 -08:00
tests CI - added tests for relative links [DO NOT MERGE] (#1052) 2017-01-17 13:11:15 -08:00
toolbox added Linux Kernel upgrade to relnotes 2017-01-13 13:07:46 -08:00
.NOT_EDITED_HERE.yaml Pull distribution reference docs from upstream 2016-11-28 13:51:52 -08:00
.dockerignore Optimize Dockerfile 2016-11-22 00:20:02 +01:00
.eslintignore Initial commit -f https://github.com/docker/mercury-ui 2016-09-28 14:39:20 -07:00
.gitignore Convert TOML to YAML, tweaks to work with Jekyll 2016-09-29 17:16:03 -07:00
.gitmodules using github url for yaml.v2 submodule (#1034) 2017-01-04 17:28:55 -08:00
.ruby-version Create .ruby-version 2016-11-05 13:30:21 -07:00
404.md Removal of IP-based docs archive, now that subfolders are back 2016-11-07 14:09:22 -08:00
Dockerfile YAML-sourced CLI refdocs 2017-01-19 11:12:55 -08:00
Gemfile Update Gemfile 2016-11-29 12:18:03 -08:00
Jenkinsfile tag images and containers with JOB_BASE_NAME + BUILD_NUMBER 2017-01-12 16:13:51 -08:00
LICENSE Content rendering fixes 2016-09-30 01:51:56 -07:00
MIGRATION.md Add migration details 2016-09-30 10:20:01 -07:00
README.md urls (#1074) 2017-01-10 14:56:22 -08:00
_config.yml Removes duplicate canonical urls 2017-01-12 18:11:24 -08:00
allpagelinks.md Updates allpagelinks.md to use full paths (#1143) 2017-01-17 12:53:08 -08:00
docker-compose.yml Add Compose file for development 2016-10-05 19:34:31 +01:00
docsarchive.md Correcting link format 2016-11-08 13:34:17 -08:00
googlecbe7fee896be512c.html Website verification 2016-10-10 15:55:09 -07:00
index.md CI - added tests for relative links [DO NOT MERGE] (#1052) 2017-01-17 13:11:15 -08:00
metadata.txt Initial pass of autocomplete; removal of detritus (#723) 2016-12-06 16:39:04 -08:00
redirect_from.csv Adds dynamically-generated redirect_from.csv to root for nginx consumption 2017-01-13 19:11:28 -08:00
release-notes.md fix type of keywords entry in frontmatter (in /swarm/ dir and search.md and release-notes.md) (#515) 2016-11-10 11:59:37 -08:00
robots.txt Fix wrong entry for DTR in robots.txt 2016-12-21 15:57:05 -08:00
search.md fix type of keywords entry in frontmatter (in /swarm/ dir and search.md and release-notes.md) (#515) 2016-11-10 11:59:37 -08:00
sitemap.xml Remove old datacenter docs from sitemap, robots.txt 2016-11-10 14:11:49 -08:00
sorry.md Converges titles to imperative-form, front-matter based, and sentence-case (#438) 2016-11-04 15:38:40 -07:00
test.md fixed absolute links (#883) 2016-12-14 14:10:46 -08:00
thank-you-subscribing-docker-weekly.md fix type of keywords entry in frontmatter (in /docker-store/, /toolbox/, and /kitematic/ dirs) (#499) 2016-11-09 16:37:00 -08:00

README.md

Docs @ Docker

Welcome to the repo for our documentation. This is the source for the URL served at https://docs.docker.com/.

Feel free to send us pull requests and file issues. Our docs are completely open source and we deeply appreciate contributions from our community!

Providing feedback

We really want your feedback, and we've made it easy. You can edit, rate, or file an issue at the bottom of every page on https://docs.docker.com/.

Please only file issues about the documentation in this repository. One way to think about this is that you should file a bug here if your issue is that you don't see something that should be in the docs, or you see something incorrect or confusing in the docs.

  • If your problem is a general question about how to configure or use Docker, consider asking a question on https://forums.docker.com instead.

  • If you have an idea for a new feature or behavior change in a specific aspect of Docker, or have found a bug in part of Docker, please file that issue in the project's code repository.

Contributing

We value your documentation contributions, and we want to make it as easy as possible to work in this repository. One of the first things to decide is which branch to base your work on. If you get confused, just ask and we will help. If a reviewer realizes you have based your work on the wrong branch, we'll let you know so that you can rebase it.

Note: To contribute code to Docker projects, see the Contribution guidelines.

Files not edited here

Files and directories listed in the path: keys in .NOT_EDITED_HERE.yaml are maintained in other repositories and should not be edited in this one. Pull requests against these files will be rejected. Make your edits to the files in the repository and path in the source: key in the YAML file.

Overall doc improvements

Most commits will be made against the master branch. This include:

  • Conceptual and task-based information not specific to new features
  • Restructuring / rewriting
  • Doc bug fixing
  • Typos and grammar errors

One quirk of this project is that the master branch is where the live docs are published from, so upcoming features can't be documented there. See Specific new features for a project for how to document upcoming features. These feature branches will be periodically merged with master, so don't worry about fixing typos and documentation bugs there.

Do you enjoy creating graphics? Good graphics are key to great documentation, and we especially value contributions in this area.

Specific new features for a project

Our docs cover many projects which release at different times. If, and only if, your pull request relates to a currently unreleased feature of a project, base your work on that project's vnext branch. These branches were created by cloning master and then importing a project's master branch's docs into it (at the time of the migration), in a way that preserved the commit history. When a project has a release, its vnext branch will be merged into master and your work will be visible on https://docs.docker.com/.

The following vnext branches currently exist:

Per-PR staging on GitHub

For every PR against master and all the long-lived branches, a staged version of the site is built using Netlify. If the site builds, you will see deploy/netlify — Deploy preview ready. Otherwise, you will see an error. Click Details to review the staged site or the errors that prevented it from building. Review the staged site and amend your commit if necessary. Reviewers will also check the staged site before merging the PR, to protect the integrity of https://docs.docker.com/.

Staging locally

You have three options:

  1. Clone this repo and run our staging container:

    git clone https://github.com/docker/docker.github.io.git
    cd docker.github.io
    docker-compose up
    

    If you haven't got Docker Compose installed, follow these installation instructions.

    The container runs in the background and incrementally rebuilds the site each time a file changes. You can keep your browser open to http://localhost:4000/ and refresh to see your changes. The container runs in the foreground, but you can use CTRL+C to get the command prompt back. To stop the container, issue the following command:

    docker-compose down
    
  2. Use Jekyll directly.

    a. Clone this repo by running:

    git clone https://github.com/docker/docker.github.io.git
    

    b. Install Ruby 2.3 or later as described in [Installing Ruby] (https://www.ruby-lang.org/en/documentation/installation/).

    c. Install Bundler:

    gem install bundler
    

    d. If you use Ubuntu, install packages required for the Nokogiri HTML parser:

    sudo apt-get install ruby-dev zlib1g-dev liblzma-dev
    

    e. Install Jekyll and other required dependencies:

    bundle install
    

    Note: You may have to install some packages manually.

    f. Change the directory to docker.github.io.

    g. Use the jekyll serve command to continuously build the HTML output.

    The jekyll serve process runs in the foreground, and starts a web server running on http://localhost:4000/ by default. To stop it, use CTRL+C. You can continue working in a second terminal and Jekyll will rebuild the website incrementally. Refresh the browser to preview your changes.

  3. Use Github Pages, with or without a local clone. Fork this repo in GitHub, change your fork's repository name to YOUR_GITHUB_USERNAME.github.io, and make changes to the Markdown files in your master branch. Browse to https://<YOUR_GITHUB_USERNAME>.github.io/ to preview the changes.

Important files

  • /_data/toc.yaml defines the left-hand navigation for the docs
  • /js/menu.js defines most of the docs-specific JS such as TOC generation and menu syncing
  • /css/documentation.css defines the docs-specific style rules
  • /_layouts/docs.html is the HTML template file, which defines the header and footer, and includes all the JS/CSS that serves the docs content

Relative linking for GitHub viewing

Feel free to link to ../foo.md so that the docs are readable in GitHub, but keep in mind that Jekyll templating notation {% such as this %} will render in raw text and not be processed. In general it's best to assume the docs are being read directly on https://docs.docker.com/.

Style guide

If you have questions about how to write for Docker's documentation, please see the style guide. The style guide provides guidance about grammar, syntax, formatting, styling, language, or tone. If something isn't clear in the guide, please submit an issue to let us know or submit a pull request to help us improve it.

Generate the man pages

For information on generating man pages (short for manual page), see the README.md document in the man page directory in this project.

Code and documentation copyright 2016 Docker, inc, released under the Apache 2.0 license.