Skip to content

Commit 724db82

Browse files
committed
TOC: add redirect from root to new toc.html location
1 parent e43bd9d commit 724db82

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

scripts/createWebBook.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,11 @@ def returnChapterByCommonName( commonName ):
465465

466466
print "Removing", sourceTocPath, "..."
467467
os.remove(sourceTocPath)
468+
469+
#----------------------------------------------------- copy index redirect to TOC
470+
471+
destPath = os.path.join(webBookPath, "index.html")
472+
sourcePath = os.path.join("createWebBookTemplate", "index.html")
473+
474+
print "Copying", sourcePath, "to", destPath, "..."
475+
shutil.copyfile(sourcePath, destPath)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html xmlns="http://www.w3.org/1999/xhtml">
2+
<head>
3+
<title>ofBook</title>
4+
<meta http-equiv="refresh" content="0; URL='chapters/toc.html'" />
5+
</head>
6+
<body>
7+
<p>This page has moved <a href="chapters/toc.html">here</a>.</p>
8+
</body>
9+
</html>

scripts/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html xmlns="http://www.w3.org/1999/xhtml">
2+
<head>
3+
<title>The Tudors</title>
4+
<meta http-equiv="refresh" content="0;URL='chapters/toc.html'" />
5+
</head>
6+
<body>
7+
<p>This page has moved to a <a href="chapters/toc.html">here</a>.</p>
8+
</body>
9+
</html>

0 commit comments

Comments
 (0)