Skip to content

Commit

Permalink
Add redirect to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Jun 15, 2016
1 parent 9da3bc9 commit fec2335
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions doc/_templates/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=doc/">
<script type="text/javascript">
window.location.href = "doc/"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow the <a href='doc/'>link to example</a>
</body>
</html>
4 changes: 3 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ def parse_version():
# Additional templates that should be rendered to pages, maps page names to
# template names.
#
# html_additional_pages = {}
html_additional_pages = {
'index': 'redirect.html',
}

# If false, no module index is generated.
#
Expand Down

0 comments on commit fec2335

Please sign in to comment.