Skip to content

Commit 549849b

Browse files
committed
chore(hooks): add check for outdated macro documentation
Refs: #466
1 parent 1b1866f commit 549849b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.lefthook.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ pre-commit:
1111
- name: bindings
1212
run: tools/update_bindings.sh && git diff --exit-code docsrs_bindings.rs
1313
glob: "allowed_bindings.rs"
14+
fail_text: |
15+
The `docsrs_bindings.rs` file seems to be out of date.
16+
Please check the updated bindings in `docsrs_bindings.rs` and commit the changes.
17+
- name: "lib docs"
18+
run: tools/update_lib_docs.sh && git diff --exit-code crates/macros/src/lib.rs
19+
glob: "guide/src/macros/*.md"
20+
fail_text: |
21+
The macro crates documentation seems to be out of date.
22+
Please check the updated documentation in `crates/macros/src/lib.rs` and commit the changes.

0 commit comments

Comments
 (0)