Skip to content

Commit

Permalink
fix document imports, add comments for assets
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp committed Oct 14, 2024
1 parent 2e2eff5 commit c5a4408
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/dioxus/src/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ fn web_launch(
#[cfg(all(feature = "static-generation", not(feature = "fullstack")))]
use dioxus_static_site_generation::document;
let document = std::rc::Rc::new(document::web::FullstackWebDocument)
as std::rc::Rc<dyn crate::prelude::Document>;
as std::rc::Rc<dyn crate::prelude::document::Document>;
vdom.provide_root_context(document);
}
vdom
Expand Down
1 change: 0 additions & 1 deletion packages/dioxus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ pub mod prelude {
#[cfg(feature = "document")]
#[cfg_attr(docsrs, doc(cfg(feature = "document")))]
pub use dioxus_document as document;
pub use dioxus_document::Document;

#[cfg(feature = "launch")]
#[cfg_attr(docsrs, doc(cfg(feature = "launch")))]
Expand Down
1 change: 1 addition & 0 deletions packages/document/assets/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// this script is included as an asset!() for a test
1 change: 1 addition & 0 deletions packages/document/assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* this stylesheet is included as an asset!() for a test */
2 changes: 1 addition & 1 deletion packages/document/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl Document for NoOpDocument {
}
}

/// An evluator that does nothing
/// An evaluator that does nothing
#[derive(Default)]
pub struct NoOpEvaluator;

Expand Down

0 comments on commit c5a4408

Please sign in to comment.