Skip to content

Commit

Permalink
Fix docs 404 page and reword messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
yzdocs committed Sep 16, 2020
1 parent 4c2686b commit c1a1495
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 10 deletions.
16 changes: 6 additions & 10 deletions 404.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
---
title: Page Not Found
description: "Page not found."
sitemap: false
search: exclude
related_pages: none
toc: false
contribute: false
feedback: false
---

<div class="page-not-found">
<p id="page-not-found-heading">Whoops!</p>

{%comment%}
<script type="text/javascript">
var GOOG_FIXURL_LANG = 'en';
var GOOG_FIXURL_SITE = '{{ site.url }}'
</script>
<script type="text/javascript"
src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
</script>
{%endcomment%}
<p id="page-not-found-body">We can't find the page you are looking for. You may have typed the wrong address or found a broken link.</p>
</div>
1 change: 1 addition & 0 deletions _redirects
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ layout: null
/ /docs/ 301!
/docs /docs/stable/ 301!
/docs/cockroachcloud /docs/cockroachcloud/stable/ 301!
/docs/* /docs/stable/404.html 404
/docs/v2.2/* /docs/v19.1/:splat 301!
/docs/managed/* /docs/cockroachcloud/:splat 301!
/docs/releases/ /docs/releases/index.html 200!
Expand Down
18 changes: 18 additions & 0 deletions css/customstyles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions css/customstyles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -621,3 +621,24 @@ a.accordion-toggle {
color: #497EDA;
font-weight: 900;
}

.page-not-found {
width: 60%;
margin: 0 auto;
padding: 50px;
text-align: center;
}

#page-not-found-heading {
color: #212B36;
font-size: 20px;
letter-spacing: -0.01em;
line-height: 32px;
}

#page-not-found-body {
color: #637282;
font-size: 14px;
letter-spacing: 0.1px;
line-height: 22px;
}

0 comments on commit c1a1495

Please sign in to comment.