Skip to content

Commit

Permalink
Merge pull request #33 from Carlosted/statics
Browse files Browse the repository at this point in the history
Make every icon a static; Create separation of concern between component libs and icon sources.
  • Loading branch information
carloskiki committed Jan 8, 2024
2 parents 3cde48d + 0fae5cc commit 7454461
Show file tree
Hide file tree
Showing 62 changed files with 69,774 additions and 96,953 deletions.
127 changes: 24 additions & 103 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build-site:

# Build all libraries
build:
cd build && cargo run
cd build && cargo run --release

# Build all libraries, forcing new downloads of icon packages
build-clean:
Expand Down
6 changes: 0 additions & 6 deletions build/src/fs/lib_rs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,7 @@ impl LibRs {
}

mod filters {
use heck::ToShoutySnakeCase;
use xml::attribute::OwnedAttribute;
pub fn shouty_snake_case<T: std::fmt::Display>(s: T) -> ::askama::Result<String> {
let input = s.to_string();
Ok(input.to_shouty_snake_case())
}

pub fn attribute_value(opt: &Option<OwnedAttribute>) -> ::askama::Result<String> {
Ok(format!("{:?}", opt.as_ref().map(|attr| &attr.value)))
}
Expand Down

0 comments on commit 7454461

Please sign in to comment.