Commit Graph

142 Commits

Author SHA1 Message Date
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
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
Misty Stanley-Jones 08e7715762
Make archive easier (#5231)
* Fix archive butterbar margin-top

* Add archive script and layout
2018-01-29 16:55:37 -08:00
Josh south c02ffd661d CSS fixes for version selector, removing animations, and more (#5574)
This commit squashes 21 commits. Leaving the commit messages here for posterity.

* Activate Night Mode

- Add toggle for night mode
- Update base styles

* remove font-size

* Update _night-mode.scss

* Fix first-line indenting and color differences

* Fix rescale bug

* stuff

* Add menu fixs

* Update core pallette - light/dark mode

* Toc link padding

* Remove color cycle
Remove temp.css

* update secondary nav bg

* remove paddin-top ul left nav on med viewport
2018-01-18 12:11:07 -08:00
Misty Stanley-Jones d85e0d09c3
Try to fix JS TOC logic (#5666) 2018-01-04 14:48:38 -08:00
John Mulhausen d17340d394
Speed up site rendering for authors (#5241)
* rough pass at tabs, jsonification

* GHPages 147, authoring YML, sitemap via plugin, working JS

* Update Gemfile

* Removing dk.rb artifact

* Simplifying authoring YML even more

* More YML simplification

* Remove jekyll-seo -- even more perf gain

* Glossary support

* Collections support

* Incremental off; GH Pages 172 gets build time to 50 seconds
2017-12-19 18:15:15 -08:00
John Mulhausen 7427f0ab76
Fix for not-edited-here Edit this Page link (#5530) 2017-12-15 15:02:21 -08:00
Misty Stanley-Jones 86bd21e88d
Dynamically display latest Docker EE version (#5335) 2017-11-17 15:14:02 -08:00
John Mulhausen 2d38f3db6a Template for EE Tasks alpha (#5066)
* Template for EE Tasks alpha

* Attempt to avoid includes

* Cleanup

* Cleanup
2017-10-23 18:09:12 -07:00
Misty Stanley-Jones 6aae2e4e84 Add pointer to latest API ref (#4897) 2017-10-16 15:04:24 -07:00
John Mulhausen a8677b38af Version selector for EE docs (#4952)
* Version selector for EE docs

* site...

* endif

* Fixes

* html not md

* hash v string, oops

* Path overrides
2017-10-13 15:45:52 -07:00
John Mulhausen 6d2904e7c2 Fix for upstream edits (#4949) 2017-10-13 15:25:11 -07:00
Josh south a74533976d Activate Night Mode (#4853)
* Activate Night Mode

- Add toggle for night mode
- Update base styles

* Update _night-mode.scss

* Fix first-line indenting and color differences
2017-10-09 16:42:07 -07:00
Misty Stanley-Jones f48c29eba7 Fix variable name (#4817) 2017-10-05 17:26:00 -07:00
Misty Stanley-Jones c6391e5998 Enable hide/show of elements that don't apply to archives (#4798) 2017-10-04 14:59:29 -07:00
Misty Stanley-Jones 322593c050 Add code to enable keeping archive.js in master (#4790) 2017-10-03 13:12:28 -07:00
John Mulhausen 0fb7e827f6 Update docs.html 2017-08-23 12:12:34 -07:00
John Mulhausen 1c5153b965 Convert Library references from submodule to upstream (#4102)
* Step 1 of getting to upstream-based model

* Upstream part 2

* Working front-matter generation

* Pages generating

* TOC fixes, autogen fixes, test>prod script

* Boilerplate fix

* Switch to cat, redundancy removals
2017-08-08 16:04:00 -07:00
John Mulhausen 900d669cba Revert "Fix for index.md# Links" (#4051)
* Revert "Put back delimited for YAML (#4046)"

This reverts commit fba2177277.

* Revert "copy-edits and clarify Docker for Windows purpose (#4014)"

This reverts commit df36e90b6e.

* Revert "Update index.md (#3993)"

This reverts commit 3c259d8fb1.

* Revert "Update scaling.md (#4007)"

This reverts commit b9df557deb.

* Revert "used proper css tag for accordion background color (#4016)"

This reverts commit 7ab454f1d5.

* Revert "Fix for index.md# Links (#3981)"

This reverts commit 29c11bebec.
2017-07-31 14:06:03 -07:00