Skip to content

Commit e7477ac

Browse files
authored
docs: Use "click to toggle" instead of "click to expand" (#4032)
1 parent 86ceeb3 commit e7477ac

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/tutorials/repository-tutorial/01-modeling-and-features.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Let's build on this as we look at the repository classes.
8383
Full Code
8484
---------
8585

86-
.. dropdown:: Full Code (click to expand)
86+
.. dropdown:: Full Code (click to toggle)
8787

8888
.. literalinclude:: /examples/contrib/sqlalchemy/sqlalchemy_declarative_models.py
8989
:language: python

docs/tutorials/repository-tutorial/02-repository-introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ functionality to a :class:`~litestar.controller.Controller`!
221221
Full Code
222222
---------
223223

224-
.. dropdown:: Full Code (click to expand)
224+
.. dropdown:: Full Code (click to toggle)
225225

226226
.. literalinclude:: /examples/contrib/sqlalchemy/sqlalchemy_repository_crud.py
227227
:language: python

docs/tutorials/repository-tutorial/03-repository-controller.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ option. This option configures the specified relationship to load via
3737
Next, we define the ``AuthorController``. This controller exposes five routes for
3838
interacting with the ``Author`` model:
3939

40-
.. dropdown:: AuthorController (click to expand)
40+
.. dropdown:: ``AuthorController`` (click to toggle)
4141

4242
.. literalinclude:: /examples/contrib/sqlalchemy/sqlalchemy_async_repository.py
4343
:language: python
@@ -52,7 +52,7 @@ In the above examples, we've used the asynchronous repository implementation. Ho
5252
Litestar also supports synchronous database drivers with an identical implementation.
5353
Here's a corresponding synchronous version of the previous example:
5454

55-
.. dropdown:: Synchronous Repository (click to expand)
55+
.. dropdown:: Synchronous Repository (click to toggle)
5656

5757
.. literalinclude:: /examples/contrib/sqlalchemy/sqlalchemy_sync_repository.py
5858
:language: python
@@ -68,7 +68,7 @@ functionality to our application.
6868
Full Code
6969
---------
7070

71-
.. dropdown:: Full Code (click to expand)
71+
.. dropdown:: Full Code (click to toggle)
7272

7373
.. literalinclude:: /examples/contrib/sqlalchemy/sqlalchemy_async_repository.py
7474
:language: python

docs/tutorials/repository-tutorial/04-repository-other.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Finally, we insert the model with the added slug.
5959
Full Code
6060
---------
6161

62-
.. dropdown:: Full Code (click to expand)
62+
.. dropdown:: Full Code (click to toggle)
6363

6464
.. literalinclude:: /examples/contrib/sqlalchemy/sqlalchemy_repository_extension.py
6565
:language: python

docs/usage/channels.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ terminology, and the flow of data, the following glossary and flowcharts are pro
3030
Glossary
3131
++++++++
3232

33-
.. dropdown:: Click to expand glossary
33+
.. dropdown:: Click to toggle the glossary
3434

3535
.. glossary::
3636

@@ -94,7 +94,7 @@ Glossary
9494
Flowcharts
9595
++++++++++
9696

97-
.. dropdown:: Click to expand flowcharts
97+
.. dropdown:: Click to toggle flowcharts
9898

9999
.. mermaid::
100100
:align: center

docs/usage/security/guards.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ We begin by creating an :class:`~enum.Enum` with two roles - ``consumer`` and ``
2525
2626
Our ``User`` model will now look like this:
2727

28-
.. dropdown:: Click to expand the User model
28+
.. dropdown:: Click to toggle the model ``User``
2929

3030
.. code-block:: python
3131
:caption: User model for role based authorization
@@ -52,7 +52,7 @@ Given that the ``User`` model has a ``role`` property we can use it to authorize
5252
Let us create a guard that only allows admin users to access certain route handlers and then add it to a route
5353
handler function:
5454
55-
.. dropdown:: Click to expand the ``admin_user_guard`` guard
55+
.. dropdown:: Click to toggle the guard ``admin_user_guard``
5656
5757
.. code-block:: python
5858
:caption: Defining the ``admin_user_guard`` guard used to authorize certain route handlers

0 commit comments

Comments
 (0)