Skip to content

Commit

Permalink
Merge pull request #8415 from cockroachdb/404
Browse files Browse the repository at this point in the history
Fix docs custom 404 page and reword messaging
  • Loading branch information
yzdocs authored Sep 28, 2020
2 parents 3276288 + 9300eee commit 28133d5
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 10 deletions.
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;
}
1 change: 1 addition & 0 deletions netlify/build
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ bundle install
build _config_cockroachdb.yml

cp _site/docs/_redirects _site/_redirects
cp _site/docs/404.html _site/404.html
cat _site/docs/cockroachcloud/_redirects >> _site/_redirects

# Run Algolia if building master
Expand Down
16 changes: 6 additions & 10 deletions v20.1/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>

0 comments on commit 28133d5

Please sign in to comment.