Skip to content

Commit

Permalink
ci: Add build-doc job to test building docs. (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Jul 20, 2024
1 parent 01933c8 commit e5f20d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/parry-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ jobs:
run: xargo build --verbose --no-default-features --features required-features --target=x86_64-unknown-linux-gnu;
- name: build thumbv7em-none-eabihf
run: xargo build --verbose --no-default-features --features required-features --target=thumbv7em-none-eabihf;
build-doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: install stable Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: cargo doc
run: cargo doc --workspace --features bytemuck-serialize,serde-serialize,rkyv-serialize,parallel --no-deps --document-private-items
2 changes: 1 addition & 1 deletion src/shape/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ pub trait Shape: RayCast + PointQuery + DowncastSync {
///
/// In some cases, the resulting shape doesn’t have the same type as Self. For example,
/// if a non-uniform scale is provided and Self as a [`Ball`], then the result will be discretized
/// (based on the `num_subdivisions` parameter) as a [`ConvexPolyhedron`] (in 3D) or [`ConvexPolygon`] (in 2D).
/// (based on the `num_subdivisions` parameter) as a `ConvexPolyhedron` (in 3D) or `ConvexPolygon` (in 2D).
#[cfg(feature = "std")]
fn scale_dyn(&self, scale: &Vector<Real>, num_subdivisions: u32) -> Option<Box<dyn Shape>>;

Expand Down

0 comments on commit e5f20d3

Please sign in to comment.