Skip to content

Commit 51ebc22

Browse files
committed
Docs now link to underscored files
1 parent 0fa33c7 commit 51ebc22

17 files changed

+93
-110
lines changed

docs/examples/html/tmp.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/overrides/home.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ <h1>Create user interfaces from components</h1>
7373
</p>
7474
<div class="example-container">
7575
{% with image="create-user-interfaces.png", class="pop-left" %}
76-
{% include "home-code-examples/code-block.html" %}
76+
{% include "homepage_examples/code_block.html" %}
7777
{% endwith %}
78-
{% include "home-code-examples/create-user-interfaces-demo.html" %}
78+
{% include "homepage_examples/create_user_interfaces_demo.html" %}
7979
</div>
8080
<p>
8181
Whether you work on your own or with thousands of other developers, using React feels the same. It is
@@ -94,9 +94,9 @@ <h1>Write components with pure Python code</h1>
9494
</p>
9595
<div class="example-container">
9696
{% with image="write-components-with-python.png", class="pop-left" %}
97-
{% include "home-code-examples/code-block.html" %}
97+
{% include "homepage_examples/code_block.html" %}
9898
{% endwith %}
99-
{% include "home-code-examples/write-components-with-python-demo.html" %}
99+
{% include "homepage_examples/write_components_with_python_demo.html" %}
100100

101101
</div>
102102
</div>
@@ -110,9 +110,9 @@ <h1>Add interactivity wherever you need it</h1>
110110
</p>
111111
<div class="example-container">
112112
{% with image="add-interactivity.png" %}
113-
{% include "home-code-examples/code-block.html" %}
113+
{% include "homepage_examples/code_block.html" %}
114114
{% endwith %}
115-
{% include "home-code-examples/add-interactivity-demo.html" %}
115+
{% include "homepage_examples/add_interactivity_demo.html" %}
116116
</div>
117117
<p>
118118
You don't have to build your whole page in ReactPy. Add React to your existing HTML page, and render

docs/overrides/home-code-examples/add-interactivity.py renamed to docs/overrides/homepage_examples/add_interactivity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def searchable_video_list(videos):
1818

1919
return html._(
2020
search_input(
21-
{"onChange": lambda new_text: set_search_text(new_text)},
21+
{"onChange": lambda event: set_search_text(event["target"]["value"])},
2222
value=search_text,
2323
),
2424
video_list(

docs/src/learn/add-reactpy-to-a-django-project.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Add `#!python "reactpy_django"` to [`INSTALLED_APPS`](https://docs.djangoproject
2929
=== "settings.py"
3030

3131
```python
32-
{% include "../../examples/python/configure-installed-apps.py" %}
32+
{% include "../../examples/python/configure_installed_apps.py" %}
3333
```
3434

3535
??? warning "Enable ASGI and Django Channels (Required)"
@@ -42,13 +42,13 @@ Add `#!python "reactpy_django"` to [`INSTALLED_APPS`](https://docs.djangoproject
4242
2. Add `#!python "daphne"` to `#!python INSTALLED_APPS`.
4343

4444
```python linenums="0"
45-
{% include "../../examples/python/configure-channels-installed-app.py" %}
45+
{% include "../../examples/python/configure_channels_installed_app.py" %}
4646
```
4747

4848
3. Set your `#!python ASGI_APPLICATION` variable.
4949

5050
```python linenums="0"
51-
{% include "../../examples/python/configure-channels-asgi-app.py" %}
51+
{% include "../../examples/python/configure_channels_asgi_app.py" %}
5252
```
5353

5454
??? info "Configure ReactPy settings (Optional)"
@@ -64,7 +64,7 @@ Add ReactPy HTTP paths to your `#!python urlpatterns` in your [`urls.py`](https:
6464
=== "urls.py"
6565

6666
```python
67-
{% include "../../examples/python/configure-urls.py" %}
67+
{% include "../../examples/python/configure_urls.py" %}
6868
```
6969

7070
## Step 4: Configure `asgi.py`
@@ -74,7 +74,7 @@ Register ReactPy's WebSocket using `#!python REACTPY_WEBSOCKET_ROUTE` in your [`
7474
=== "asgi.py"
7575

7676
```python
77-
{% include "../../examples/python/configure-asgi.py" %}
77+
{% include "../../examples/python/configure_asgi.py" %}
7878
```
7979

8080
??? info "Add `#!python AuthMiddlewareStack` (Optional)"
@@ -88,7 +88,7 @@ Register ReactPy's WebSocket using `#!python REACTPY_WEBSOCKET_ROUTE` in your [`
8888
In these situations will need to ensure you are using `#!python AuthMiddlewareStack`.
8989

9090
```python linenums="0"
91-
{% include "../../examples/python/configure-asgi-middleware.py" start="# start" %}
91+
{% include "../../examples/python/configure_asgi_middleware.py" start="# start" %}
9292
```
9393

9494
??? question "Where is my `asgi.py`?"

0 commit comments

Comments
 (0)