Explorar o código

Merge pull request #476 from rMazeiks/delete-blank-docs

Delete blank docs
Jon Kelley %!s(int64=3) %!d(string=hai) anos
pai
achega
5c767ececd

+ 2 - 8
docs/guide/src/SUMMARY.md

@@ -32,18 +32,12 @@
 - [Working with Async](async/index.md)
   - [UseFuture](async/use_future.md)
   - [UseCoroutine](async/coroutines.md)
-  <!-- - [Fetching](async/fetching.md) -->
-  <!-- - [Updating State](async/loading_state.md)
-  - [WebSockets](async/sockets.md) -->
-  <!-- - [Tasks](async/asynctasks.md) -->
+  - [Updating State](async/loading_state.md)
+  - [Tasks](async/asynctasks.md)
 
 <!--
 - [Putting it all together: Dog Search Engine](tutorial/index.md)
   - [New app](tutorial/new_app.md)
-  - [Structuring our app](tutorial/structure.md)
-  - [Defining State](tutorial/state.md)
-  - [Defining Components](tutorial/components.md)
-  - [Styling](tutorial/styling.md)
   - [Bundling](tutorial/publishing.md) -->
 
 

+ 0 - 2
docs/guide/src/async/fetching.md

@@ -1,2 +0,0 @@
-# Fetching
-

+ 0 - 1
docs/guide/src/async/sockets.md

@@ -1 +0,0 @@
-# WebSockets

+ 0 - 1
docs/guide/src/state/channels.md

@@ -1 +0,0 @@
-# Channels

+ 0 - 1
docs/guide/src/tutorial/advanced_guides.md

@@ -1 +0,0 @@
-# Advanced Guides

+ 0 - 3
docs/guide/src/tutorial/components.md

@@ -1,3 +0,0 @@
-# Defining Components
-
-This section is currently under construction! 🏗

+ 0 - 3
docs/guide/src/tutorial/state.md

@@ -1,3 +0,0 @@
-# Defining State
-
-This section is currently under construction! 🏗

+ 0 - 4
docs/guide/src/tutorial/structure.md

@@ -1,4 +0,0 @@
-# Structuring our app
-
-
-This section is currently under construction! 🏗

+ 0 - 4
docs/guide/src/tutorial/styling.md

@@ -1,4 +0,0 @@
-# Styling
-
-
-This section is currently under construction! 🏗

+ 1 - 31
docs/reference/src/SUMMARY.md

@@ -11,35 +11,5 @@
   
 - [Advanced Guides](guide/index.md)
   - [RSX in Depth](guide/rsx_in_depth.md)
-  - [Components](guide/components.md)
-  - [Props](guide/props.md)
-  - [Memoization](guide/memoization.md)
-  - [Performance](guide/performance.md)
-  - [Testing](guide/testing.md)
-  - [Building Elements with NodeFactory](guide/rsx.md)
-  - [Custom Elements](guide/custom_elements.md)
   - [Custom Renderer](guide/custom_renderer.md)
-  - [Server-side components](guide/server_side_components.md)
-  - [Bundling and Distributing](guide/bundline.md)
-  - [Hot Reloading Rsx](guide/hot_reloading.md)
-
-- [Reference Guide](reference/reference.md)
-  - [Anti-patterns](reference/anti.md)
-  - [Children](reference/children.md)
-  - [Conditional Rendering](reference/conditional.md)
-  - [Controlled Inputs](reference/controlled.md)
-  - [Custom Elements](reference/custom.md)
-  - [Empty Components](reference/empty.md)
-  - [Error Handling](reference/error.md)
-  - [Fragments](reference/fragments.md)
-  - [Global CSS](reference/global.md)
-  - [Inline Styles](reference/inline.md)
-  - [Iterators](reference/iterators.md)
-  - [Listeners](reference/listeners.md)
-  - [Memoization](reference/memoization.md)
-  - [Node Refs](reference/node.md)
-  - [Spread Pattern](reference/spread.md)
-  - [State Management](reference/state.md)
-  - [Suspense](reference/suspense.md)
-  - [task](reference/task.md)
-  - [Testing](reference/testing.md)
+  - [Hot Reloading Rsx](guide/hot_reloading.md)

+ 0 - 1
docs/reference/src/depth/components.md

@@ -1 +0,0 @@
-# Components

+ 0 - 1
docs/reference/src/depth/memoization.md

@@ -1 +0,0 @@
-# Memoization

+ 0 - 1
docs/reference/src/depth/performance.md

@@ -1 +0,0 @@
-# Performance

+ 0 - 1
docs/reference/src/depth/props.md

@@ -1 +0,0 @@
-# Props

+ 0 - 1
docs/reference/src/depth/rsx.md

@@ -1 +0,0 @@
-# RSX

+ 0 - 1
docs/reference/src/depth/testing.md

@@ -1 +0,0 @@
-# Testing

+ 0 - 1
docs/reference/src/depth/topics.md

@@ -1 +0,0 @@
-# Topics in Depth

+ 0 - 1
docs/reference/src/guide/bundline.md

@@ -1 +0,0 @@
-# Bundling and Distributing

+ 0 - 1
docs/reference/src/guide/components.md

@@ -1 +0,0 @@
-# Components

+ 0 - 1
docs/reference/src/guide/custom_elements.md

@@ -1 +0,0 @@
-# Custom Elements

+ 0 - 1
docs/reference/src/guide/memoization.md

@@ -1 +0,0 @@
-# Memoization

+ 0 - 1
docs/reference/src/guide/performance.md

@@ -1 +0,0 @@
-# Performance

+ 0 - 1
docs/reference/src/guide/props.md

@@ -1 +0,0 @@
-# Props

+ 0 - 1
docs/reference/src/guide/rsx.md

@@ -1 +0,0 @@
-# Building Elements with NodeFactory

+ 0 - 1
docs/reference/src/guide/server_side_components.md

@@ -1 +0,0 @@
-# Server-side components

+ 0 - 1
docs/reference/src/guide/testing.md

@@ -1 +0,0 @@
-# Testing

+ 6 - 2
examples/README.md

@@ -74,8 +74,6 @@ cargo run --example hello_world
 
 [tasks](./tasks.rs) - Continuously run future
 
-[order](./order.rs)
-
 ### SVG
 
 [svg_basic](./svg_basic.rs)
@@ -86,6 +84,12 @@ cargo run --example hello_world
 
 [framework_benchmark](./framework_benchmark.rs) - Renders a huge list
 
+> Note: The benchmark should be run in release mode:
+>
+>```shell
+> cargo run --example framework_benchmark --release
+>```
+
 [heavy_compute](./heavy_compute.rs) - How to deal with expensive operations
 
 ## Server-side rendering

+ 0 - 28
examples/order.rs

@@ -1,28 +0,0 @@
-#![allow(non_snake_case)]
-
-//! This example proves that instantly resolving futures don't cause issues
-
-use dioxus::prelude::*;
-
-fn main() {
-    dioxus::desktop::launch(App);
-}
-
-fn App(cx: Scope) -> Element {
-    cx.render(rsx!(Demo {}))
-}
-
-fn Demo(cx: Scope) -> Element {
-    let fut1 = use_future(&cx, (), |_| async move {
-        std::thread::sleep(std::time::Duration::from_millis(100));
-        10
-    });
-
-    cx.render(match fut1.value() {
-        Some(value) => {
-            let content = format!("content : {:?}", value);
-            rsx!(div{ "{content}" })
-        }
-        None => rsx!(div{"computing!"}),
-    })
-}