diff options
| author | pml68 <contact@pml68.dev> | 2025-03-31 23:32:17 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-03-31 23:32:17 +0200 |
| commit | 18462cef6ae1702493ea5d3c6215cb800f9eb2e5 (patch) | |
| tree | 5852682c9e02e64cf5deb439410c615effa04260 | |
| parent | feat: add docs workflow (diff) | |
| download | iced_dialog-18462cef6ae1702493ea5d3c6215cb800f9eb2e5.tar.gz | |
docs: add CNAME, redirect file
| -rw-r--r-- | .github/workflows/doc.yml | 11 | ||||
| -rw-r--r-- | docs/redirect.html | 13 |
2 files changed, 22 insertions, 2 deletions
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 3008d44..d588468 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -6,6 +6,9 @@ on: - master workflow_dispatch: +permissions: + contents: write + jobs: pages: runs-on: ubuntu-latest @@ -13,10 +16,14 @@ jobs: - name: Checkout sources uses: actions/checkout@v4 - name: Build documentation - run: cargo doc --verbose + run: cargo doc --verbose --no-deps + - name: Write CNAME file + run: echo 'iced-dialog.pml68.dev' > ./target/doc/CNAME + - name: Copy redirect file as index.html + run: cp docs/redirect.html target/doc/index.html - name: Deploy documentation - uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/master' + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./target/doc diff --git a/docs/redirect.html b/docs/redirect.html new file mode 100644 index 0000000..c188fa4 --- /dev/null +++ b/docs/redirect.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Redirecting...</title> + <meta http-equiv="refresh" content="0; URL='/iced_dialog/'" /> +</head> +<body> + <p>If you are not redirected automatically, follow this <a href="/iced_dialog/">link</a>.</p> +</body> +</html> |
