Skip to content

Commit e5f20d3

Browse files
ci: Add build-doc job to test building docs. (#227)
1 parent 01933c8 commit e5f20d3

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/parry-ci-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,15 @@ jobs:
6767
run: xargo build --verbose --no-default-features --features required-features --target=x86_64-unknown-linux-gnu;
6868
- name: build thumbv7em-none-eabihf
6969
run: xargo build --verbose --no-default-features --features required-features --target=thumbv7em-none-eabihf;
70+
build-doc:
71+
runs-on: ubuntu-latest
72+
env:
73+
RUSTDOCFLAGS: -D warnings
74+
steps:
75+
- uses: actions/checkout@v4
76+
- name: install stable Rust
77+
uses: dtolnay/rust-toolchain@master
78+
with:
79+
toolchain: stable
80+
- name: cargo doc
81+
run: cargo doc --workspace --features bytemuck-serialize,serde-serialize,rkyv-serialize,parallel --no-deps --document-private-items

src/shape/shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ pub trait Shape: RayCast + PointQuery + DowncastSync {
347347
///
348348
/// In some cases, the resulting shape doesn’t have the same type as Self. For example,
349349
/// if a non-uniform scale is provided and Self as a [`Ball`], then the result will be discretized
350-
/// (based on the `num_subdivisions` parameter) as a [`ConvexPolyhedron`] (in 3D) or [`ConvexPolygon`] (in 2D).
350+
/// (based on the `num_subdivisions` parameter) as a `ConvexPolyhedron` (in 3D) or `ConvexPolygon` (in 2D).
351351
#[cfg(feature = "std")]
352352
fn scale_dyn(&self, scale: &Vector<Real>, num_subdivisions: u32) -> Option<Box<dyn Shape>>;
353353

0 commit comments

Comments
 (0)