]> Untitled Git - bdk/commitdiff
ci: add new check-docs job, justfile recipe and documentation
authorshinigami-777 <chattopadhyaytamaghna@gmail.com>
Sun, 15 Mar 2026 20:48:52 +0000 (02:18 +0530)
committerLeonardo Lima <oleonardolima@users.noreply.github.com>
Thu, 26 Mar 2026 20:34:33 +0000 (17:34 -0300)
.github/workflows/cont_integration.yml
CONTRIBUTING.md
justfile

index 6c8a01ff8eb47f2ff0560ac23508395e29bf8d60..8d06dd97bf152e411a5b893aabfb5d965037b7dd 100644 (file)
@@ -166,3 +166,21 @@ jobs:
       - name: Build
         working-directory: examples/${{ matrix.example-dir }}
         run: cargo build
+
+  check-docs:
+    needs: prepare
+    name: Check documentation errors
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v6
+        with:
+          persist-credentials: false
+      - name: Install Rust toolchain
+        uses: actions-rust-lang/setup-rust-toolchain@v1
+        with:
+          toolchain: ${{ needs.prepare.outputs.rust_version }}
+          override: true
+          cache: true
+      - name: Check docs
+        run: RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps
index a9a9046531c7ddcb152cfe24060854d918961c0e..699c824cbae67110b1aee9cd0d5bce85ad94fff0 100644 (file)
@@ -87,7 +87,7 @@ Coding Conventions
 ------------------
 
 This codebase uses spaces, not tabs.
-Run `just check` to check formatting, linting, compilation and commit signing, `just fmt` to format code before commiting, and `just test` to run tests for all crates.
+Run `just check` to check formatting, linting, compilation and commit signing, `just fmt` to format code before commiting, `just test` to run tests for all crates, `just pre-push` to run the full pre-push suite before pushing changes and `just doc` to check documentation build warnings and errors for all packages.
 This is also enforced by the CI.
 All public items must be documented. We adhere to the [Rust API Guidelines](https://rust-lang.github.io/api-guidelines/about.html) with respect to documentation.
 
index b5ca94d16735ca68514f7ad0acfba3db41403750..7d96010c8d863986fa9ab9743cd90f058e791f3f 100644 (file)
--- a/justfile
+++ b/justfile
@@ -3,6 +3,7 @@ alias c := check
 alias f := fmt
 alias t := test
 alias p := pre-push
+alias d := doc
 
 _default:
   @just --list
@@ -57,3 +58,7 @@ _test-testenv:
 
 # Run pre-push suite: format, check, and test
 pre-push: fmt check test
+
+# Check documentation for all workspace packages
+doc:
+   RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps