Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Mar 20, 2022
1 parent bc753c5 commit 98508b8
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 43 deletions.
4 changes: 2 additions & 2 deletions website/docs/concepts/contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ See [docs for use_context](function-components/hooks/use-context) to learn more.

We have 2 options to consume contexts in struct components:

- [Higher Order Components](../advanced-topics/struct-components/hoc)
- [Higher Order Components](../advanced-topics/struct-components/hoc)
A higher order function component will consume the context and pass the data to the struct component which requires it.
- Consume context directly in struct component. See [example of struct component as a consumer](https://github.com/yewstack/yew/tree/master/examples/contexts/src/struct_component_subscriber.rs)
- Consume context directly in struct component. See [example of struct component as a consumer](https://github.com/yewstack/yew/tree/master/examples/contexts/src/struct_component_subscriber.rs)
8 changes: 4 additions & 4 deletions website/docs/concepts/html/classes.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "Classes"
description: "A handy macro to handle classes"
title: 'Classes'
description: 'A handy macro to handle classes'
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

## Classes

Expand Down
8 changes: 4 additions & 4 deletions website/docs/concepts/html/components.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Components"
description: "Create complex layouts with component hierarchies"
title: 'Components'
description: 'Create complex layouts with component hierarchies'
---

## Basic
Expand Down Expand Up @@ -168,5 +168,5 @@ html! {

## Relevant examples

- [Function Todo MVC](https://github.com/yewstack/yew/tree/master/examples/function_todomvc)
- [Function Router](https://github.com/yewstack/yew/tree/master/examples/function_router)
- [Function Todo MVC](https://github.com/yewstack/yew/tree/master/examples/function_todomvc)
- [Function Router](https://github.com/yewstack/yew/tree/master/examples/function_router)
8 changes: 4 additions & 4 deletions website/docs/concepts/html/conditional-rendering.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "Conditional rendering"
description: "Rendering nodes conditionally in html!"
title: 'Conditional rendering'
description: 'Rendering nodes conditionally in html!'
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

## If blocks

Expand Down
10 changes: 5 additions & 5 deletions website/docs/concepts/html/elements.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "Elements"
description: "Both HTML and SVG elements are supported"
title: 'Elements'
description: 'Both HTML and SVG elements are supported'
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

## DOM nodes

Expand Down Expand Up @@ -120,4 +120,4 @@ If the attribute is set to `None`, the attribute won't be set in the DOM.

## Relevant examples

- [Inner HTML](https://github.com/yewstack/yew/tree/master/examples/inner_html)
- [Inner HTML](https://github.com/yewstack/yew/tree/master/examples/inner_html)
2 changes: 1 addition & 1 deletion website/docs/concepts/html/events.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Events"
title: 'Events'
---

## Introduction
Expand Down
6 changes: 3 additions & 3 deletions website/docs/concepts/html/fragments.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "Fragments"
title: 'Fragments'
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

The `html!` macro always requires a single root node. In order to get around this restriction, you
can use an "empty tag" (these are also called "fragments").
Expand Down
8 changes: 4 additions & 4 deletions website/docs/concepts/html/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "HTML"
title: 'HTML'
sidebar_label: Introduction
description: "The procedural macro for generating HTML and SVG"
description: 'The procedural macro for generating HTML and SVG'
slug: /concepts/html
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

The `html!` macro allows you to write HTML and SVG code declaratively. It is similar to JSX
(an extension to JavaScript which allows you to write HTML-like code inside of JavaScript).
Expand Down
12 changes: 6 additions & 6 deletions website/docs/concepts/html/lists.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "Lists"
title: 'Lists'
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

## Iterators

Expand Down Expand Up @@ -119,6 +119,6 @@ If you need that div to be recreated instead of reused, then you can add differe

## Further reading

- [TodoMVC](https://github.com/yewstack/yew/tree/master/examples/todomvc)
- [Keyed list](https://github.com/yewstack/yew/tree/master/examples/keyed_list)
- [Router](https://github.com/yewstack/yew/tree/master/examples/router)
- [TodoMVC](https://github.com/yewstack/yew/tree/master/examples/todomvc)
- [Keyed list](https://github.com/yewstack/yew/tree/master/examples/keyed_list)
- [Router](https://github.com/yewstack/yew/tree/master/examples/router)
20 changes: 10 additions & 10 deletions website/docs/concepts/router.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Router"
title: 'Router'
description: "Yew's official router"
---

Expand Down Expand Up @@ -397,15 +397,15 @@ digraph {
}
-->

import useBaseUrl from "@docusaurus/useBaseUrl";
import ThemedImage from "@theme/ThemedImage";
import useBaseUrl from '@docusaurus/useBaseUrl'
import ThemedImage from '@theme/ThemedImage'

<ThemedImage
alt="nested router structure"
sources={{
light: useBaseUrl("/img/nested-router-light.svg"),
dark: useBaseUrl("/img/nested-router-dark.svg"),
}}
alt="nested router structure"
sources={{
light: useBaseUrl('/img/nested-router-light.svg'),
dark: useBaseUrl('/img/nested-router-dark.svg'),
}}
/>

The nested `SettingsRouter` handles all urls that start with `/settings`. Additionally, it redirects urls that are not
Expand Down Expand Up @@ -498,8 +498,8 @@ fallback to `/` if no `<base />` presents in the html file.

## Relevant examples

- [Router](https://github.com/yewstack/yew/tree/master/examples/router)
- [Router](https://github.com/yewstack/yew/tree/master/examples/router)

## API Reference

- [yew-router](https://docs.rs/yew-router/)
- [yew-router](https://docs.rs/yew-router/)

0 comments on commit 98508b8

Please sign in to comment.