Commit Graph

156 Commits

Author SHA1 Message Date
David Karlsson 013f8376fc chore: update create-issue links
Signed-off-by: David Karlsson <david.karlsson@docker.com>
2023-05-18 14:52:03 +02:00
David Karlsson dcee6604b8
Revert "embed feedback widget" 2023-05-04 12:57:14 +02:00
David Karlsson f50497d008 embed feedback widget
Signed-off-by: David Karlsson <david.karlsson@docker.com>
2023-05-04 12:41:01 +02:00
Allie Sadler ad4c5dd659
image zoom modal (#15975)
* POC image modal

* standardize image size

* fixes

* fixes

* reverse an earlier commit and tweak further

* experiments

* more playing around

* simplify

* David's magic

* david fix

* test

* test 2

* Final fix

* now the final fix
2023-01-10 17:01:21 +00:00
Allie Sadler aee82aaea2
s fix (#16130) 2022-11-09 16:40:30 +00:00
CrazyMax 6d431bde49
display reading time and tags in toc nav
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-11-07 15:19:25 +01:00
CrazyMax 69f422b662
jekyll: remove polldaddy
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-25 21:16:56 +02:00
David Karlsson 8f77e55567 rename master -> main 2022-10-19 15:52:14 +02:00
Bjorn Neergaard 7dce95be84
fix: incorrect default edit URL
This was broken by #15774.
2022-09-29 15:05:30 -06:00
CrazyMax 561118ec5b
rename docs repository
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-09-29 11:07:53 +02:00
Allie Sadler 33d555137d
ENGDOCS-967 (#15552) 2022-09-02 14:13:00 +01:00
CrazyMax 09c9f51bcf
remove most of absolute urls
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-08-03 11:50:33 +02:00
CrazyMax 863b227043
jekyll: keep paragraph of reading time and use include
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-27 13:02:49 +02:00
CrazyMax c2ee94c1b8
jekyll: automatic issue url generation for remote resources
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-10 10:04:39 +02:00
Sebastiaan van Stijn a7c4a6bdd9
move "page generated" comment to prevent rendering in quirks mode
As described on https://en.wikipedia.org/wiki/Quirks_mode, a comment
preceding the `<!DOCTYPE html>` can cause some browsers to render the
HTML in quirks mode.

This patch moves the comment after the doctype to prevent this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-03-31 23:26:35 +02: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 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 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 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
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 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
Sebastiaan van Stijn aae9bfc276
Rename / remove edge-related variables
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-01-14 22:44:58 +01:00
Maria Bermudez aaca9b83b5 Revert "Revert "Merge branch 'master' of github.com:docker/docs-private into test-branch-2""
This reverts commit 4c95d161ca.
2018-08-29 19:01:03 -07:00
Maria Bermudez 4c95d161ca Revert "Merge branch 'master' of github.com:docker/docs-private into test-branch-2"
This reverts commit af5f2fcc38, reversing
changes made to 338b690d26.
2018-08-29 18:37:44 -07:00
Maria Bermudez 840c167055 Revert "Revert "Merge branch 'master' of github.com:docker/docs-private into test-branch-2""
This reverts commit 14080c18bd.
2018-08-29 18:36:03 -07:00
Maria Bermudez 14080c18bd Revert "Merge branch 'master' of github.com:docker/docs-private into test-branch-2"
This reverts commit af5f2fcc38, reversing
changes made to 338b690d26.
2018-08-29 14:47:31 -07:00
Marit van Dijk 908c627a1b Fix support links (#6775) 2018-05-30 08:32:33 -07:00
Joao Fernandes bd57cc0801 Remove assignee from issues 2018-05-03 16:54:33 -07:00
John Mulhausen eb7ce953d6 Remove 'In the UI' et al, and Google Surveys (#531) 2018-04-16 13:31:24 -07:00
Joao Fernandes 689688432e Fix layout when using --- 2018-04-16 13:31:24 -07:00
Joao Fernandes 9a4fdf9476 /enterprise -> /ee (#415)
* /enterprise -> /ee
* /datacenter/dtr/2.5 -> /ee/dtr/
* /datacenter/ucp/3.0->/ee/ucp
* Fix configs
* Fix broken images
* Remove unused images for DTR
* Remove unused images for UCP
* Add a few redirects to avoid breaking beta exercises
2018-04-16 13:31:24 -07:00
Joao Fernandes 2f841e021d Fix tab layout missing content 2018-04-16 13:31:24 -07:00
Jim Galasyn 9a3c1f26d8 WIP join nodes topics (#293)
Also fix build breakage with `enterprise_advisory` capture.
2018-04-16 13:31:24 -07:00
John Mulhausen b09c7d3d2b Templatev2 (#286)
* Fix for build break

* Revert "v2 of templates"

* New commit, old changes
2018-04-16 13:31:24 -07:00
Joao Fernandes 983ce02e3c Revert "Short headings, API tabs, whole topic=EE, page.intro, right-nav fix"
This reverts commit 42af4621737f26fe520d2d499e43446f5d9d2df5.
2018-04-16 13:31:24 -07:00
John Mulhausen da5bfa91cb Short headings, API tabs, whole topic=EE, page.intro, right-nav fix 2018-04-16 13:31:24 -07:00