-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation fixes and improvements (#16)
* fix out of date macro syntax in docstrings and README * rename assets variables in examples
- Loading branch information
Showing
4 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
const _: &str = manganis::classes!("flex flex-row p-5"); | ||
pub const CSS_ASSET: &str = manganis::mg!(file("./style.css")); | ||
pub const PNG_ASSET: &str = manganis::mg!(file("./rustacean-flat-gesture.png")); | ||
pub const CSS_ASSET: &str = manganis::mg!(file("style.css")); | ||
pub const PNG_ASSET: &str = manganis::mg!(file("rustacean-flat-gesture.png")); | ||
pub const RESIZED_PNG_ASSET: manganis::ImageAsset = | ||
manganis::mg!(image("./rustacean-flat-gesture.png").size(52, 52)); | ||
manganis::mg!(image("rustacean-flat-gesture.png").size(52, 52)); | ||
pub const JPEG_ASSET: manganis::ImageAsset = | ||
manganis::mg!(image("./rustacean-flat-gesture.png").format(ImageType::Jpg)); | ||
manganis::mg!(image("rustacean-flat-gesture.png").format(ImageType::Jpg)); | ||
pub const RESIZED_JPEG_ASSET: manganis::ImageAsset = | ||
manganis::mg!(image("./rustacean-flat-gesture.png") | ||
manganis::mg!(image("rustacean-flat-gesture.png") | ||
.format(ImageType::Jpg) | ||
.size(52, 52)); | ||
pub const AVIF_ASSET: manganis::ImageAsset = | ||
manganis::mg!(image("./rustacean-flat-gesture.png").format(ImageType::Avif)); | ||
manganis::mg!(image("rustacean-flat-gesture.png").format(ImageType::Avif)); | ||
pub const RESIZED_AVIF_ASSET: manganis::ImageAsset = | ||
manganis::mg!(image("./rustacean-flat-gesture.png") | ||
manganis::mg!(image("rustacean-flat-gesture.png") | ||
.format(ImageType::Avif) | ||
.size(52, 52)); | ||
pub const WEBP_ASSET: manganis::ImageAsset = | ||
manganis::mg!(image("./rustacean-flat-gesture.png").format(ImageType::Webp)); | ||
manganis::mg!(image("rustacean-flat-gesture.png").format(ImageType::Webp)); | ||
pub const RESIZED_WEBP_ASSET: manganis::ImageAsset = | ||
manganis::mg!(image("./rustacean-flat-gesture.png") | ||
manganis::mg!(image("rustacean-flat-gesture.png") | ||
.format(ImageType::Webp) | ||
.size(52, 52)); |