Skip to content

Commit

Permalink
Include custom 404 page for cf pages
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Feb 1, 2024
1 parent 9f5cdb1 commit 888f737
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Build docs
run: ./gradlew --no-daemon dokkaHtml dokkaJavadoc
- name: Copy javadoc subfolder
run: mv build/dokka/javadoc build/dokka/html/
run: mv build/dokka/javadoc build/dokka/html/ && cp dokka/includes/404.html build/dokka/html/
- uses: actions/upload-pages-artifact@v1
with:
path: 'build/dokka/html'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build docs
run: ./gradlew --no-daemon dokkaHtml dokkaJavadoc
- name: Copy javadoc subfolder
run: mv build/dokka/javadoc build/dokka/html/
run: mv build/dokka/javadoc build/dokka/html/ && cp dokka/includes/404.html build/dokka/html/
- uses: actions/upload-pages-artifact@v1
with:
path: 'build/dokka/html'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Build docs
run: ./gradlew --no-daemon dokkaHtml dokkaJavadoc
- name: Copy javadoc subfolder
run: mv build/dokka/javadoc build/dokka/html/
run: mv build/dokka/javadoc build/dokka/html/ && cp dokka/includes/404.html build/dokka/html/
- uses: actions/upload-pages-artifact@v1
with:
path: 'build/dokka/html'
Expand Down
13 changes: 13 additions & 0 deletions dokka/includes/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Lavalink client documentation</title>
</head>
<body>
<h1>Page not found</h1>
</body>
</html>

0 comments on commit 888f737

Please sign in to comment.