Commit Graph

38 Commits

Author SHA1 Message Date
Sebastiaan van Stijn
03d60f916a Replace "hide_from_sitemap" with "sitemap: false"
The `hide_from_sitemap` metadata variable was a custom thing we implemented
to add a "noindex" meta-header to pages and to exclude a page from the
search auto-complete.

However, pages with that option set would still be included in sitemap.xml,
resulting in search engines to visit those pages (only to discover they
should not index them).

This patch replaces the custom `hide_from_sitemap` value for `sitemap: false`,
which is a metadata variable that's defined by the "jekyll-sitemap" plugin
we use to generate the sitemap.xml;

https://github.com/jekyll/jekyll-sitemap/blob/v1.4.0/README.md#exclusions

Setting this variable will now:

- add a "noindex" metadata header to the page
- exclude the page from the sitemap.xml.
- exclude the page from /js/metadata.json (used for search autocomplete)

Also fixed an issue in the metadata.json where the `notoc` metadata was
used to exclude pages, however that variable is meant to disable the
in-page TOC (right-hand side navigation with anchor links).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-21 15:09:11 +02:00
Sebastiaan van Stijn
389f5d14d0 Move 404 script to 404 page, and improve link-generation
If we found a "referer" address, the body now contains the URL from which we
arrived at the 404. For example;

https://github.com/docker/docker.github.io/issues/new?title=404+at+%2Fnosuchpage&body=I+found+a+broken+link+%3A+https%3A%2F%2Fdocs.docker.com%2Fnosuchpage%0AI+arrived+on+this+page+through%3A+https%3A%2F%2Fdocs.docker.com%2Fregistry%2Fspec%2Fapi%2F

Which opens a new ticket:

    Title: 404 at /nosuchpage

    I found a broken link : https://docs.docker.com/nosuchpage
    I arrived on this page through: https://docs.docker.com/registry/spec/api/

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-09 01:12:03 +02:00
lena-larionova
f6980b5b48 Moved text to above the image 2019-10-21 16:13:50 -07:00
Lena Larionova
82a59d2aef Rephrasing
Signed-off-by: Lena Larionova <lena.larionova@docker.com>
2019-10-17 09:53:36 -07:00
Lena Larionova
14de9d52c5 Adjusted the 404 message to ask people to include info in their issues
Signed-off-by: Lena Larionova <lena.larionova@docker.com>
2019-10-17 09:52:33 -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
Maria Bermudez
a8256793dc Update 404.md 2019-01-08 13:21:26 -08:00
Anne Henmi
0e92912b77 Update 404.md 2019-01-08 16:18:14 -05:00
Anne Henmi
0564b5406b Added 404 from home page, fixed text. 2019-01-08 16:13:49 -05:00
Joao Fernandes
da719af9f4 Clean up 404 page 2018-04-06 16:34:34 -07:00
John Mulhausen
afb43e8816 Update 404.md 2017-12-15 16:17:04 -08:00
John Mulhausen
48d65690cc Attach anchor to fwded path in .md redirects (#5534) 2017-12-15 15:18:06 -08:00
John Mulhausen
97475c2244 Make CSV redirects work again 2017-10-13 14:24:51 -07:00
John Mulhausen
d6995e4c62 Various link/fwding fixes 2017-04-20 21:08:50 -07:00
Bill
a3a7ae1e0b replaced docker/docker with moby/moby (#2879)
* replaced docker/docker with moby/moby

* fixed incorrect name changes in release notes

* fixed mentions of moby/moby in code
2017-04-20 15:32:18 -05:00
John Mulhausen
1a6874fcb4 Merge conflict (#2662) 2017-04-07 13:10:04 -07:00
Misty Stanley-Jones
88c7b88da5 404 improvement follow-up (#2565) 2017-03-31 11:51:53 -07:00
Misty Stanley-Jones
9902ceb84c Improve the 404 page (#2550)
- Don't actually change the URL
- Give more choices about what to do in the event of a 404
2017-03-30 12:56:20 -07:00
John Mulhausen
590448c863 Removal of IP-based docs archive, now that subfolders are back 2016-11-07 14:09:22 -08:00
John Mulhausen
8b79352c77 Fix for .md URLs 2016-10-19 10:22:32 -07:00
John Mulhausen
cc2092d2fa Allows version-specific forwarding to inherit from master 2016-10-10 19:39:22 -07:00
John Mulhausen
778f02e599 Fix for substring matching in redirects 2016-10-10 18:42:17 -07:00
John Mulhausen
dc8ac3cc4e 404 fix for Safari 2016-10-07 13:11:38 -07:00
John Mulhausen
853b659f64 Update 404.md 2016-10-07 11:42:16 -07:00
John Mulhausen
fc85fcc0b9 Re-enabling redirects 2016-10-06 17:00:33 -07:00
John Mulhausen
a2ff02a96a Fix for relative-path redirects causing infinite loops 2016-10-06 17:00:03 -07:00
John Mulhausen
a01754c8e0 Fix for redirector 2016-10-06 15:13:12 -07:00
John Mulhausen
79695f49c9 Fix for char offset 2016-10-06 14:46:42 -07:00
John Mulhausen
1c85806569 Fix for archives 2016-10-06 14:36:24 -07:00
John Mulhausen
04e0a6fe28 Change to <meta refresh> redirects 2016-10-06 12:30:28 -07:00
John Mulhausen
df9aff2877 Redirect logic 2016-10-06 12:28:33 -07:00
John Mulhausen
f9dc08d830 Fix for fwding 2016-10-05 17:33:14 -07:00
John Mulhausen
e3cb726706 Adding redirects.csv support 2016-10-05 17:31:48 -07:00
John Mulhausen
9fd1c9ad27 Add forwarding for page aliases 2016-10-05 14:05:37 -07:00
John Mulhausen
7c615e83a3 All page links 2016-09-30 14:13:15 -07:00
John Mulhausen
69b61e1fb9 http only for AWS 2016-09-29 19:43:26 -07:00
John Mulhausen
b58c93bb40 Fixes for forwarding, custom 404 2016-09-29 19:39:14 -07:00
John Mulhausen
1465790db0 Custom 404, Docs Archive, Archive Forwarding 2016-09-29 18:55:02 -07:00