- Notifications
You must be signed in to change notification settings - Fork54
FIX: improve redirect page#57
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -41,14 +41,13 @@ | ||
toignore = tocheck + [pathlib.Path(p) for p in [ | ||
"mpl-probscale", | ||
"_webpageutils", | ||
"xkcd", | ||
"_sitemap", | ||
"robots.txt", | ||
"CNAME", | ||
".git", | ||
"index.html", # this is being hard coded now! | ||
]] | ||
logging.basicConfig(level=logging.DEBUG) | ||
@@ -67,18 +66,38 @@ def findlast(fname, tocheck): | ||
return None | ||
html_redirect = """ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
Comment on lines +70 to +71 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Use html5 doctype, no need for xhtml at this point. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. thats just from the top of matplotlib.org?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Not in the current theme:https://github.com/matplotlib/mpl-brochure-site/blob/gh-pages/index.html | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>Matplotlib: Python plotting — Page Moved</title> | ||
<link rel="stylesheet" href="_static/mpl.css" type="text/css" /> | ||
<link rel="shortcut icon" href="_static/favicon.ico"/> | ||
<link rel="stylesheet" href="_static/custom.css" type="text/css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=0.9, | ||
maximum-scale=0.9" /> | ||
<meta http-equiv="refresh" content="0;url={newurl}" /> | ||
<link rel="canonical" href="https://matplotlib.org/{canonical}" /> | ||
</head> | ||
<body> | ||
<div style="background-color: white; text-align: left; | ||
padding: 10px 10px 15px 15px; position: relative;"> | ||
<a href="#"> | ||
<img src="_static/logo2_compressed.svg" height="125px" border="0" | ||
alt="matplotlib"/> | ||
</a> | ||
<div class="body" role="main"> | ||
<div class="section"> | ||
<h1> | ||
This page been moved <a href="{newurl}">here</a>! | ||
</h1> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
""" | ||