Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs custom 404 page and reword messaging #8415

Merged
merged 1 commit into from
Sep 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>