Skip to content

Commit 8468a7d

Browse files
authored
Merge pull request #4 from clash-lang/lara/index-page
Add index page with automatic redirect
2 parents ced1732 + f89a189 commit 8468a7d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/mdbook.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
- name: Build Compiler User Guide with mdBook
4444
run: mdbook build
4545
working-directory: ./compiler-user-guide
46+
47+
- name: Add Index Page
48+
run: |
49+
mkdir public
50+
cp index.html ./public/index.html
4651
- name: Upload artifact
4752
uses: actions/upload-pages-artifact@v3
4853
with:

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta http-equiv="refresh" content="1; url='https://docs.clash-lang.org/compiler-user-guide/'" />
6+
</head>
7+
8+
<body>
9+
<p>You will be redirected to the Clash Compiler User Guide soon!</p>
10+
</body>
11+
12+
</html>

0 commit comments

Comments
 (0)