Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 22, 2024
1 parent 847ea03 commit d490cbf
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: cargo doc
run:
cargo doc -p freya-components-docs
cargo doc -p freya-components-docs \
cargo doc --no-deps --workspace

- name: Upload to Deno Deploy
Expand Down
59 changes: 29 additions & 30 deletions crates/components-docs/build.rs
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
use freya::prelude::*;
use freya_testing::prelude::*;

#[tokio::main]
async fn main(){

println!("cargo::rerun-if-changed=../components/src/*");

let mut utils = launch_test(|| {
rsx!(
rect {
main_align: "center",
cross_align: "center",
width: "fill",
height: "fill",
Button {
label {
"Click this"
}
}
}
)
});

utils.resize((200., 150.).into());

utils.wait_for_update().await;

utils.save_snapshot("../components/images/Button.png");
}
use freya::prelude::*;
use freya_testing::prelude::*;

#[tokio::main]
async fn main() {
println!("cargo::rerun-if-changed=../components/src/*");

let mut utils = launch_test(|| {
rsx!(
rect {
main_align: "center",
cross_align: "center",
width: "fill",
height: "fill",
Button {
label {
"Click this"
}
}
}
)
});

utils.resize((200., 150.).into());

utils.wait_for_update().await;

utils.save_snapshot("../components/images/Button.png");
}
2 changes: 1 addition & 1 deletion crates/components/src/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub enum ButtonStatus {
}

/// Clickable button.
///
///
/// ![Button Demo][Button]
///
/// # Styling
Expand Down

0 comments on commit d490cbf

Please sign in to comment.