Commit Graph

343 Commits

Author SHA1 Message Date
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