Skip to content

Commit

Permalink
docs: add ignore to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ltabis committed Apr 18, 2024
1 parent b9ab5ba commit b9361a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ mod my_module {
pub fn add(a: rhai::INT, b: rhai::INT) -> rhai::INT {
a + b
}

/// Use the following directive to not generate documentation:
///
/// # rhai-autodocs:ignore
#[rhai_fn(global)]
pub fn dont_care() {
println!("nope");
}
}

// 2. Generate the docs with autodocs. This library can be imported as a build dependency into your build script.
Expand Down

0 comments on commit b9361a2

Please sign in to comment.