Skip to content

Commit 10ddb70

Browse files
committed
add linenums to docs
1 parent 4865e1d commit 10ddb70

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/src/features/components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Convert any Django view into a IDOM component by using this decorator. Compatibl
5151

5252
=== "Function Based View"
5353

54-
```python
54+
```python linenums="1"
5555
...
5656

5757
@view_to_component(compatibility=True)
@@ -62,7 +62,7 @@ Convert any Django view into a IDOM component by using this decorator. Compatibl
6262

6363
=== "Class Based View"
6464

65-
```python
65+
```python linenums="1"
6666
...
6767

6868
@view_to_component(compatibility=True)

docs/src/features/hooks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The function you provide into this hook must return either a `Model` or `QuerySe
7070

7171
=== "components.py"
7272

73-
```python
73+
```python linenums="1"
7474
from idom import component
7575
from django_idom.hooks import use_query
7676

@@ -107,7 +107,7 @@ The function you provide into this hook must return either a `Model` or `QuerySe
107107

108108
=== "components.py"
109109

110-
```python
110+
```python linenums="1"
111111
from idom import component
112112
from django_idom.types import QueryOptions
113113
from django_idom.hooks import use_query
@@ -141,7 +141,7 @@ The function you provide into this hook must return either a `Model` or `QuerySe
141141

142142
=== "components.py"
143143

144-
```python
144+
```python linenums="1"
145145
from example_project.my_app.models import MyModel
146146
from idom import component
147147
from django_idom.types import QueryOptions
@@ -239,7 +239,7 @@ The function you provide into this hook will have no return value.
239239

240240
=== "components.py"
241241

242-
```python
242+
```python linenums="1"
243243
from idom import component
244244
from django_idom.hooks import use_mutation
245245

0 commit comments

Comments
 (0)