remove math special no image (#2361)

This commit is contained in:
Jess Frazelle
2024-05-15 13:09:38 -07:00
committed by GitHub
parent 164b675a86
commit f1cd2355c6
24 changed files with 105 additions and 60 deletions

View File

@ -1077,10 +1077,9 @@ layout: manual
fn_docs.push_str(example);
fn_docs.push_str("\n```\n\n");
// If this is not a "math" or "utilities" function,
// If this is not a "utilities" function,
// we should add the image to the docs.
if !internal_fn.tags().contains(&"math".to_string())
&& !internal_fn.tags().contains(&"utilities".to_string())
if !internal_fn.tags().contains(&"utilities".to_string())
&& !internal_fn.tags().contains(&"norun".to_string())
{
// Get the path to this specific rust file.
@ -1101,6 +1100,8 @@ layout: manual
fn_name = "segment_length".to_string();
} else if fn_name.starts_with("seg_") {
fn_name = fn_name.replace("seg_", "segment_");
} else if fn_name.starts_with("log_") {
fn_name = fn_name.replace("log_", "log");
}
// Read the image file and encode as base64.