Skip to content

Commit 2388ee5

Browse files
committed
move section
1 parent 2fdba9e commit 2388ee5

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

docs/source/guides/getting-started/running-idom.rst

+25-25
Original file line numberDiff line numberDiff line change
@@ -99,31 +99,6 @@ Tornado is run using it's own builtin server rather than an external WSGI or ASG
9999
server.
100100

101101

102-
Server Configuration Options
103-
----------------------------
104-
105-
IDOM's various server implementations come with ``Options`` that can be passed to their
106-
respective ``configure()`` functions. Those which are common amongst the options are:
107-
108-
- ``url_prefix`` - prefix all routes configured by IDOM
109-
- ``redirect_root`` - whether to redirect the root of the application to the IDOM view
110-
- ``serve_static_files`` - whether to server IDOM's static files from it's default route
111-
112-
You'd then pass these options to ``configure()`` in the following way:
113-
114-
.. code-block::
115-
116-
configure(app, MyComponent, Options(...))
117-
118-
To learn more read the description for your chosen server implementation:
119-
120-
- :class:`idom.server.fastapi.Options`
121-
- :class:`idom.server.flask.Options`
122-
- :class:`idom.server.sanic.Options`
123-
- :class:`idom.server.starlette.Options`
124-
- :class:`idom.server.tornado.Options`
125-
126-
127102
Running IDOM in Debug Mode
128103
--------------------------
129104

@@ -168,6 +143,31 @@ Errors will be displayed where the uppermost component is located in the view:
168143
.. idom:: _examples/debug_error_example
169144

170145

146+
Server Configuration Options
147+
----------------------------
148+
149+
IDOM's various server implementations come with ``Options`` that can be passed to their
150+
respective ``configure()`` functions. Those which are common amongst the options are:
151+
152+
- ``url_prefix`` - prefix all routes configured by IDOM
153+
- ``redirect_root`` - whether to redirect the root of the application to the IDOM view
154+
- ``serve_static_files`` - whether to server IDOM's static files from it's default route
155+
156+
You'd then pass these options to ``configure()`` in the following way:
157+
158+
.. code-block::
159+
160+
configure(app, MyComponent, Options(...))
161+
162+
To learn more read the description for your chosen server implementation:
163+
164+
- :class:`idom.server.fastapi.Options`
165+
- :class:`idom.server.flask.Options`
166+
- :class:`idom.server.sanic.Options`
167+
- :class:`idom.server.starlette.Options`
168+
- :class:`idom.server.tornado.Options`
169+
170+
171171
Embed in an Existing Webpage
172172
----------------------------
173173

0 commit comments

Comments
 (0)