File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,13 @@ jobs:
20
20
profile : minimal
21
21
components : rust-docs
22
22
- name : Build docs
23
- run : RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --workspace
24
- - name : Prepare /docs & index file
23
+ # Building locally:
24
+ # for `--enable-index-page` it is required to pass `-Z unstable-options` to rustdocs
25
+ run : RUSTDOCFLAGS="--cfg docsrs -Z unstable-options --enable-index-page" cargo +nightly doc --all-features --no-deps --workspace
26
+ - name : Prepare /docs
25
27
run : |
26
28
rm -rf ./docs
27
- echo "<meta http-equiv=\"refresh\" content=\"0; url=sentry\">" > target/doc/index.html
28
- cp -r target/doc ./docs
29
+ mv target/doc ./docs
29
30
- name : Deploy gh-pages
30
31
# if: github.ref == 'refs/heads/aip-61-adex-v5'
31
32
uses : peaceiris/actions-gh-pages@v3
You can’t perform that action at this time.
0 commit comments