Commit Graph

54212 Commits

Author SHA1 Message Date
Sebastiaan van Stijn c5f3b37ced
registry: use relative markdown links
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:43 +02:00
Sebastiaan van Stijn dc1f9f7b4d
network: use relative markdown links
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:39 +02:00
Sebastiaan van Stijn b0f9061565
config: use relative markdown links
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:36 +02:00
Sebastiaan van Stijn 777c5d23da
engine: use relative markdown links
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:32 +02:00
Sebastiaan van Stijn cef68d3fa5
docker-hub: use relative markdown links
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:25 +02:00
Sebastiaan van Stijn 087e391397
desktop: use relative markdown links
Unfortunately, the only reliable way to create internal links
is to use relative links to other Markdown files. This does
match the way links on GitHub work, but makes it harder to
create these links.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:21 +02:00
Sebastiaan van Stijn 9cd60d843e
develop: use relative markdown links
Unfortunately, the only reliable way to create internal links
is to use relative links to other Markdown files. This does
match the way links on GitHub work, but makes it harder to
create these links.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:15 +02:00
Sebastiaan van Stijn 0f3caaca6a
compose: use relative markdown links
Unfortunately, the only reliable way to create internal links
is to use relative links to other Markdown files. This does
match the way links on GitHub work, but makes it harder to
create these links.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 13:03:10 +02:00
Usha Mandya 0fffff2ec5
Merge pull request #10549 from thaJeztah/remove_base_href
Template: remove "base href" and fix javascript link-fixing
2020-04-23 11:00:27 +00:00
Sebastiaan van Stijn 342660f7cd
js/anchorlinks.js: remove URL from generated links
Now that we no longer have a baseURL, we can simplify the generated
links to just contain the anchor. This also provents issues if the
visited page already has an anchor set.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-23 10:27:59 +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 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
Usha Mandya 4b1b6826a4
Merge pull request #10659 from ajay143444/patch-2
changed check to check-in
2020-04-22 10:38:28 +00:00
Usha Mandya 72f90f5327
Merge pull request #10680 from thaJeztah/compose_build_network
compose-file: add some options that were missing in changes
2020-04-22 10:38:09 +00:00
ajay143444 2e9d7cf5aa
removed hyphen from check in 2020-04-22 15:49:50 +05:30
ajay143444 21a633cd59
changed lots more to lots of (#10664)
changed lots more to lots of
2020-04-22 09:10:24 +01:00
ajay143444 7bd9befce0
contained by changed to contained in (#10663)
contained by changed to contained in
2020-04-22 09:09:22 +01:00
Sebastiaan van Stijn 3caa2cab82
compose-file: add some options that were missing in changes
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-21 20:57:16 +02:00
Sebastiaan van Stijn 40ae8fa097
Merge pull request #10678 from thaJeztah/fix_raspbian_links
engine/install: fix rasbian links on "check" icons
2020-04-21 12:46:14 +02:00
Sebastiaan van Stijn 9f5130c83b
engine/install: fix rasbian links on "check" icons
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-21 12:13:08 +02:00
Usha Mandya 88822c685f
Merge pull request #10668 from thaJeztah/update_reference_yaml
Engine: update YAML-docs with latest version from 19.03 branch
2020-04-21 09:37:45 +00: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
Sebastiaan van Stijn 82092fe879
Update YAML docs with latest version from 19.03 branch
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-20 15:38:44 +02:00
ajay143444 60132211b6
Update develop/dev-best-practices.md
commted your suggestion

Co-Authored-By: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
2020-04-20 16:12:58 +05:30
Usha Mandya e3d089f936
Merge pull request #10661 from thaJeztah/dde_links
[ee]: update links to DDE
2020-04-20 10:28:10 +00:00
Sebastiaan van Stijn 8a008e211b
[ee]: update links to DDE
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-20 12:24:22 +02:00
Usha Mandya c44e3f2043
Merge pull request #10640 from usha-mandya/desktop-edge-2300
Release notes for Desktop Edge 2.3.0.0
2020-04-20 10:18:00 +00:00
Sebastiaan van Stijn 2dd6106e04
Merge pull request #10658 from usha-mandya/desktop-ent-docs
Move Desktop Enterprise docs
2020-04-20 12:14:44 +02:00
Usha Mandya f0304e1e0e Release notes for Desktop Edge 2.3.0.0 2020-04-20 11:01:53 +01:00
ajay143444 5f8cedaf5a
changed check to check-in
corrected line 84 by changing check to check-in
2020-04-20 15:25:10 +05:30
Usha Mandya 4c26d627ff Update DDE URLs to point to the new location 2020-04-20 08:50:47 +01:00
Usha Mandya cff03687be - Moved Desktop Enterprise topics to a new location as there are plans to set global redirects for /ee/ topics.
- Added redirects to all the topics to ensure any hard links redirect to the new location
2020-04-20 08:14:23 +01:00
Sebastiaan van Stijn 513f201df6
Merge pull request #10653 from usha-mandya/experimental-patch
Add link to CLI experimental features
2020-04-17 18:52:44 +02:00
Usha Mandya 4d3068792f Add link to CLI experimental features 2020-04-17 17:12:46 +01:00
Usha Mandya d3263b17df
Merge pull request #10651 from mat007/patch-4
Fix broken link in Docker Desktop docs
2020-04-17 14:53:36 +00:00
Mathieu Champlon d7aa0935de
Fix broken link 2020-04-17 16:41:39 +02:00
Usha Mandya a173d1b23e
Merge pull request #10273 from SvenDowideit/document-some-missing-19.03-things
Mention Docker 19.03 and its compose file version - and add max_repli…
2020-04-17 06:59:58 +00: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
Ulysses Souza dee187c282
Update docker-compose release notes for 1.25.5 (#10643)
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-04-16 11:23:23 +01:00
Young Jin Ahn c36fb459e1
update postgres initialization for compose/django.md (#10624)
* update postgres initialization for compose/django.md

* omitted code blocks with postgres ports & comments
2020-04-16 10:07:03 +01:00
Sebastiaan van Stijn f4f83607e2
Merge pull request #10638 from aaronsuns/patch-1
Update use-nfs-volumes.md
2020-04-15 16:21:30 +02:00
aaronsuns 5a0a090196
Update use-nfs-volumes.md 2020-04-15 15:40:57 +02:00
Charles Chan 3ad57b1bf3
Re-order Compose TOC (#10593)
This makes more sense since environment variables and .env file is first mentioned in the section labelled "Environment variables in Compose"
2020-04-15 07:17:47 +01:00
Usha Mandya 9d865ebcb9
Merge pull request #10623 from m-aXimilian/patch-1
Update debian.md
2020-04-14 14:07:55 +00:00