25 Commits

Author SHA1 Message Date
Daniel Sousa
954b0ec7b9
Correct minor mistakes in website (#3405)
* Remove whitespace in website tutorial

* Update index.mdx

Remove whitespace in tutorial.

* Add more information to website.

Changes to be committed:
	modified:   website/docs/tutorial/index.mdx
	modified:   website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx
	modified:   website/versioned_docs/version-0.20/tutorial/index.mdx

* Remove error: doctest failed, to rerun pass `-p website-test --doc`

Changes to be committed:
	modified:   website/docs/migration-guides/yew/from-0_18_0-to-0_19_0.mdx

* Correction of minor mistakes in website.

Changes to be committed:
	modified:   website/docs/getting-started/build-a-sample-app.mdx
	modified:   website/docs/tutorial/index.mdx
	modified:   website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx
	modified:   website/versioned_docs/version-0.20/tutorial/index.mdx

* Run Prettier
Changes to be committed:
	new file:   package-lock.json
	modified:   website/docs/tutorial/index.mdx
	modified:   website/package-lock.json
	modified:   website/package.json
	modified:   website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx
2023-09-23 17:48:22 +05:00
Daniel Sousa
e249128f12
Remove whitespace in website tutorial (#3402)
* Remove whitespace in website tutorial

* Update index.mdx

Remove whitespace in tutorial.
2023-09-21 17:30:20 +05:00
Arniu Tseng
6f4cdf2802
Pass hook dependencies as the first function argument (#2861)
* Add use_effect_with

* Fix doc

* Add NeverEq

* Save as deps-and-runner

* remove with_deps

* fix other use_effect_with_deps

* add migration guide

* fix website

* fix doc test

* return use_effect_base

* fix docs

* fmt

* fix doc tests

* noeq

* use_callback

* finsihing touches

* fmt

* nighly fmt

* fix mistake

---------

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2023-04-03 19:15:11 +03:00
Ruslan S
ad630a987c
Updated tutorial to indicate wasm32 dependencies compatibility (#3150)
That might be obvious for some, but it took me a few hours to figure out that `sqlx` is actually not `wasm32` compatible.
Funny enough, `cargo build` was working just fine, but `trunk serve` was failing with a very misleading error about `openssl`.
Maybe one day that small note will save a few hours to someone else
2023-03-17 21:00:00 +09:00
Johannes Sjölund
9556266061
Improve grammar in website/docs (#3092)
* Improve grammar in website/docs

* Futuresolo's changes to website/docs
2023-02-01 22:21:31 +05:00
__
a6a442fbc8
website/docs/tutorial: fix two typos (#2971) 2022-12-20 22:38:25 +09:00
Allan
a5f844ddcb
Use keyed lists in tutorial example (#2948)
* Use keyed lists in tutorial example

The example should follow best practices such as using keyed lists.

* Add keys explanation when it is first introduced

* Fix link to keyed lists

* Add forgotten key prop
2022-11-08 21:22:42 +05:00
Nadir Miralimov
81be10870a
Fix code listing in tutorial/index.mdx (#2836)
* Fix code listing in tutorial/index.mdx

Sync with line 358

* update latest tutorial

Changes here should be enough

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-11-06 18:29:03 +05:00
Tilman
868b2c235a
Fix +/- marker and highlighting with ignore in the tutorial (#2939)
* Fix missing +/- markers

* Fix missing period

* Fix change highlights lines

* Fix missing +/- markers and ignore highlights

* Fix missing period.

* Fix changes hightlighters

* Fix one space too many
2022-11-06 18:18:03 +05:00
Bocar
ff729cbe4a
Add new line indicator to tutorial/index.mdx (#2906)
* Add new line indicator to tutorial/index.mdx

* Add line 3 to set of highlight lines

* Add changes to docs/tutorial/index.mdx
2022-10-21 00:14:50 +05:00
Rico
9484249948
Update index.mdx (#2865)
Removes double "already" in sentence.
2022-09-10 01:01:28 +05:00
Mike Lloyd
72213eec08
Replace reqwasm with gloo-net (#2832)
* Replace reqwasm with gloo-net

* Use crates.io urls instead of github.com
2022-08-17 13:13:15 +05:00
Yohan GOUZERH
8cf55089e0
[tutorial] Add missing import (#2465)
* [tutorial] Add missing import

At line 474, we declare reqwasm and serde but we doesn't add them in scope.
This change is to add the import of Deserialize and Request

* [tutorial] Correct missing import

Correct the missing import declaration by adding it
in the next snippet

* Update PR to resolve the issues

This PR has been blocked for months. I'm updating it so we can merge it

* Apply suggestions from code review

Co-authored-by: Yohan GOUZERH <yohan.gouzerh@viseo.com>
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-06-24 22:47:46 +05:00
WorldSEnder
74c1a709a8
Update a bunch of outdated links (#2723)
* update a bunch of outdated links

* run prettier

* bump deps

* update translations

* change missed translation links
2022-06-13 14:18:08 +02:00
WorldSEnder
dc60d6099e
Fix links and add CI checks in documentation (#2595)
* Docs overhaul part2

* fix links and require them for CI
* remove translations for 0.17

* remove a bunch of unused documentation

* run prettier

* fixup links and locations of some translations
2022-04-10 21:01:18 +00:00
Muhammad Hamza
3ad4dbe837
Format website with prettier (#2536)
* add prettier

* ci

* run prettier

* run prettier in CI

* run prettier --write

* ignore README.md

* specify googleAnalytics

* fmt

* npm run write-translations

* fmt

* ignore i18n json files

they're autogenerated and don't like being formatted

* post merge fixes & some updates

* post merge fixes
2022-04-06 22:52:15 +05:00
Muhammad Hamza
9c2480b93b
Update edition in docs, add git dependency for master docs (#2534) 2022-03-20 12:53:32 +05:00
Kaede Hoshikawa
8bc2212716
#[cfg(feature = "render")] and yew::Renderer (#2498)
* Bring changes to this branch.

* Bring changes to this branch.

* Add feature render and renderer.

* Bring changes to this branch.

* Migrate examples to Renderer.

* Satisfy no any render.

* Satisfy ssr.

* Satisfy feature render.

* Lint feature soundness.

* Suppress tests.

* Fix pr-flow, update docs.

* Add a notice.

* Adjust visibility.

* Correctly feature gate tests.

* make test scope available under feature render.

* Fix CI.

* Fix CI.

* Restore tests module to its original place as well.

* Make bundles crate private.

* Make most bundle APIs private.

* Adjust docs.

* Adjust debug implementation.

* Replace start_app with Renderer.

* Adjust documentation.

* Remove unused lint.

* Remove start_app from docs.

* DomBundle -> ReconcileTarget.

* Adjust documentation.

* Once render, now csr.

* Fix docs as well.
2022-03-20 00:48:47 +09:00
Sam Kearney
68859ce13e
Tutorial: Add clarification for html! 'for' syntax (#2477) 2022-03-02 14:21:12 +05:00
Thomas O'Brien
52327b5ef0
Fix dependencies in tutorial (#2470) 2022-02-22 22:45:33 +01:00
Kenjiro Nakayama
da01ceb27f
docs: Fix diff in the tutorial (#2466)
* docs: Fix diff in the tutorial

* Fix ignore lines
2022-02-22 22:45:12 +01:00
Thomas O'Brien
df21e3d87c
Update index.mdx (#2469) 2022-02-22 22:44:58 +01:00
Ruben Gonzalez
81bce9406d
docs: fix diff inside the tutorial (#2449) 2022-02-11 13:53:46 +05:00
Michael Grigoryan
bd373d2861
docs: added a screenshot of an example (#2422)
* docs: added a screenshot of an example

* Added the screenshot

* Update index.mdx

* Update website/versioned_docs/version-0.19.0/tutorial/index.mdx

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>

* Rename screenshot

* Delete screenshot.png

* Update index.mdx

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2022-02-01 21:02:58 +01:00
Muhammad Hamza
a8f7113d4a
Documentation Improvements (#2391)
* the app crashes

* update the button

* API button

* Tutorial button

* Tutorial sidebar on next

* blog

* write-translations
2022-01-20 18:53:33 +05:00