Skip to content

Commit 888f737

Browse files
committed
Include custom 404 page for cf pages
1 parent 9f5cdb1 commit 888f737

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/docs-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Build docs
3131
run: ./gradlew --no-daemon dokkaHtml dokkaJavadoc
3232
- name: Copy javadoc subfolder
33-
run: mv build/dokka/javadoc build/dokka/html/
33+
run: mv build/dokka/javadoc build/dokka/html/ && cp dokka/includes/404.html build/dokka/html/
3434
- uses: actions/upload-pages-artifact@v1
3535
with:
3636
path: 'build/dokka/html'

.github/workflows/docs-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Build docs
3232
run: ./gradlew --no-daemon dokkaHtml dokkaJavadoc
3333
- name: Copy javadoc subfolder
34-
run: mv build/dokka/javadoc build/dokka/html/
34+
run: mv build/dokka/javadoc build/dokka/html/ && cp dokka/includes/404.html build/dokka/html/
3535
- uses: actions/upload-pages-artifact@v1
3636
with:
3737
path: 'build/dokka/html'

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Build docs
2828
run: ./gradlew --no-daemon dokkaHtml dokkaJavadoc
2929
- name: Copy javadoc subfolder
30-
run: mv build/dokka/javadoc build/dokka/html/
30+
run: mv build/dokka/javadoc build/dokka/html/ && cp dokka/includes/404.html build/dokka/html/
3131
- uses: actions/upload-pages-artifact@v1
3232
with:
3333
path: 'build/dokka/html'

dokka/includes/404.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport"
6+
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8+
<title>Lavalink client documentation</title>
9+
</head>
10+
<body>
11+
<h1>Page not found</h1>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)