Skip to content

Commit 355a6fd

Browse files
committed
docs: make index redirect to the book
1 parent 78d182e commit 355a6fd

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ mdbook serve
1919

2020
To publish the book at https://blockstream.github.io/lwk/book/
2121

22+
The site root at https://blockstream.github.io/lwk/ is handled by `docs/index.html`, which redirects to the book.
23+
2224
```
2325
git checkout gh-pages
2426
git reset --hard HEAD~10
2527
git rebase master
2628
just mdbook
2729
git add -f docs/book
2830
git commit -m "docs: add book"
29-
git push
31+
git push --force-with-lease
3032
```

docs/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>LWK Documentation</title>
6+
<meta http-equiv="refresh" content="0; url=./book/">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<link rel="canonical" href="./book/">
9+
<script>
10+
window.location.replace("./book/");
11+
</script>
12+
</head>
13+
<body>
14+
<p><a href="./book/">Go to the LWK book</a>.</p>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)