mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
build: Build books for multiple branches
This commit is contained in:
parent
70819bfbad
commit
409750bb36
2 changed files with 85 additions and 24 deletions
15
redirect.html
Normal file
15
redirect.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
pattern = /^https?:\/\/[\w-\.]+\.github\.io\/[\w-\.]+\/?$/
|
||||
if (pattern.test(window.location.href)) {
|
||||
window.location.href = window.location.href + "book/";
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue