Skip to content

Commit e60e04c

Browse files
committed
Unify examples for topic guides under experiments.
1 parent 7bfb114 commit e60e04c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/topics/logging.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ output logs as JSON with a bit of effort.
146146

147147
First, we need a :class:`~logging.Formatter` that renders JSON:
148148

149-
.. literalinclude:: ../../example/logging/json_log_formatter.py
149+
.. literalinclude:: ../../experiments/json_log_formatter.py
150150

151151
Then, we configure logging to apply this formatter::
152152

docs/topics/routing.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ first argument to declare which URL patterns map to which handlers. Review the
7373
documentation of :mod:`werkzeug.routing` to learn about its functionality.
7474

7575
To give you a sense of what's possible, here's the URL map of the example in
76-
`example/routing.py`_:
76+
`experiments/routing.py`_:
7777

78-
.. _example/routing.py: https://github.com/python-websockets/websockets/blob/main/example/routing.py
78+
.. _experiments/routing.py: https://github.com/python-websockets/websockets/blob/main/experiments/routing.py
7979

80-
.. literalinclude:: ../../example/routing.py
80+
.. literalinclude:: ../../experiments/routing.py
8181
:language: python
8282
:start-at: url_map = Map(
8383
:end-at: await server.serve_forever()
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)