Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render icon previews in doc comments #46

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ name = "dioxus-fontawesome-examples"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["preview-icons"]
preview-icons = ["dep:resvg", "dep:base64"]

[dependencies]
codegen = "0.1.3"
heck = "0.4.0"
regex = "1.6.0"
scraper = "0.13.0"
walkdir = "2.3.2"

resvg = { version = "0.41.0", optional = true }
base64 = { version = "0.22.0", optional = true }
60 changes: 59 additions & 1 deletion packages/codegen/src/create_icon_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ use scraper::ElementRef;
use scraper::Html;
use walkdir::WalkDir;

const ICON_TEMPLATE: &str = r#"#[derive(Copy, Clone, Debug, PartialEq)]
const ICON_TEMPLATE: &str = r#"{DOC_COMMENT}
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct {ICON_NAME};
impl IconShape for {ICON_NAME} {
fn view_box(&self) -> &str {
Expand Down Expand Up @@ -70,6 +71,8 @@ pub fn create_icon_file(svg_path: &str, output_path: &str, icon_prefix: &str) {
let stroke_linecap = extract_stroke_linecap(icon_prefix);
let stroke_linejoin = extract_stroke_linejoin(icon_prefix);

let doc_comment = create_doc_comment(&svg_str, &view_box).unwrap_or_default();

ICON_TEMPLATE
.replace("{ICON_NAME}", &format!("{}{}", icon_prefix, &icon_name))
.replace("{VIEW_BOX}", &view_box)
Expand All @@ -78,6 +81,7 @@ pub fn create_icon_file(svg_path: &str, output_path: &str, icon_prefix: &str) {
.replace("{FILL_COLOR}", &fill_color)
.replace("{STROKE_COLOR}", &stroke_color)
.replace("{STROKE_WIDTH}", &stroke_width)
.replace("{DOC_COMMENT}", &doc_comment)
.replace("{STROKE_LINECAP}", &stroke_linecap)
.replace("{STROKE_LINEJOIN}", &stroke_linejoin)
})
Expand Down Expand Up @@ -211,3 +215,57 @@ fn extract_svg_child_elements(elements: &[&Element], icon_prefix: &str) -> Strin
.collect::<Vec<_>>()
.join("\n")
}

fn create_doc_comment(svg_str: &str, view_box: &str) -> Option<String> {
#[cfg(feature = "render")]
{
use base64::{engine::general_purpose::STANDARD, Engine};
use resvg::{render, tiny_skia, usvg};

const TARGET_HEIGHT: u32 = 64;

// Extract the view box values
let mut view_box = view_box.split_whitespace();
let x = view_box.next()?.parse::<f32>().ok()?;
let y = view_box.next()?.parse::<f32>().ok()?;
let width = view_box.next()?.parse::<f32>().ok()?;
let height = view_box.next()?.parse::<f32>().ok()?;

// Calculate the target size while maintaining the aspect ratio
let aspect = width / height;
let output_size = (TARGET_HEIGHT as f32 * aspect, TARGET_HEIGHT as f32);

// Transform the SVG to fit the target size
let transform = tiny_skia::Transform::from_row(
output_size.0 / width,
0.0,
0.0,
output_size.1 / height,
-x,
-y,
);

// Parse the SVG
let tree = usvg::Tree::from_str(
&svg_str,
&usvg::Options::default(),
&usvg::fontdb::Database::default(),
)
.ok()?;

// Render the SVG
let mut pixmap = tiny_skia::Pixmap::new(output_size.0 as u32, output_size.1 as u32)?;
render(&tree, transform, &mut pixmap.as_mut());

// Encode the pixmap to PNG
let mut output = String::new();
STANDARD.encode_string(pixmap.encode_png().ok()?, &mut output);

// Return the Rust doc comment
// We use a PNG data URI so that rustdoc can render the image
return Some(format!("/// ![](data:image/png;base64,{output})"));
}

#[cfg(not(feature = "render"))]
None
}
1,668 changes: 1,668 additions & 0 deletions packages/lib/src/icons/bs_icons.rs

Large diffs are not rendered by default.

462 changes: 462 additions & 0 deletions packages/lib/src/icons/fa_brands_icons.rs

Large diffs are not rendered by default.

162 changes: 162 additions & 0 deletions packages/lib/src/icons/fa_regular_icons.rs

Large diffs are not rendered by default.

1,387 changes: 1,387 additions & 0 deletions packages/lib/src/icons/fa_solid_icons.rs

Large diffs are not rendered by default.

287 changes: 287 additions & 0 deletions packages/lib/src/icons/fi_icons.rs

Large diffs are not rendered by default.

266 changes: 266 additions & 0 deletions packages/lib/src/icons/go_icons.rs

Large diffs are not rendered by default.

230 changes: 230 additions & 0 deletions packages/lib/src/icons/hi_outline_icons.rs

Large diffs are not rendered by default.

230 changes: 230 additions & 0 deletions packages/lib/src/icons/hi_solid_icons.rs

Large diffs are not rendered by default.

1,342 changes: 1,337 additions & 5 deletions packages/lib/src/icons/io_icons.rs

Large diffs are not rendered by default.

343 changes: 343 additions & 0 deletions packages/lib/src/icons/md_action_icons.rs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions packages/lib/src/icons/md_alert_icons.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use super::super::IconShape;
use dioxus::prelude::*;

/// ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFJUlEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMovj/DfH/G+L/N8T/b4j/3xD/fd4LeGmu+Gvge/ivh/ivdxz4KeC1eU6/DbwNsMt/HcR/vZ8C3prn72uAj+a/DuK/nnnhxH8dxH+t1wZ+ixfudYDf5r8G4r/WawO/xQv3OsBv818D8V/nwcBHAR/NC/fVwNcAt/KfD/Gf772AjwZemn+dvw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l8H8a93HPgt4KX5n+WvgdcBdnnRIf51jgO/Bbw0/zP9NfA6wC4vGsSL7jjwW8BL8z/bXwOvA+zyL0O8aI4DvwW8NP87/DXwOsAuLxziX3Yc+C3gpfnf5a+B1wF2ecEQ/7K/Al6a/53+GngZXjDEv8z87yZeMMS/zPzvJl4wxL/stfnf7bd5wRD/vyH+f0P813lt4Ld40bwO8Nv850P81zkOXORFcwLY5T8f4r/WTwNvxQv3PcB7818D8V/rOHArcIzn7xnASwO7/NdA/Nc7Dnw38FY8p58B3hvY5b8O4r/Pg4EHc8WtwK3810P8/4b4/41/BDWUq0F0KKn2AAAAAElFTkSuQmCC)
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct MdAddAlert;
impl IconShape for MdAddAlert {
Expand Down Expand Up @@ -28,6 +29,7 @@ impl IconShape for MdAddAlert {
}
}

/// ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGH0lEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMovj/DfH/G+Lf7sHAg/jX+xtgl/8ZEP82Lw38FnCcf72/Bl4H2OW/H+Jf76WB3wKO82/318DrALv890I820sDX8W/7KWB4/z73Qrcyr/sdfjPg3i21wZ+i/95xH8exLO9NvBb/M8j/vMgnu21gd/ifx7xnwfxbK8N/Bb/84j/PIhne2ngq/mf57X5z4P4/w3x/xvi+ftq4KX47/MxwF/znw/x/P028Fr893kd4Lf5z4d4/n4beC3++7wO8Nv850M8f78NvBb/fV4H+G3+8yGev98GXov/Pq8D/Db/+RDP328Dr8V/n9cBfpv/fIjn77eB1+K/z+sAv81/PsTz99vAa/Hf53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KO54jjwdOA4z0s8G+Jf9tLAWwMvDRzn3+61eF5/DbwOsMu/3WsDnw28NbDLFd8FvDfP63OAz+bZEP91fht4LZ7XbwOvw3+c9wa+i+d1CXgwsMuzIf7rPBh4Os/fTwPvA+zy7/PewHfx/H0O8Nk8J8R/rc8GPovn76+BtwFu5V/vOPBVwHvz/P0N8NrALs8J8V/vp4G34gX7auBzgF1eNO8FfDVwnOfvEvBgYJfnhfivdxz4beCleOF+Gvht4K+BZwC3csVrAceBtwbeGjjOC3YJeG3gr3n+EP89jgO/DbwU/3kuAa8N/DUvGOK/11cDH8V/vL8BXhvY5YVD/Pd7a+CrgQfx73cJ+Grgq4Fd/mWI/zneG/hs4EH823wO8NXALi86xP88rw28NfDawEvxgl0Cfhr4aeCn+bdB/M/32jynXeCv+Y+B+P8N8f8b/wg8geRB2C29+wAAAABJRU5ErkJggg==)
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct MdAutoDelete;
impl IconShape for MdAutoDelete {
Expand Down Expand Up @@ -61,6 +63,7 @@ impl IconShape for MdAutoDelete {
}
}

/// ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFbElEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMovj/DfH/G+L/N8T/b4j/3xD/dR4MPAh4aeA4V7w0V/w1V+wCfw08A7iV/3yI/1yvDbwV8NrAS/Ov89fAbwM/A/w2/zkQ//GOAx8FvDfwYP5j3Ap8N/A1wC7/cRD/cY4DHwV8NHCc/xy7wFcDXwPs8u+H+I/xXsBXA8f5r7ELfDTwPfz7IP59jgPfBbw1/z1+GngfYJd/G8S/3U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O7PKfjwEvzH+cS8GBglxcM8aJ5b+C7+N/lbYCf5oVDvOh+Gngr/nf4GeCt+ZchXnTHgb8GHsT/bM8AXhrY5V+G+Nd5aeC3gWP8z3QJeG3gr3nRIP71Xhr4beAY/7NcAl4b+GtedIh/m5cGfhs4xv8Ml4DXBv6afx3Ev91LAz8NPIj/Xs8A3hr4a/71EP8+x4HvBt6K/x4/A7w3sMu/DeI/xnsDXw0c47/GJeC9gZ/m3wfxH+c48NHARwPH+M9xCfhq4KuBXf79EP/xjgMfDbw38CD+YzwD+G7gq4Fd/uMg/nO9NvDWwGsDL8W/zt8Avw38NPDb/OdA/Nc5Drw08NLAca54aa74a67YBf4a+Gtgl/98iP/fEP+/If5/Q/z/hvj/jX8EV8q+QedAsU4AAAAASUVORK5CYII=)
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct MdError;
impl IconShape for MdError {
Expand Down Expand Up @@ -88,6 +91,7 @@ impl IconShape for MdError {
}
}

/// ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHe0lEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMovj/DfH/G+L/N8T/b4j/3xD/dR4MPAh4aeA4V7w2sAv8NVfsAn8N/A2wy38+xH+utwJeG3hr4MH86/w18NvAzwC/zX8OxH+848BHAe8NPJj/GLcC3w18DbDLfxzEf5zjwEcBHw0c5z/HLvDVwNcAu/z7If5jvBfw1cBx/mvsAu8D/DT/Poh/n+PAdwFvzb/O3wC7PKfjwEvxr/PTwPsAu/zbIP7tXhr4KeDB/Mt+Bvhp4LeBW3nhHgy8NvDWwFvxL7sVeBvgr/n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iNQKV5zDwAAAABJRU5ErkJggg==)
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct MdErrorOutline;
impl IconShape for MdErrorOutline {
Expand Down Expand Up @@ -115,6 +119,7 @@ impl IconShape for MdErrorOutline {
}
}

/// ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAESklEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMovj/DfH/G+L/N8T/b4j/3xD/vyH+e70WV/wO/z0Q/z3eG/gq4DhX7AIfA3w3/7UQ//VeG/gtnr/XAX6b/zqI/3q/DbwWz9/vAK/Nfx3Efz3zwon/Ooj/euaFE/91EP91jgNvBXw3L9x7Az8D7PKfD/Gf76WBzwLemn+dnwY+B/hr/vMg/vMcB74KeG/+fb4b+Bhgl/94iP8cLw38FPBg/mP8NfA+wF/zHwvxH++lgd8CjvMfaxd4HeCv+Y+D+I/1YOCvgOP859gFHgLs8h8D8R/rr4CX5j/XXwMvw38MxH+cjwa+iv8aHwN8Nf9+iP8Yx4GnA8f5r7ELPATY5d8H8R/jo4Gv4kX3McBf85xeGvgqXnQfA3w1/z6I/xhPBx7Mi+51gN/mOb028Fu86P4aeBn+fRD/fi8N/BX/Oq8D/DbP6bWB3+Jf52WAv+bfDvHv99HAV/Gv8zrAb/OcXhv4Lf51Pgb4av7tEP9+3w28F/86rwP8Ns/ptYHf4l/ne4D35t8O8e/328Br8a/zOsBv85xeG/gt/nV+B3ht/u0Q/35PBx7Mv87rAL/Nc3pt4Lf417kVeAj/doh/P/Ov9zrAb/OcXhv4Lf71xL8d4t/P/Ou9DvDbPKfXBn6Lfz3xb4f49zP/eq8D/DbP6bWB3+JfT/zbIf79zL/e6wC/zXN6beC3+NcT/3aIfz/z30v82yH+/cx/L/Fvh/j3M/+9xL8d4t/P/PcS/3aIfz/z30v82yH+/cy/3scAf81zemngq/jXE/92iH8/86/3OsBv85xeG/gt/vXEvx3i38/8670O8Ns8p9cGfot/PfFvh/j3M/96rwP8Ns/ptYHf4l9P/Nsh/v3Mv97rAL/Nc3pt4Lf41xP/doh/n+PARf71Phr4a57TSwNfzb/eCWCXfxvEv91x4LeAl+a/118DrwPs8q+H+Lc5DvwW8NL8z/DXwOsAu/zrIP71jgO/Bbw0/7P8NfA6wC4vOsS/znHgt4CX5n+mvwZeB9jlRYN40R0Hfgt4af5n+2vgdYBd/mWIF91rA7/F/w6vA/w2/zLEi+61gd/if4fXAX6bfxniRffSwFfzv8NHA3/Nvwzx/xvi/zfEf52XBr6KF83HAH/Nfz7Ef52XBv6KF83LAH/Nfz7Ef61bgQfxwj0DeDD/NRD/tV4b+C1euNcBfpv/Goj/eu8NfDVwjOd0CXhv4Kf5r4P473EceG/gpbnir4HvBnb5r4X4/w3x/xvi/zfE/2+I/9/4RwoShkGclpeuAAAAAElFTkSuQmCC)
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct MdNotificationImportant;
impl IconShape for MdNotificationImportant {
Expand Down Expand Up @@ -142,6 +147,7 @@ impl IconShape for MdNotificationImportant {
}
}

/// ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAEkUlEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMovj/DfH/G+L/N8T/b4j/3xD/vR7MFbfy3wPx3+unuOJt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