Skip to content

Commit 2424a40

Browse files
committed
Check documentation via CI
1 parent 2a4382e commit 2424a40

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,22 @@ jobs:
115115
command: check
116116
args: --features=ld,defmt,${{ matrix.mcu }} --test ${{ matrix.test }}
117117

118+
check-doc:
119+
name: Check Documentation Build
120+
runs-on: ubuntu-latest
121+
steps:
122+
- uses: actions/checkout@v2
123+
- uses: actions-rs/toolchain@v1
124+
with:
125+
toolchain: nightly
126+
target: thumbv7em-none-eabihf
127+
override: true
128+
profile: minimal
129+
- uses: actions-rs/cargo@v1
130+
with:
131+
command: doc
132+
args: --features=stm32f303xc,rt,stm32-usbd,can
133+
118134
clippy:
119135
name: Clippy
120136
runs-on: ubuntu-latest

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
#![allow(clippy::upper_case_acronyms)]
9191
#![warn(missing_docs)]
9292
#![deny(macro_use_extern_crate)]
93+
#![cfg_attr(nightly, deny(rustdoc::broken_intra_doc_links))]
9394

9495
use cfg_if::cfg_if;
9596

0 commit comments

Comments
 (0)