Commit Graph

174 Commits

Author SHA1 Message Date
Usha Mandya 2dbc67066e Add homepage banner for volume management
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-09-30 16:18:01 +01:00
Usha Mandya 4e120ba5f7
Rename Product Manuals to Manuals (#13498)
* Rename Product Manuals to Manuals

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Update _includes/breadcrumbs.html

Co-authored-by: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>

Co-authored-by: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
2021-09-10 14:28:31 +01:00
Usha Mandya e8e7f7f05d First draft for subscription changes
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-08-31 14:35:20 +00:00
Sebastiaan van Stijn 3631769979
_scss: cleanup navigation styles
This fixes various inconsistencies between the landing page and the
other pages by sharing more styles between both:

- fix homepage using a different color for the active tab
- fix homepage not having "hover" styles for the top navigation

I addition, this:

- fixes unwanted whitespace in the hamburger-menu on mobile
- fixes "active" menu item not being highlighted on mobile
- fixes left-side aligning of left-hand menu on desktop

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-17 14:00:46 +02:00
Sebastiaan van Stijn 346a066b68
Desktop: move "docker-for-windows" to "desktop/windows"
Unifying all content related to Docker Desktop to be withing the desktop
directory.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-14 13:28:15 +02:00
Sebastiaan van Stijn d0bf342e52
Desktop: move "docker-for-mac" to "desktop/mac"
Unifying all content related to Docker Desktop to be withing the desktop
directory.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-14 13:07:41 +02:00
Josh Newman c5b1a6ad00
Add access tokens API documentation (#13174)
* feat(hub-api): Add access tokens API documentation.

Also added improvements including
- improvements to slugs (ids) using standard swagger naming conventions
- rate limiting section
- minor verbiage changes to existing docs for clarity

* chore(hub-api): Update PAT description on scopes

* ref(hub-api): Remove periods

* feat(hub-api): Add suggested note on limits

* ref(hub-api): Improve styling for hub-api docs

* chore(hub-api): Update verbiage

* Update docker-hub/api/latest.yaml

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>

* chore(hub-api): Update access token verbiage

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-07-20 12:26:43 -05:00
Usha Mandya 972b7a90a4 Add Dev Environmentsbanner
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-06-24 18:36:42 +01:00
Usha Mandya 90da02aab6
Add DockerCon wrap-up banner to the homepage (#12928)
* Add DockerCon wrapup banner to the homepage

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Update the footer

Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-06-01 18:27:09 +01:00
Sebastiaan van Stijn 8e75f5bcb1
Reorganize toc
- move "docker desktop" to the top of the "product manuals" section,
  and make it the default page
- Add a "Reference documentation" menu item to the TOC, which will be
  the "active" menu item when opening the reference section.
- move the "Samples home" menu item outside of the "samples" sub-menu,
  and add it at the top level as "samples overview", so that the "index"
  highlights that menu-item without opening the "samples" sub-menu. The
  "samples" submenu contains various samples which are a bit outdated,
  so probably shouldn't be _that_ prominent when opening the page.
  Moving the menu item also makes the "breadcrumb" navigation more
  natural (moving from a sample to "samples overview" navigates back
  to the "top" of the samples section.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-05-21 11:32:06 +02:00
Usha Mandya 0fb44446dc Add DockerCon21 banner on the homepage
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-05-17 10:36:26 +01:00
Usha Mandya e056bc66c2 Add Apple silicon banner to the homepage
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-04-14 19:08:45 +01:00
Usha Mandya cc04246252 Consolidate Kube deploy docs
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-03-24 15:10:35 +00:00
Usha Mandya f38f8a9d77
Merge pull request #12390 from zappy-shu/HUB-5154-images-api
Add initial image dashboard API docs
2021-03-22 18:29:26 +00:00
Nick Adcock a3ddf6766b update hub api descriptions and path
Signed-off-by: Nick Adcock <nick.adcock@docker.com>
2021-03-18 09:37:28 +00:00
Usha Mandya b755b5c65a Add a new icon for language-specific guides
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-03-01 23:53:35 +00:00
Nick Adcock 82ed0e463d Add initial image dashboard API docs
Signed-off-by: Nick Adcock <nick.adcock@docker.com>
2021-02-25 15:29:56 +00:00
Usha Mandya 4b59234515
Add combined faqs for Mac and Windows (#12153)
* Add combined faqs for Mac and Windows

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Update links from other pages to faqs

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Address review comments part-1

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Address feedback  on connecting to remote engine API

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Address Stephen's review comments

Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-22 16:17:53 +00:00
Usha Mandya ba395bed07 Add reference architecture docs
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-18 12:07:55 +00:00
Sebastiaan van Stijn 3301f89fc3
Replace some getting-started links
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-01-05 12:49:25 +01:00
Usha Mandya 78421ba741
Update docs for Desktop 3.0.0 release (#11859)
* Update docs for Desktop 3.0.0 release

* Update release notes

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Update release notes and Settings screenshots

* Add download URLs and a new known issue

Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2020-12-10 15:01:02 +00:00
Sebastiaan van Stijn 24d79e61d6
_layouts/landing.html: fix "<head>" that got lost in transition
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-23 14:03:30 +02:00
Sebastiaan van Stijn d883621145
inline "body-landing" and "body" into layout
This reduces the time to build, as Jekyll doesn't have to
render the body, then copy it into the layout:

Production before:   62 seconds
Production after:    46 seconds
Development before:  35 seconds
Development after:   33 seconds

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-23 13:35:18 +02:00
Sebastiaan van Stijn 87f40087d8
remove docs.html layout before renaming / move body
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-23 13:35:16 +02:00
Sebastiaan van Stijn 3c869fb0e3
_layouts: fix redirect layout for external URLs
This allows `redirect_to` redirects to external websites;

    curl localhost:4000/samples/library/adminer/
    <!DOCTYPE html>
    <html lang="en-US">
      <meta charset="utf-8">
      <title>Redirecting&hellip;</title>
      <link rel="canonical" href="https://hub.docker.com/_/adminer/"><meta http-equiv="refresh" content="0; url=https://hub.docker.com/_/adminer/">
      <meta name="robots" content="noindex">
      <h1>Redirecting&hellip;</h1>
      <a href="https://hub.docker.com/_/adminer/">Click here if you are not redirected.</a>
      <script>location="https://hub.docker.com/_/adminer/"</script>
    </html>

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-21 15:09:14 +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 0a03930c6d
Cleanup whitespace in templates
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:12:05 +02: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 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
Sebastiaan van Stijn 3353d60062
engine-api: create unique description for each API version
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-06 16:22:35 +02:00
Sebastiaan van Stijn c3e55377e4
Make the latest API reference page the canonical URL
We host multiple versions of the API reference. While older versions of the
API are still supported by the latest engine release, users should generally
refer to the latest version of the API.

This patch adds a "canonical" meta-tag to the API reference pages, and points
it to the latest version of the API.

Note that there's also a /engine/api/latest/ page, but I didn't pick that
URL, because it's a redirect to `/engine/api/v<current>/`, which Google
probably doesn't like.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-09-25 18:13:51 +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 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 75bdec14ee
_layouts/docs.html: remove baseURL and fix link-fixing script
The base href caused browsers to produce incorrect URLs for
anchor links on various pages, for example, pointing to:

    https://docs-test.docker.com/engine/reference/#foreground

Instead of

    https://docs-test.docker.com/engine/reference/run/#foreground

Also cleaning up and fixing the JavaScript workaround for links
in include-files;

- only fix up links in the main content, not in other parts
  of the page
- don't fix up anchor links, absolute links, or links that don't
  contain `.md`: for those we can assume they were generated
  correctly, and if not, those are links that should be fixed in
  the markdown source, not fixed afterwards.
- document the function for future readers.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:27:55 +02:00
Sebastiaan van Stijn 5a26b5f3cd
_layouts/docs.html: use spaces for indentation
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:27:50 +02:00
Sebastiaan van Stijn 8c3ea575e4
_layouts/docs.html: some formatting and minor cleanup
- remove some stray empty lines
- put liquid code that was before the opening HTML inside a HTML
  comment, to prevent IDE's from marking it as invalid HTML
- fix some indentation
- fix some minor linting issues

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:26:23 +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
Ashwin Maroli 1d9c7fd691 Optimize keywords-list logic in docs layout 2020-04-05 17:05:54 +05:30
Sebastiaan van Stijn 770cdeecb1
Engine API: use filename instead of custom api_version property
Now that the files are named `<api-version>.md`, we no longer need
to set a custom `api_version` property; instead we can use the filename
to detect what API version we're rendering.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-02-25 14:00:57 +01:00
Sebastiaan van Stijn 6dab89c905
Engine API: unify APIs: fetch from single branch
The upstream (moby/moby) repository is unifying all API swagger files
to be in the release branch. With that change, it is no longer needed
to fetch each version of the API separately, and instead all versions
can be fetched at once.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-02-25 14:00:55 +01:00
Sebastiaan van Stijn f757d8a14b
Engine API: use template for API reference pages
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-02-24 13:58:30 +01:00
Sebastiaan van Stijn 5276ea1d9f
Re-enable "anchorlink" script
This allows for easier sharing of links to specific sections
on a page.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-02-13 12:48:12 +01:00
Adrian Plata efbc9a280d Tag link change
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-11-12 11:14:56 -08:00
Adrian Plata fd2a24ab45
Merge pull request #1378 from docker/master
Syncing branch with master
2019-10-14 10:27:08 -07:00
Adrian Plata bb26f1570a Adding a metadata check for reading time.
Signed-off-by: Adrian Plata <adrian.plata@docker.com>
2019-10-04 14:42:44 -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
Erik Hedin c87fab9e0c Update to standardize Segment in to Google Tag Manager. 2019-09-09 18:36:34 +00:00
Sebastiaan van Stijn d78dc92278
Remove javascripts related to generating library collection navigation
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-09-04 00:37:42 +02:00