diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b25c274..7c3f9ef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -47,6 +47,7 @@ jobs:
run: |
cd docs/book
mdbook build
+ python3 post_build.py
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
diff --git a/.idea/leptos-use.iml b/.idea/leptos-use.iml
index 6ee18d0..201a77c 100644
--- a/.idea/leptos-use.iml
+++ b/.idea/leptos-use.iml
@@ -13,6 +13,9 @@
"Delay is set to 1000ms for this demo.."
+"Delay is set to 1000ms for this demo."
"Button clicked: " { click_count }
"Event handler called: " { throttled_count }
} diff --git a/examples/use_throttle_fn/style/output.css b/examples/use_throttle_fn/style/output.css index 93b4920..bf61798 100644 --- a/examples/use_throttle_fn/style/output.css +++ b/examples/use_throttle_fn/style/output.css @@ -516,21 +516,11 @@ video { --tw-backdrop-sepia: ; } -.my-4 { - margin-top: 1rem; - margin-bottom: 1rem; -} - .my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; } -.my-1 { - margin-top: 0.25rem; - margin-bottom: 0.25rem; -} - .my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; @@ -549,39 +539,11 @@ video { background-color: rgb(59 130 246 / var(--tw-bg-opacity)); } -.bg-gray-200 { - --tw-bg-opacity: 1; - background-color: rgb(229 231 235 / var(--tw-bg-opacity)); -} - -.bg-gray-500 { - --tw-bg-opacity: 1; - background-color: rgb(107 114 128 / var(--tw-bg-opacity)); -} - .bg-gray-700 { --tw-bg-opacity: 1; background-color: rgb(55 65 81 / var(--tw-bg-opacity)); } -.bg-blue-600 { - --tw-bg-opacity: 1; - background-color: rgb(37 99 235 / var(--tw-bg-opacity)); -} - -.bg-gray-600 { - --tw-bg-opacity: 1; - background-color: rgb(75 85 99 / var(--tw-bg-opacity)); -} - -.p-4 { - padding: 1rem; -} - -.p-5 { - padding: 1.25rem; -} - .p-6 { padding: 1.5rem; } @@ -596,8 +558,9 @@ video { padding-bottom: 0.5rem; } -.font-bold { - font-weight: 700; +.text-gray-300 { + --tw-text-opacity: 1; + color: rgb(209 213 219 / var(--tw-text-opacity)); } .text-white { @@ -605,47 +568,7 @@ video { color: rgb(255 255 255 / var(--tw-text-opacity)); } -.text-gray-100 { - --tw-text-opacity: 1; - color: rgb(243 244 246 / var(--tw-text-opacity)); -} - -.text-gray-200 { - --tw-text-opacity: 1; - color: rgb(229 231 235 / var(--tw-text-opacity)); -} - -.text-gray-300 { - --tw-text-opacity: 1; - color: rgb(209 213 219 / var(--tw-text-opacity)); -} - -.hover\:bg-blue-700:hover { - --tw-bg-opacity: 1; - background-color: rgb(29 78 216 / var(--tw-bg-opacity)); -} - -.hover\:bg-gray-700:hover { - --tw-bg-opacity: 1; - background-color: rgb(55 65 81 / var(--tw-bg-opacity)); -} - -.hover\:bg-gray-500:hover { - --tw-bg-opacity: 1; - background-color: rgb(107 114 128 / var(--tw-bg-opacity)); -} - -.hover\:bg-gray-400:hover { - --tw-bg-opacity: 1; - background-color: rgb(156 163 175 / var(--tw-bg-opacity)); -} - .hover\:bg-blue-400:hover { --tw-bg-opacity: 1; background-color: rgb(96 165 250 / var(--tw-bg-opacity)); -} - -.hover\:bg-blue-500:hover { - --tw-bg-opacity: 1; - background-color: rgb(59 130 246 / var(--tw-bg-opacity)); } \ No newline at end of file diff --git a/src/use_event_listener.rs b/src/use_event_listener.rs index 696e04c..6c42896 100644 --- a/src/use_event_listener.rs +++ b/src/use_event_listener.rs @@ -27,7 +27,7 @@ use wasm_bindgen::JsCast; /// } /// ``` /// -/// You can also pass a [`leptos::NodeRef`] as the event target, `use_event_listener` will unregister the previous event and register +/// You can also pass a [`NodeRef`](https://docs.rs/leptos/latest/leptos/struct.NodeRef.html) as the event target, [`use_event_listener`] will unregister the previous event and register /// the new one when you change the target. /// /// ``` @@ -78,7 +78,8 @@ use wasm_bindgen::JsCast; /// /// Note if your components also run in SSR (Server Side Rendering), you might get errors /// because DOM APIs like document and window are not available outside of the browser. -/// To avoid that you can put the logic inside a [`leptos::create_effect`] hook +/// To avoid that you can put the logic inside a +/// [`create_effect`](https://docs.rs/leptos/latest/leptos/fn.create_effect.html) hook /// which only runs client side. #[allow(unused_must_use)] pub fn use_event_listener