Skip to content

Commit de79ae9

Browse files
committed
docs attempt 2
1 parent 36ac59a commit de79ae9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ on:
77
env:
88
CARGO_TERM_COLOR: always
99

10-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
11-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1210
concurrency:
1311
group: "pages"
1412
cancel-in-progress: false
1513

14+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
15+
permissions:
16+
contents: read
17+
pages: write # to deploy to Pages
18+
id-token: write # to verify the deployment originates from an appropriate source
19+
1620
jobs:
1721
build:
1822
runs-on: ubuntu-latest
@@ -28,7 +32,9 @@ jobs:
2832
id: pages
2933
uses: actions/configure-pages@v4
3034
- name: Build Docs
31-
run: cargo doc --no-deps --all-features --verbose
35+
run: |
36+
cargo doc --no-deps --all-features --verbose
37+
echo "<meta http-equiv=\"refresh\" content=\"0; url=wrapped2d\">" > target/doc/index.html
3238
- name: Upload artifact
3339
uses: actions/upload-pages-artifact@v3
3440
with:
@@ -38,12 +44,6 @@ jobs:
3844
needs: build
3945
runs-on: ubuntu-latest
4046

41-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
42-
permissions:
43-
contents: read
44-
pages: write # to deploy to Pages
45-
id-token: write # to verify the deployment originates from an appropriate source
46-
4747
# Deploy to the github-pages environment
4848
environment:
4949
name: github-pages

0 commit comments

Comments
 (0)