From f8e1f490a37441af18f0e2d1900d7e4b83e42e74 Mon Sep 17 00:00:00 2001 From: Jorge Rodriguez Date: Sun, 9 Nov 2014 09:33:31 -0800 Subject: [PATCH] A few tweaks to the 404 page. --- compile.py | 6 ++---- html/404.html | 10 +++++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/compile.py b/compile.py index a4dd46c2..2fe3d24c 100644 --- a/compile.py +++ b/compile.py @@ -523,10 +523,8 @@ def replace_alias(matchobj): header_for_page = header_for_page.replace("{$api_commands}", api_commands) header_for_page = header_for_page.replace("{$current_api}", latest_minor.replace(".", "")) header_for_page = header_for_page.replace("{$command_versions}", "") - header_for_page = header_for_page.replace("{$command}", "404 - Page Not Found") - - improvepage = "Think you can improve this page? Edit this page on GitHub." - footer_for_page = footer_for_page.replace("{$improvepage}", improvepage) + header_for_page = header_for_page.replace("{$command}", "Oops! Can't find ''.") + footer_for_page = footer_for_page.replace("{$improvepage}", "") fp = open("html/404.html") notfound_html = fp.read() diff --git a/html/404.html b/html/404.html index fd61b12d..cbe1aef9 100644 --- a/html/404.html +++ b/html/404.html @@ -1,16 +1,20 @@
-

The page you were looking for could not be found.

-

Try using the menu on the left, or the search at the top to find the command.

+

Try the menu on the left, or the search bar top right.

- + +