-
-
Notifications
You must be signed in to change notification settings - Fork 325
/
Copy pathmkdocs.yml
223 lines (215 loc) Β· 9.94 KB
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
---
nav:
- Home: index.md
- Get Started:
- Quick Start:
- learn/quick-start.md
- "Tutorial: Tic-Tac-Toe π§": learn/tutorial-tic-tac-toe.md
- Thinking in React: learn/thinking-in-react.md
- Installation:
- Creating a Standalone React App: learn/creating-a-react-app.md
- Add React to an Existing Project: learn/add-react-to-an-existing-project.md
- Setup:
- Editor Setup: learn/editor-setup.md
- Tools, Libraries, and Packages: learn/tools-and-packages.md
# - More Tutorials:
# - "Tutorial: React Bootstrap π«": learn/tutorial-react-bootstrap.md
# - "Tutorial: Material UI π«": learn/tutorial-material-ui.md
- Learn:
- Describing the UI:
- Your First Component π§: learn/your-first-component.md
- Importing and Exporting Components π§: learn/importing-and-exporting-components.md
# - Writing Markup with PSX π«: learn/writing-markup-with-psx.md
# - Python in PSX with Curly Braces π«: learn/python-in-psx-with-curly-braces.md
- Passing Props to a Component π§: learn/passing-props-to-a-component.md
- Conditional Rendering π§: learn/conditional-rendering.md
- Rendering Lists π§: learn/rendering-lists.md
- Keeping Components Pure π§: learn/keeping-components-pure.md
- Adding Interactivity:
- Responding to Events π§: learn/responding-to-events.md
- "State: A Component's Memory π§": learn/state-a-components-memory.md
- Render and Commit π§: learn/render-and-commit.md
- State as a Snapshot π§: learn/state-as-a-snapshot.md
- Queueing a Series of State Updates π§: learn/queueing-a-series-of-state-updates.md
- Updating Objects in State π§: learn/updating-objects-in-state.md
- Updating Arrays in State π§: learn/updating-arrays-in-state.md
- Managing State:
- Reacting to Input with State: learn/reacting-to-input-with-state.md
- Choosing the State Structure π§: learn/choosing-the-state-structure.md
- Sharing State Between Components π§: learn/sharing-state-between-components.md
- Preserving and Resetting State π§: learn/preserving-and-resetting-state.md
- Extracting State Logic into a Reducer π§: learn/extracting-state-logic-into-a-reducer.md
- Passing Data Deeply with Context π§: learn/passing-data-deeply-with-context.md
- Scaling Up with Reducer and Context π§: learn/scaling-up-with-reducer-and-context.md
- Escape Hatches:
- Referencing Values with Refs π§: learn/referencing-values-with-refs.md
- Manipulating the DOM with Refs π§: learn/manipulating-the-dom-with-refs.md
- Synchronizing with Effects π§: learn/synchronizing-with-effects.md
- You Might Not Need an Effect π§: learn/you-might-not-need-an-effect.md
- Lifecycle of Reactive Effects π§: learn/lifecycle-of-reactive-effects.md
- Separating Events from Effects π§: learn/separating-events-from-effects.md
- Removing Effect Dependencies π§: learn/removing-effect-dependencies.md
- Reusing Logic with Custom Hooks π§: learn/reusing-logic-with-custom-hooks.md
- Communicating Data Between Server and Client π§: learn/communicate-data-between-server-and-client.md
- Convert Between VDOM and HTML π§: learn/convert-between-vdom-and-html.md
- VDOM Mutations π§: learn/vdom-mutations.md
- Creating VDOM Event Handlers π§: learn/creating-vdom-event-handlers.md
- Creating HTML Tags π§: learn/creating-html-tags.md
- Creating Backends π§: learn/creating-backends.md
- Manually Register a Client π§: learn/manually-register-a-client.md
- Reference:
- Overview: reference/overview.md
- Hooks:
- Use State π§: reference/use-state.md
- Use Effect π§: reference/use-effect.md
- Use Async Effect π§: reference/use-async-effect.md
- Use Context π§: reference/use-context.md
- Use Reducer π§: reference/use-reducer.md
- Use Callback π§: reference/use-callback.md
- Use Memo π§: reference/use-memo.md
- Use Ref π§: reference/use-ref.md
- Use Debug Value π§: reference/use-debug-value.md
- Use Connection π§: reference/use-connection.md
- Use Scope π§: reference/use-scope.md
- Use Location π§: reference/use-location.md
- HTML Tags:
- Common Props π§: reference/common-props.md
- Usage π§: reference/usage.md
- Executors:
- ReactPy: reference/reactpy.md
- ReactPyCsr π§: reference/reactpy-csr.md
- ReactPyMiddleware π§: reference/reactpy-middleware.md
- Rules of React:
- Overview π§: reference/rules-of-react.md
- Components and Hooks must be pure π§: reference/components-and-hooks-must-be-pure.md
- React calls Components and Hooks π§: reference/react-calls-components-and-hooks.md
- Rules of Hooks π§: reference/rules-of-hooks.md
- Template Tags:
- Jinja π§: reference/jinja.md
- Protocol Structure π§: reference/protocol-structure.md
- Client API π§: reference/client-api.md
- About:
- Changelog π§: about/changelog.md
- Community π§: about/community.md
- Running Tests π§: about/running-tests.md
- Contributing Code π§: about/code.md
- Contributing Documentation π§: about/docs.md
- Licenses π§: about/licenses.md
theme:
name: material
custom_dir: overrides
palette:
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/white-balance-sunny
name: Switch to light mode
primary: red # We use red to indicate that something is unthemed
accent: red
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/weather-night
name: Switch to dark mode
primary: white
accent: red
features:
# - navigation.instant
- navigation.tabs
- navigation.tabs.sticky
- navigation.top
- content.code.copy
- search.highlight
icon:
repo: fontawesome/brands/github
admonition:
note: fontawesome/solid/note-sticky
logo: https://raw.githubusercontent.com/reactive-python/reactpy/main/branding/svg/reactpy-logo-square.svg
favicon: https://raw.githubusercontent.com/reactive-python/reactpy/main/branding/svg/reactpy-logo-square.svg
markdown_extensions:
- toc:
permalink: true
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.tabbed:
alternate_style: true
- pymdownx.highlight:
linenums: true
- pymdownx.superfences
- pymdownx.details
- pymdownx.inlinehilite
- admonition
- attr_list
- md_in_html
- pymdownx.keys
plugins:
- search
- include-markdown
- git-authors
# - section-index
- minify:
minify_html: true
minify_js: true
minify_css: true
cache_safe: true
- git-revision-date-localized:
fallback_to_build_date: true
# - spellcheck:
# known_words: dictionary.txt
# allow_unicode: no
- mkdocstrings:
default_handler: python
handlers:
python:
paths: ["../"]
import:
- https://installer.readthedocs.io/en/stable/objects.inv
options:
signature_crossrefs: true
scoped_crossrefs: true
relative_crossrefs: true
modernize_annotations: true
unwrap_annotated: true
find_stubs_package: true
show_root_members_full_path: true
show_bases: false
show_source: false
show_root_toc_entry: false
show_labels: false
show_symbol_type_toc: true
show_symbol_type_heading: true
show_object_full_path: true
heading_level: 3
extra:
generator: false
version:
provider: mike
extra_javascript:
- assets/js/main.js
extra_css:
- assets/css/main.css
- assets/css/button.css
- assets/css/admonition.css
- assets/css/banner.css
- assets/css/sidebar.css
- assets/css/navbar.css
- assets/css/table-of-contents.css
- assets/css/code.css
- assets/css/footer.css
- assets/css/home.css
watch:
- "../docs"
- ../README.md
- ../CHANGELOG.md
- ../LICENSE.md
- "../src"
site_name: ReactPy
site_author: Archmonger
site_description: It's React, but in Python.
copyright: '©<div id="year"> </div> <script> document.getElementById("year").innerHTML = new Date().getFullYear(); </script>Reactive Python and affiliates.<div class="legal-footer-right">This project has no affiliation to ReactJS or Meta Platforms, Inc.</div>'
repo_url: https://github.com/reactive-python/reactpy
site_url: https://reactive-python.github.io/reactpy
repo_name: ReactPy
edit_uri: edit/main/docs/src
docs_dir: src