actually make import samples run (#2398)

* actually make import samples run

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* format

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-05-19 17:02:25 -07:00
committed by GitHub
parent acd52ab350
commit 20838bf618
16 changed files with 412 additions and 386 deletions

View File

@ -1058,9 +1058,7 @@ layout: manual
fn_docs.push_str("\n```\n\n");
// If the function has tags, we should add them to the docs.
let mut tags = internal_fn.tags().clone();
// Remove norun tag from the list of tags.
tags.retain(|tag| tag != "norun");
let tags = internal_fn.tags().clone();
if !tags.is_empty() {
fn_docs.push_str("### Tags\n\n");
for tag in tags {
@ -1079,9 +1077,7 @@ layout: manual
// If this is not a "utilities" function,
// we should add the image to the docs.
if !internal_fn.tags().contains(&"utilities".to_string())
&& !internal_fn.tags().contains(&"norun".to_string())
{
if !internal_fn.tags().contains(&"utilities".to_string()) {
// Get the path to this specific rust file.
let dir = env!("CARGO_MANIFEST_DIR");