Commit Graph

485 Commits

Author SHA1 Message Date
Sebastiaan van Stijn 8bf577084a
Move polldaddy script to an include, and update some options
- use a config-variable for the ID
- exclude the script if no ID is set
- set default font and font-color

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-14 15:33:16 +02:00
Sebastiaan van Stijn 017b8823a2
js: remove unused js/menu.js
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-14 15:00:19 +02:00
Sebastiaan van Stijn 1c2a455346
styles.css: include code-highlight styles in main css document
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-14 14:39:53 +02:00
Sebastiaan van Stijn 4a7d872cbe
_includes/body-landing.html: unwrap elements
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-14 14:39:50 +02:00
Usha Mandya e827815c56
Merge pull request #11534 from thaJeztah/accessibility_fixes
Small (accessibility-)fixes
2020-10-13 12:11:44 +01:00
Sebastiaan van Stijn b3104f4eb9
_includes/head.html: add "theme-color" meta
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-13 12:29:07 +02:00
Sebastiaan van Stijn 5923b22117
Add image dimensions to logos and video-icons
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-13 12:28:48 +02:00
Sebastiaan van Stijn b6b666a41f
accessibility: add label to search input
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-13 12:15:25 +02:00
Sebastiaan van Stijn c119ed174e
Use https:// for links and examples
Found these using `http://[^lp10\*`<][^o]` (to exclude "localhost" and IP-addresses)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-13 12:09:11 +02:00
Sebastiaan van Stijn bec50329b9
Fix links not having a trailing /
This avoids resulting in a redirect to the URL with /

Found these using `href="[^#][^#"]+[^/]"`

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-13 12:06:06 +02:00
Usha Mandya a17a06c6a1
Merge pull request #11527 from thaJeztah/nosticky
Remove "position: sticky" stickyfill polyfill
2020-10-12 12:58:38 +01:00
Usha Mandya c923e95684
Merge pull request #11526 from thaJeztah/noopener
Add "rel=noopener" and fix canonical links
2020-10-12 12:58:12 +01:00
Aswin Vayiravan 79cf7e841e
added label for menu toggle 2020-10-12 13:40:00 +02:00
Sebastiaan van Stijn eaf40137dc
Remove "position: sticky" stickyfill polyfill
From the script's repository: https://github.com/wilddeer/stickyfill

> Stickyfill did a good job while the browsers were implementing position: sticky
> support. You can now safely use stickies without a polyfill, all modern browsers
> support them natively:
>
> https://caniuse.com/?search=position%3Asticky

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-12 13:27:15 +02:00
Sebastiaan van Stijn cafd5a9943
Use full URLs for canonical links
Canonical links are expected to be full URLs, not relative.

For this to work, the Dockerfile had to be updated, because we're stripping
the domain-name from links ("<a href..."), but the script currently also included
"<link rel='canonical' .." tags.

With the change, canonical links are left alone;

These hrefs will be replaced

    echo '<a class=foo href="https://docs.docker.com/foo">hello</a>' | sed -e 's#\(<a[^>]* href="\)https://docs.docker.com/#\1/#g'
    # <a class=foo href="/foo">hello</a>
    echo '<a href="https://docs.docker.com/foo">hello</a>' | sed -e 's#\(<a[^>]* href="\)https://docs.docker.com/#\1/#g'
    # <a href="/foo">hello</a>

But, for example, this one is left alone

    echo '<link rel="canonical" href="https://docs.docker.com/foo/bar" />' | sed -e 's#\(<a[^>]* href="?\)https://docs.docker.com/#\1/#g'
    # <link rel="canonical" href="https://docs.docker.com/foo/bar" />

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-12 13:09:32 +02:00
Sebastiaan van Stijn 393d3f6566
Add rel="noopener" to external links
See https://web.dev/external-anchors-use-rel-noopener/

Using noopener, as that addresses the security issue. "noreferer" blocks
the REFERER header, which may still be useful for some target URLs.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-12 13:09:30 +02:00
Sebastiaan van Stijn fc407908d7
_includes/head.html: fix escaping in generated descriptions and titles
Commits 7e5352f1ae and e72030d2c6
added automatic generation of page titles and descriptions from the page's content
if no front-matter metadata was present.

Some pages may include characters that should be escaped before using as a HTML
attribute or JSON field.

This patch adds escaping to those texts to prevent the HTML or JSON from being
invalid.

Before this:

HTML meta:

    <meta name="description" content="docker build: The `docker build` command builds Docker images from a Dockerfile and a " context".="" a="" build's="" context="" is="" the="" set="" of="" files="" located="" in="" specified="" `path`="" or="" `url`...."="" />

JSON meta:

    <script type="application/ld+json">{"@context":"http://schema.org","@type":"WebPage","headline":"docker build","description":"docker build: The `docker build` command builds Docker images from a Dockerfile and a "context". A build's context is the set of files located in the specified `PATH` or `URL`....","url":"https://docs.docker.com/engine/reference/commandline/build/"}</script>

After this:

HTML meta:

    <meta name="description" content="docker build: The `docker build` command builds Docker images from a Dockerfile and a &quot;context&quot;. A build&#39;s context is the set of files located in the specified `PATH` or `URL`...." />

JSON meta:

    <script type="application/ld+json">{"@context":"http://schema.org","@type":"WebPage","headline":"docker build","description":"docker build: The `docker build` command builds Docker images from a Dockerfile and a \"context\". A build's context is the set of files located in the specified `PATH` or `URL`....","url":"https://docs.docker.com/engine/reference/commandline/build/"}</script>

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 16:16:42 +02:00
Sebastiaan van Stijn 0a03930c6d
Cleanup whitespace in templates
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:12:05 +02:00
Sebastiaan van Stijn 389f5d14d0
Move 404 script to 404 page, and improve link-generation
If we found a "referer" address, the body now contains the URL from which we
arrived at the 404. For example;

https://github.com/docker/docker.github.io/issues/new?title=404+at+%2Fnosuchpage&body=I+found+a+broken+link+%3A+https%3A%2F%2Fdocs.docker.com%2Fnosuchpage%0AI+arrived+on+this+page+through%3A+https%3A%2F%2Fdocs.docker.com%2Fregistry%2Fspec%2Fapi%2F

Which opens a new ticket:

    Title: 404 at /nosuchpage

    I found a broken link : https://docs.docker.com/nosuchpage
    I arrived on this page through: https://docs.docker.com/registry/spec/api/

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:12:03 +02:00
Sebastiaan van Stijn 2993c55840
move ratings script to end of body, remove inline styles
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:12:01 +02:00
Sebastiaan van Stijn 9eb0b0c472
Remove "enterprise moved" include
All locations that included this file also have a redirect set, so the
include was never visible.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:11:51 +02:00
Sebastiaan van Stijn 7130372001
Remove highlight.js script as it was not enabled
Code is already highlighted through "rouge", so enabling highlight.js
only resulted in code being parsed/highlighted _twice_.

Highlight.js was only included on pages that explicitly enabled it,
which was not used anywhere, so removing it should not have an effect.

This patch removes highlight.js. There are some stylesheets that
can be removed and/or merged after this, but leaving that separate.

The github.css stylesheet is already included in the style.css
stylesheet (from the _scss directory), so was redundant.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:10:48 +02:00
Sebastiaan van Stijn 0be6bf621d
body: remove condition for homepage, as it uses its own template
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:10:36 +02:00
Sebastiaan van Stijn fc89461836
Generate top-navigation instead of using javascript
This makes sure the top-navigation works, even if javascript
is disabled.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-08 16:38:55 +02:00
Sebastiaan van Stijn e861522ab9
landing page: generate header links from toc
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-08 16:36:32 +02:00
Sebastiaan van Stijn d58eacad79
_includes: remove unsed header-landing.html
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-08 16:36:29 +02:00
Sebastiaan van Stijn db85f983a3
Remove glossary left-overs
Looks like removing the front-matter in f17ebae568
caused the output to break, resulting in a JavaScript error.

Looking at where this file was used, it turned out that it was loaded, but
never used anywhere.

This commit removes the remaining parts of the glossary search functionality,
which was not used.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-08 15:50:05 +02:00
Sebastiaan van Stijn 141c1a50b8
_includes: remove unused ng-cloak styles
These styles seem to be used when using AngularJS;
https://docs.angularjs.org/api/ng/directive/ngCloak

> The ngCloak directive is used to prevent the AngularJS html template from
> being briefly displayed by the browser in its raw (uncompiled) form while
> your application is loading. Use this directive to avoid the undesirable
> flicker effect caused by the html template display.

And I don't think that's used anywhere currently, so let's remove

Also removing some other ng-xx classes

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-08 10:26:22 +02:00
Sebastiaan van Stijn e72030d2c6
_includes/head.html: generate description for reference pages
This generates a description for pages that don't have one;

- for referene docs, try the "long" description
- fallback to "short" description
- finally, fallback to taking the first 30 words from the
  page content

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-07 11:23:23 +02:00
Usha Mandya db0589b8cd
Merge pull request #11488 from thaJeztah/fix_missing_titles
Generate page title from H1 if needed
2020-10-07 10:12:02 +01:00
Usha Mandya 4dc252c910
Merge pull request #11487 from thaJeztah/edit_url_fix
use jekyll configuration for edit urls
2020-10-07 09:49:41 +01:00
Sebastiaan van Stijn 7e5352f1ae
_includes/head.html: generate page title from H1 if needed
This is a very hacky way to extract the page title from pages that do not have
front-matter yaml, but have a H1 header. We need to take (id-) attributes into
account, so some hacking is needed.

Note that there's also a Jekyll plugin that features similar functionality, but
it requires additional dependencies, and we only have a few pages that need
this, so for now using this hack.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-06 23:57:51 +02:00
Sebastiaan van Stijn 6329797e25
_includes/head.html: reorder / regroup metadata fields
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-06 23:57:49 +02:00
Sebastiaan van Stijn 8063e9f3fc
_includes/head.html: remove duplicate "noindex", and cleanup whitespace
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-06 23:57:46 +02:00
Sebastiaan van Stijn dbd88b7395
use jekyll configuration for edit urls
The existing implementation was broken, and didn't override
the URLs (due to leading, trailing slashes the paths were not
matched).

Instead of using the custom "not_edited_here.yaml", set the
edit-url as front-matter variable through the _config.yml

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-06 23:10:28 +02:00
Usha Mandya 2db0acc938 Update the Guides tab navigation
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2020-10-06 18:58:11 +01:00
Sebastiaan van Stijn 3823de5c50
engine/security: move landing page
Generated yaml files were temporarily updated manually (pending
pull request to be merged in the upstream docker/cli repository)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-09-29 21:27:08 +02:00
Usha Mandya 245a3305d0 - Add a link to Node.js section from part-1 for cross-reference
- Updated the Guides tab to open to the Get started page, instead of Develop with Docker.
- Moved Docker overview as the first entry in the Guides toc.
2020-09-24 22:44:16 +01:00
Usha Mandya 1c8cdff1e4 Fix extra space in Compose file ref 2020-09-03 15:19:55 +01:00
zachvalenta 54af1d319d add code formatting for compose-var-sub 2020-08-25 17:09:57 -04:00
Usha Mandya 0a4442a399 Update the homepage banner 2020-08-21 14:12:41 +01:00
Usha Mandya 7caa5c08f5 Remove troubleshooting and stack overflow section 2020-08-11 18:01:07 +01:00
Sebastiaan van Stijn 796e6330df
Fix top-navigation color, and some small cleanups
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-07-24 14:59:36 +02:00
Usha Mandya df563bd043 Remove links to deprecated articles 2020-07-16 15:18:01 +01:00
Usha Mandya 806ca82285 Replace Cube links with YouTube urls 2020-07-15 13:47:18 +01:00
Usha Mandya a25c0d64ee Add Docker ACI integration banner 2020-07-13 12:29:00 +01:00
Usha Mandya db627f2271
Merge pull request #11109 from thaJeztah/fix_missing_toc_toggle
Fix missing "toggle" for right-hand navigation
2020-07-09 11:51:30 +01:00
Sebastiaan van Stijn fbfd22c08f
Fix missing "toggle" for right-hand navigation
This button was accidentally removed when the archives were
removed in ba85012f47

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-07-09 12:28:18 +02:00
Usha Mandya 27e2978923 Add a new banner for Docker Hub signups 2020-07-09 10:37:58 +01:00
Usha Mandya 31f665f35d Add note on Docker Hub 2020-07-03 15:25:54 +01:00
Sebastiaan van Stijn 2b4833a355
Remove some references to enterprise products
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-07-02 23:36:48 +02:00
Arko Dasgupta 2f9559c7b2
Remove the duplicated words in the landing page (#11073)
Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com>
2020-07-02 09:31:15 +01:00
Sebastiaan van Stijn ba85012f47
Remove scripts and assets related to archives
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-06-24 13:25:58 +02:00
Sebastiaan van Stijn 3bada40222
Merge pull request #10911 from jdrouet/archive-with-css
handle archive feature toggling with css
2020-06-09 15:38:39 +02:00
Sebastiaan van Stijn 84e48eed74
Merge pull request #10967 from jdrouet/docker-con-videos
landing-page: display docker-con videos section
2020-06-09 15:37:18 +02:00
Srayan Gangopadhyay 78a3ca24c4
Add question marks in footer (#10968) 2020-06-08 17:17:36 +01:00
Usha Mandya 9a6b81a998
Minor style edits 2020-06-08 17:02:01 +01:00
Jérémie Drouet d12154311b landing-page: display docker-con videos section
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-06-08 14:28:35 +02:00
Srayan Gangopadhyay 9e0757c4c5
Fix typos on homepage 2020-06-08 13:22:26 +01:00
Sebastiaan van Stijn bd7e4a32c2
Remove left-over includes for docker-for-cloud
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-06-02 09:47:20 +02:00
Sebastiaan van Stijn 7c2455a30c
Remove enterprise from config, and remove ee-specific includes
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-06-02 09:47:18 +02:00
Usha Mandya c193354d33 Replace the DockerCon banner 2020-05-29 13:31:31 +01:00
Sebastiaan van Stijn 6644b817bd
Merge pull request #10891 from jdrouet/landing-search
implement autocomplete on landing page
2020-05-29 11:19:05 +02:00
Usha Mandya 1dd0546e7c
Reordered PWD and Community resources (#10918) 2020-05-28 16:35:26 +01:00
Jérémie Drouet c06813538c implement autocomplete on landing page
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-28 10:31:16 +02:00
Jérémie Drouet 20ff61b942 handle archive feature toggling with css
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-28 10:13:31 +02:00
Usha Mandya 4f86032173
Merge pull request #10847 from jdrouet/menu-mobile
move navbar content to burger menu on mobile
2020-05-27 08:45:26 +01:00
Sebastiaan van Stijn 48f6315d2d
Remove old (tracking) scripts, css, and includes (#10892)
These scripts and files were added a long time ago, and are now
either replaced with something else, or managed through GTM.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-26 17:48:11 +01:00
Jérémie Drouet b1df140e4f add docker icon on mobile
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-26 11:12:22 +02:00
Jérémie Drouet dbe4953982 move navbar to burger menu on mobile
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-26 11:12:22 +02:00
Usha Mandya cf76d7a865
Merge pull request #10837 from thaJeztah/landing_page_touch_ups
Landing page touch-ups
2020-05-26 07:40:09 +01:00
Stefan Scherer d1c269e58d
Cleanup WSL tech preview links
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
2020-05-24 21:35:31 +02:00
Sebastiaan van Stijn 9d446cfd44
Landing page: apply icons using CSS, and remove duplication
This patch:

- removes the icon images from the landing page, instead setting
  them as a background-image through css.
- replaced the "community-resources" and "play-with-docker" styles
  in favor of a conditional style (based on cards linking to external
  websites)
- changes the minimal height of cards for mobile devices (there was
  a big amount of padding on the smallest size, which didn't add
  much value).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-20 17:07:37 +02:00
Sebastiaan van Stijn a7806de7c5
Desktop: fix some broken links/images and minor markdown-touch up
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-20 11:54:08 +02:00
Sebastiaan van Stijn 987312af65
Move Google Analytics to include, and prepare for making it optional
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-20 10:20:40 +02:00
Usha Mandya 61c61825e5
Surface Develop with Docker (#10831) 2020-05-18 18:21:31 +01:00
Sebastiaan van Stijn 6d7de2ee14
landing page: set focus on search field
Also updates the CSS to reduce the "focus highlight" applied
by browsers.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-15 16:36:33 +02:00
Usha Mandya c776c63161 Fix html link tags 2020-05-14 19:07:05 +01:00
Usha Mandya 7902bf370a
Merge pull request #10759 from jdrouet/landing-page
landing page: change style
2020-05-14 18:40:24 +01:00
Jérémie Drouet 1a2f44ab05 landing-page: fix hero style
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-13 14:41:40 +02:00
Jérémie Drouet 5d4adea27e landing-page: adding target blank to links
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-13 14:41:35 +02:00
Jérémie Drouet 3ce6514066 landing-page: add link to docker-con register page
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-12 15:22:39 +02:00
Jérémie Drouet 46b913997b landing-page: add dockercon banner
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-12 14:47:27 +02:00
Jérémie Drouet c03af2d11f landing-page: make header responsive
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-12 14:11:39 +02:00
Jérémie Drouet 0b4f71340a landing-page: fix font size
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-12 10:19:07 +02:00
Jérémie Drouet feb57a7eea landing page: change style
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-05 16:53:50 +02:00
Sebastiaan van Stijn 9cab4195c0
Replace JavaScript link fix with custom plugin
This replaces the JavaScript link fix script with a custom plugin,
based on the jekyll-relative-link plugin, and modified so that it
can be used as Liquid "filter".

While it borrows from the jekyll-relative-links plugin, it takes some shortcuts;

- We use the code from jekyll-relative-links plugin to find/extract
  links on the page
- Relative links are converted to absolute links, using the path of
  the markdown source file that's passed as argument
- After conversion to an absolute link, we strip the ".md" extension;
  no attempt is made to resolve the file that's linked to. This is
  different from the jekyll-relative-links plugin, which _does_ resolve
  the linked file. This functionality could be added in future by
  someone who has more experience with Ruby.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-28 11:20:51 +02:00
Sebastiaan van Stijn 80c6d185e3
Only fix links on reference pages
The JavaScript "link fix" looks to be only needed for pages
where Markdown is included, and which contain relative links.

Now that we modified all local includes to use absolute links,
the only location where links are not properly generated, is
in the reference documentation.

If broken links are found elsewhere in the website, those links
are legitimately broken, and should be fixed in the markdown
source, not fixed-up afterwards.

This patch moves the javascript to the cli.md include, so that
the script is only run on the reference pages instead of on every
page.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:27:57 +02:00
Sebastiaan van Stijn f39a74da3d
_includes/cli.md: fix generated links to other commands
When generating HTML pages, Jekyll will generate a directory named after the name
of the Markdown file, and generate an index.html file inside that directory. For
example, for a markdown file named /foo/bar/mypage.md, Jekyll generates a HTML
file named  /foo/bar/mypage/index.html.

This means that all links relative to mypage.md, and expect those links to be
relative to the /foo/bar/ directory, will actually end up being relative to
/foo/bar/mypage/.

Unfortunately, Jekyll / Liquid does not have a variable that holds the parent
directory of the _markdown_ file, so we have to generate it by taking `page.path`
(which holds the absolute path of the markdownfile), and remove the filename from
that path.

After generating that path, we prepend that path to URLs linking to related
commands (parent commands and child commands), as all reference files are in the
same path.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:00:48 +02:00
Sebastiaan van Stijn f48a3adc2d
_includes/cli.md: remove "validation" for include-file
Removing this "check" because it made the template difficult to
read, and duilding the docs won't fail if these values are missing.

If a page is empty, it's probably fast to find why anyway.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:00:46 +02:00
Sebastiaan van Stijn 3ad5c44957
_includes/cli.md: some small changes in template:
- remove some redundant whitespace
- use "remove_first" instead of "replace", because the strings to
  replace should only occur once.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:00:44 +02:00
Sebastiaan van Stijn 66d0e68df6
_includes: use absolute links instead of links to Markdown files
We cannot use relative links in includes, because:

- The jekyll-relative-links, is not called on includes, so
  markdown-links are rendered as-is.
- These files are included in various locations on the website;
  because of that, it's not possible to compose a relative link
  to other Markdown files, so we're falling back to using absolute
  URLs, relative to the root of the website.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:00:42 +02:00
Sebastiaan van Stijn c48c971d93
_includes/cli.md: remove special case for base command
The base command didn't have a description in the YAML file.
Instead of fixing that up in the template, this was fixed upstream.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-20 15:38:52 +02:00
Usha Mandya 4d3068792f Add link to CLI experimental features 2020-04-17 17:12:46 +01:00
Sven Dowideit d5e7a26efe
Mention Docker 19.03 and its compose file version - and add max_replicas_per_node
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2020-04-17 08:49:33 +02:00
Sebastiaan van Stijn 9b74d86033
remove unused images
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-12 22:35:10 +02:00
Sebastiaan van Stijn f8347be151
Merge pull request #10579 from usha-mandya/docs-footer-patch
Update Docs header and footer
2020-04-08 08:40:20 +02:00
Usha Mandya 7b804135dd Update Docs header and footer
- Updated the footer to remove redundant links and ensured the entries and layout match the footer displayed on the WWW site.
- Removed Sign in and Create Docker ID option from the header
- Removed Get Support from the right-nav
2020-04-08 07:26:52 +01:00
Sebastiaan van Stijn d813acb6e1
Engine: reorganize install topic
- Move getting started overview to /get-started/overview/
- Move engine installation files under /engine/
- Redirect the top-level /install/ to /get-docker/
- Updated titles in left-hand navigation
- Added back some pages to the navigation that were
  currently not included.
- Reduce some steps in the installation pages
- Move devicemapper prerequisites to the devicemapper
  storage driver page.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-06 10:50:28 +02:00
Justin Cormack e9a37e9cce
Consistently use docker-desktop for Kube context (#10560)
This changed and both work, but this is the correct form.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2020-04-02 12:15:22 +01:00
Sebastiaan van Stijn 331554f4b3
Fix various links that were generating URLs with `.md` (#10548)
* Fix incorrect links in compose section

there's a bug causing wrapped links to not work, and replacing
some links to point to the .md file, so that IDE's can check
if the anchors are valid. Also replaced some links to point
to their new location.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* engine/swarm: update links

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* Fix various broken links

There's a bug in the "jekyll-relative-links" plugin that causes wrapped links to not work.
Also replacing some links to point to the .md file, so that IDE's can check if the anchors
are valid. Finally, replaced some links to point to their new locations, so that users don't
get redirected..

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-01 12:05:50 +01:00
Ashwin Maroli 02d087c63a
Stash computed data in a Liquid variable (#10462)
* Stash computed data in a variable

To avoid computing `site.data[include.datafolder][include.datafile]` multiple times for the same context.

* Revert change to hard-tab whitespace
2020-03-20 13:08:19 +00:00
Sebastiaan van Stijn 4cf38f289f
compose-file: reformat and rewrite some tips/notes
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-17 13:59:44 +01:00
Sebastiaan van Stijn e6a8b7e5e4
Reference: add anchor-link to examples section
Some commands provide a long list of options, which may
"hide" the examples section. To help discoverability, add
an anchor-link to the examples section (if present).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-16 13:13:51 +01:00
Sebastiaan van Stijn 252db13907
Reference: move "extended description" above "options"
The extended description usually provides a good introduction to
the command, which likely is useful to read before heading to
more detailed information (such as "which options does this command
have")

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-16 13:09:27 +01:00
Sebastiaan van Stijn a76cbe68a7
Reference: move "parent", "child", and "related" commands to bottom
For some commands, the list of "related" commands is lenghty, therefore
hiding the extended description and examples below the fold, which is
not ideal.

This patch moves the "parent command", "child commands", and "related
commands" sections to the bottom of the page.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-16 13:06:48 +01:00
Sebastiaan van Stijn 73c9649967
Move "Glossary" from top nav to "reference" section
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-03-14 09:10:38 +01:00
Usha Mandya a4ae7f1b7c
Updated Desktop URLs and removed CSP and EE URLs (#10322)
* Updated Desktop URLs and removed CSP and EE URLs

* Added Get started and removed Get docker URLs
2020-02-20 14:37:40 +00:00
Usha Mandya f2c116d7df
update the experimental blurb (#10185) 2020-01-23 17:54:07 +00:00
KoryKessel-Docker 2f1fc8b27e Edited the ee_dropdown.html file (the header for the UCP/DTR previous version note) for clarity. 2020-01-09 16:09:45 +01:00
KoryKessel-Docker 2a909ce470 Fix of indenting (attempt 2). 2019-12-20 14:32:09 +01:00
KoryKessel-Docker 282169ffe3 Fix of indenting (attempt 1). 2019-12-20 14:22:48 +01:00
KoryKessel-Docker 67f49c63d2 Appending of Enterprise Label to all Docker Enterprise md topic files. 2019-12-18 15:53:23 +01:00
Sebastiaan van Stijn 8b53965237 Commandline reference: add note to "enterprise only" subcommands (#10008)
* Update CLI template for "enterprise-only" commands/plugins

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* reference: mark "assemble" subcommands as enterprise-only

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* reference: mark "cluster" subcommands as enterprise-only

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* reference: mark "registry" subcommands as enterprise-only

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* reference: mark "template" subcommands as enterprise-only

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-12-11 15:48:32 +00:00
Adrian Plata f8eb071cec Get started migration (#9967)
* moving ee install instructions (#1449)

Signed-off-by: Adrian Plata <adrian.plata@docker.com>

* adding additional links

Signed-off-by: Adrian Plata <adrian.plata@docker.com>

* deleting overview page and adding a redirect
2019-12-09 17:22:15 +00:00
Adrian Plata faa3e53933
Adding links to further documentation (#9940)
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-11-25 14:31:24 -08:00
Rupak Ganguly 7f62d13fce
Add the missing instruction to add the repo
This change is only affecting the RHEL 7/8 portion of the doc.
2019-11-19 15:07:02 -05:00
Akihiro Suda 40747fcca7 Add "Run the Docker daemon as a non-root user (Rootless mode)"
Add "Run the Docker daemon as a non-root user (Rootless mode)":
`engine/security/rootless.md`

The content is based on https://github.com/moby/moby/blob/master/docs/rootless.md

`rootless.md` in `moby/moby` will be replaced of the link to
the `docs.docker.com` page compiled from `rootless.md` in this repo.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-11-15 16:02:08 +09:00
Adrian Plata bcc19e3ae8 RHEL 8 instructions for Nov patch
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-11-13 14:32:11 -08:00
lena-larionova 54ca6a523b
Fixing glossary links (#9812)
Signed-off-by: Lena Larionova <lena.larionova@docker.com>
2019-11-06 11:00:13 -08:00
Adrian Plata e7360acc79
Pointing to new experimental information section (#9569)
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-10-03 13:08:12 -07:00
Alastair Smith 2da010d9f8 change global header wording 2019-10-02 14:44:10 -05:00
Alastair Smith bd48da763b re-organize + fix global header 2019-10-01 08:51:34 -05:00
Adrian Plata fc4d3872c4 Emphasizing no production environments for experimental features
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-09-27 10:50:22 -07:00
Usha Mandya a556c61cf7
Merge pull request #9351 from thaJeztah/remove_library_samples
Remove library samples, and link to Docker Hub instead
2019-09-23 16:21:57 +02:00
Adrian Plata 972d1929bd simply the experimental box
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-09-18 14:35:33 -07:00
Adrian Plata f2f0dca20c
Fixing broken sidebar (#9425)
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-09-10 13:24:40 -07:00
Sebastiaan van Stijn 5d85af7501
Change library references navigation to an anchor
Don't generate a TOC

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-09-04 00:25:28 +02:00
Sebastiaan van Stijn b34cf6b8c1
Use canonical URL for library images
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-09-04 00:03:13 +02:00
Sebastiaan van Stijn f9f5f8dacd
Convert library samples to stubs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-09-03 23:03:51 +02:00
Usha Mandya dabe90cbe8
Updating Docker for Win Community content (#9256)
Docker Desktop (Windows) content updates
2019-08-21 15:58:12 +01:00
usha-mandya 6cd4119eef Adding info on enabling exp features via the UI 2019-07-25 14:25:17 +01:00
Dawn W 6672390680 removed Platform from table heading per feedback from Jim Armstrong (#1224) 2019-06-18 14:36:03 +02:00
paigehargrave 6a6a150262
Minor wording update 2019-06-15 07:41:32 -04:00
David Yu 4bdfc4b29d
Updates from Marketing 2019-06-14 14:31:21 -07:00
Maria Bermudez 01277a66f5
Merge branch 'amberjack' into master 2019-06-13 19:10:41 +01:00
Sebastiaan van Stijn 05d91b90f3
Add Engine API version v1.40
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-06-13 15:05:36 +02:00
Dawn W Docker b49e6e0d5c branding changes for EE
Signed-off-by: Dawn W Docker <dawn.wood@users.noreply.github.com>
2019-06-12 08:32:09 -07:00
David Yu a6a94ee951 docker_ee.md
docker_ee.md creation
2019-06-11 15:06:35 -07:00
Dawn W Docker bf298eba11 branding changes
Signed-off-by: Dawn W Docker <dawn.wood@users.noreply.github.com>
2019-06-11 15:05:20 -07:00
Dawn W Docker ceac042836 branding changes
Signed-off-by: Dawn W Docker <dawn.wood@users.noreply.github.com>
2019-06-11 14:30:52 -07:00
Dawn W Docker 814fd93b21 testing 2019-06-11 14:04:10 -07:00
Maria Bermudez 9d7f9646d9
Add experimental note on Registry CLI reference pages (#1132) 2019-06-10 13:50:06 -07:00
usha-mandya cacf25bfe1 DESKTOP-1299 Adding experimental blurb in the Desktop community docs 2019-06-10 15:09:21 +01:00
Olly P c2d80906a1 Removed Build from Compose on Docker Desktop Example (#8750)
* Removed Build from Compose.yaml on Compose to Kubernetes

* Removed build from UCP example too
2019-06-07 08:04:36 -07:00
Takuya N 83b50cd30d Remove Google+ and change linkt to GitHub org (#8747)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-05-09 23:51:38 -07:00
John Reese 0331c00bf5 Add missing bold markup 2019-03-22 21:52:40 -04:00
Sebastiaan van Stijn 38423908d4
Add highlighting to compose-file reference
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-19 12:14:44 +01:00
Maria Bermudez ccbb5e2630 Revert "Revert "Merge branch 'master' of github.com:docker/docker.github.io""
This reverts commit 4b5fbbdbc9.
2019-03-08 10:53:00 -08:00
Paige Hargrave 4b5fbbdbc9 Revert "Merge branch 'master' of github.com:docker/docker.github.io"
This reverts commit 813f45bdd7, reversing
changes made to 2349c62566.
2019-02-28 13:11:13 -05:00