Skip to content

Commit 94e9de5

Browse files
committed
docs tweaks
1 parent d9a943a commit 94e9de5

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
nav:
3-
- Get Started:
3+
- Get Started:
44
- Add ReactPy-Router to Your Project: index.md
5-
- Your First Routed Application: learn/simple-application.md
5+
- Your First Routed Application: learn/your-first-app.md
66
- Advanced Topics:
77
- Routers, Routes, and Links: learn/routers-routes-and-links.md
88
- Hooks: learn/hooks.md

docs/src/learn/routers-routes-and-links.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ The syntax for declaring routes with the [`browser_router`][src.reactpy_router.b
3232

3333
In this case, `#!python param` is the name of the route parameter and the optionally declared `#!python type` specifies what kind of parameter it is. The available parameter types and what patterns they match are are:
3434

35-
| Type | Pattern |
36-
| ------------------------ | ----------------------------------------------------------------------- |
37-
| `#!python str` (default) | `#!python [^/]+` |
38-
| `#!python int` | `#!python \d+` |
39-
| `#!python float` | `#!python \d+(\.\d+)?` |
40-
| `#!python uuid` | `#!python [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}` |
41-
| `#!python slug` | `#!python [-a-zA-Z0-9_]+` |
42-
| `#!python path` | `#!python .+` |
43-
| `#!python any` | `#!python .*` |
35+
| Type | Pattern |
36+
| --- | --- |
37+
| `#!python str` (default) | `#!python [^/]+` |
38+
| `#!python int` | `#!python \d+` |
39+
| `#!python float` | `#!python \d+(\.\d+)?` |
40+
| `#!python uuid` | `#!python [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}` |
41+
| `#!python slug` | `#!python [-a-zA-Z0-9_]+` |
42+
| `#!python path` | `#!python .+` |
43+
| `#!python any` | `#!python .*` |
4444

4545
So in practice these each might look like:
4646

@@ -52,7 +52,7 @@ So in practice these each might look like:
5252
/my/route/{param:path}
5353
```
5454

55-
Any route parameters collected from the current location then be accessed using the [`use_params`](#using-parameters) hook.
55+
Any route parameters collected from the current location then be accessed using the [`use_params`](hooks.md#use-parameters) hook.
5656

5757
!!! warning "Pitfall"
5858

docs/src/learn/simple-application.md renamed to docs/src/learn/your-first-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The first step is to create a basic router that will display the home page when
3939
{% include "../../examples/python/basic-routing.py" %}
4040
```
4141

42-
When navigating to [`http://127.0.0.1:8000``](http://127.0.0.1:8000) you should see `Home Page 🏠`. However, if you go to any other route you will instead see `Missing Link 🔗‍💥`.
42+
When navigating to [`http://127.0.0.1:8000`](http://127.0.0.1:8000) you should see `Home Page 🏠`. However, if you go to any other route you will instead see `Missing Link 🔗‍💥`.
4343

4444
With this foundation you can start adding more routes.
4545

0 commit comments

Comments
 (0)