Skip to content

Commit e6aeda3

Browse files
committed
minor docs tweaks
1 parent 604f177 commit e6aeda3

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

src/LiveComponent/src/Resources/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,8 @@ you can enable it via the ``exposed`` option:
10431043
10441044
class EditPostComponent
10451045
{
1046-
- #[LiveProp]
1047-
+ #[LiveProp(exposed: ['title', 'content'])]
1046+
- #[LiveProp]
1047+
+ #[LiveProp(exposed: ['title', 'content'])]
10481048
public Post $post;
10491049
10501050
// ...

src/Turbo/Resources/doc/index.rst

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Accelerating Navigation with Turbo Drive
3838

3939
Turbo Drive enhances page-level navigation. It watches for link clicks
4040
and form submissions, performs them in the background, and updates the
41-
page without doing a full reload. This gives you the single-page-app
41+
page without doing a full reload. This gives you the "single-page-app"
4242
experience without major changes to your code!
4343

4444
Turbo Drive is automatically enabled when you install Symfony UX Turbo.
@@ -57,20 +57,7 @@ We also recommend that you place your ``script`` tags live inside your
5757
``head`` tag so that they aren't reloaded on every navigation (Turbo
5858
re-executes any ``script`` tags inside ``body`` on every navigation).
5959
Add a ``defer`` attribute to each ``script`` tag to prevent it from
60-
blocking the page load. See [Moving
61-
62-
.. raw:: html
63-
64-
<script>
65-
66-
inside
67-
68-
.. raw:: html
69-
70-
<head>
71-
72-
and the “defer”
73-
Attribute](https://symfony.com/blog/moving-script-inside-head-and-the-defer-attribute)
60+
blocking the page load. See `Moving <script> inside <head> and the "defer" Attribute`_
7461
for more info.
7562

7663
2. Reloading When a JavaScript/CSS File Changes
@@ -164,7 +151,7 @@ This changes the response status code to 422 on validation error, which
164151
tells Turbo Drive that the form submit failed and it should re-render
165152
with the errors. You can *also* choose to change the success redirect
166153
status code from 302 (the default) to 303 (``HTTP_SEE_OTHER``). That's
167-
not required for Turbo Drive, but 303 is more correct for this
154+
not required for Turbo Drive, but 303 is "more correct" for this
168155
situation.
169156

170157
.. note::
@@ -830,3 +817,4 @@ meaning it is not bound to Symfony's BC policy for the moment.
830817
.. _`hotwired/turbo-rails`: https://github.com/hotwired/turbo-rails
831818
.. _`sroze/live-twig`: https://github.com/sroze/live-twig
832819
.. _`Symfony UX configured in your app`: https://symfony.com/doc/current/frontend/ux.html
820+
.. _`Moving <script> inside <head> and the "defer" Attribute`: https://symfony.com/blog/moving-script-inside-head-and-the-defer-attribute

0 commit comments

Comments
 (0)