Build dev docs like docs.rs (#12223)
# Objective - docs are not built the same on the http://dev-docs.bevyengine.org than on http://docs.rs/bevy/ ## Solution - Use nightly like docs.rs - Scrape examples
This commit is contained in:
parent
94ff123d7f
commit
6b212a8bd4
8
.github/workflows/docs.yml
vendored
8
.github/workflows/docs.yml
vendored
@ -10,6 +10,7 @@ on:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUSTDOCFLAGS: --html-in-header header.html
|
||||
NIGHTLY_TOOLCHAIN: nightly
|
||||
|
||||
# Sets the permissions to allow deploying to Github pages.
|
||||
permissions:
|
||||
@ -32,8 +33,9 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
|
||||
|
||||
- name: Install alsa and udev
|
||||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
||||
@ -47,7 +49,7 @@ jobs:
|
||||
echo "<meta name=\"robots\" content=\"noindex\">" > header.html
|
||||
|
||||
- name: Build docs
|
||||
run: cargo doc --all-features --no-deps -p bevy
|
||||
run: cargo doc --all-features --no-deps -p bevy -Zunstable-options -Zrustdoc-scrape-examples
|
||||
|
||||
# This adds the following:
|
||||
# - A top level redirect to the bevy crate documentation
|
||||
|
Loading…
Reference in New Issue
Block a user