Skip to content

Commit 7983caf

Browse files
committed
one more round of organization
1 parent 01ec02b commit 7983caf

File tree

22 files changed

+107
-77
lines changed

22 files changed

+107
-77
lines changed

docs/source/_autogen/developer-apis.rst renamed to docs/source/_autogen/dev-apis.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Developer API
1+
Dev API
22
==============
33

44
.. automodule:: idom._option

docs/source/_exts/autogen_api_docs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
AUTOGEN_DIR.mkdir(exist_ok=True)
1414

1515
PUBLIC_API_REFERENCE_FILE = AUTOGEN_DIR / "user-apis.rst"
16-
PRIVATE_API_REFERENCE_FILE = AUTOGEN_DIR / "developer-apis.rst"
16+
PRIVATE_API_REFERENCE_FILE = AUTOGEN_DIR / "dev-apis.rst"
1717

1818

1919
PUBLIC_TITLE = "User API\n=============\n"
2020
PUBLIC_MISC_TITLE = "Misc Modules\n------------\n"
21-
PRIVATE_TITLE = "Developer API\n==============\n"
21+
PRIVATE_TITLE = "Dev API\n==============\n"
2222
PRIVATE_MISC_TITLE = "Misc Dev Modules\n----------------\n"
2323

2424
AUTODOC_TEMPLATE = ".. automodule:: {module}\n :members:\n"
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Adding Interactivity
2+
====================
3+
4+
.. toctree::
5+
:hidden:
6+
7+
responding-to-events
8+
components-with-state
9+
state-as-a-snapshot
10+
dangers-of-mutability
11+
batched-updates

docs/source/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"patched_html_translator",
6666
"widget_example",
6767
"build_custom_js",
68+
"myst_parser",
6869
]
6970

7071
# Add any paths that contain templates here, relative to this directory.
@@ -89,7 +90,9 @@
8990
# List of patterns, relative to source directory, that match files and
9091
# directories to ignore when looking for source files.
9192
# This pattern also affects html_static_path and html_extra_path.
92-
# exclude_patterns = []
93+
exclude_patterns = [
94+
"_custom_js",
95+
]
9396

9497
# The name of the Pygments (syntax highlighting) style to use.
9598
pygments_style = None

docs/source/development/contributing.rst renamed to docs/source/contributing/index.rst

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
Contributing
2-
============
1+
Contributing to IDOM
2+
====================
3+
4+
.. toctree::
5+
:hidden:
6+
7+
developer-guide
8+
changelog
9+
roadmap
310

411
.. note::
512

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Creating Interfaces
2+
===================
3+
4+
.. toctree::
5+
:hidden:
6+
7+
intro-to-html
8+
your-first-component
9+
parametrizing-components
10+
conditional-rendering
11+
dynamic-layout-structure

docs/source/escape-hatches/index.rst

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Escape Hatches
2+
==============
3+
4+
.. toctree::
5+
:hidden:
6+
7+
class-components
8+
javascript-components
9+
distributing-javascript
10+
11+
Under construction :)

docs/source/getting-started/index.rst

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Getting Started
2+
===============
3+
4+
.. toctree::
5+
:hidden:
6+
7+
installation
8+
running-idom
9+
why-idom

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Under construction :)
55

66

77
Configuring IDOM
8-
================
8+
----------------
99

1010
Under construction :)

docs/source/index.rst

+12-67
Original file line numberDiff line numberDiff line change
@@ -3,86 +3,31 @@ IDOM
33

44
.. toctree::
55
:hidden:
6-
:caption: Getting Started
6+
:caption: User Guide
77

8-
getting-started/installation
9-
getting-started/running-idom
8+
getting-started/index
9+
creating-interfaces/index
10+
adding-interactivity/index
11+
managing-state/index
12+
escape-hatches/index
1013

1114
.. toctree::
1215
:hidden:
13-
:caption: Creating Interfaces
16+
:caption: Other Resources
1417

15-
creating-interfaces/intro-to-html
16-
creating-interfaces/your-first-component
17-
creating-interfaces/parametrizing-components
18-
creating-interfaces/conditional-rendering
19-
creating-interfaces/dynamic-layout-structure
18+
understanding-idom/index
19+
contributing/index
20+
reference-material/index
2021

2122
.. toctree::
2223
:hidden:
23-
:caption: Adding Interactivity
24-
25-
adding-interactivity/responding-to-events
26-
adding-interactivity/stateful-components
27-
adding-interactivity/state-as-a-snapshot
28-
adding-interactivity/dangers-of-mutability
29-
adding-interactivity/batched-updates
30-
31-
.. toctree::
32-
:hidden:
33-
:caption: Managing State
34-
35-
managing-state/logical-flow-of-state
36-
managing-state/structuring-your-state
37-
managing-state/shared-component-state
38-
managing-state/when-to-reset-state
39-
40-
.. toctree::
41-
:hidden:
42-
:caption: Escape Hatches
43-
44-
escape-hatches/class-components
45-
escape-hatches/javascript-components
46-
escape-hatches/distributing-javascript
47-
48-
49-
.. toctree::
50-
:hidden:
51-
:caption: Understanding IDOM
52-
53-
understanding-idom/core-abstractions
54-
55-
56-
57-
.. toctree::
58-
:hidden:
59-
:caption: References
60-
61-
references/gallery
62-
references/hooks-api
63-
_autogen/user-apis
64-
references/why-idom
65-
references/specifications
66-
references/faq
67-
68-
.. toctree::
69-
:hidden:
70-
:caption: Development
71-
72-
development/contributing
73-
development/developer-guide
74-
_autogen/developer-apis
75-
development/changelog
76-
development/roadmap
77-
78-
.. toctree::
79-
:hidden:
80-
:caption: Resources
24+
:caption: External Links
8125

8226
Source Code <https://github.com/idom-team/idom>
8327
Community <https://github.com/idom-team/idom/discussions>
8428
Issues <https://github.com/idom-team/idom/issues>
8529

30+
8631
IDOM is a powerful Python web framework for building **interactive websites without
8732
needing a single line of Javascript**. It does this by breaking down complex
8833
applications into nestable and reusable chunks of code called "components" that allow

docs/source/managing-state/index.rst

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Managing State
2+
==============
3+
4+
.. toctree::
5+
:hidden:
6+
7+
logical-flow-of-state
8+
structuring-your-state
9+
shared-component-state
10+
when-to-reset-state
11+
12+
Under construction :)

docs/source/references/hooks-api.rst renamed to docs/source/reference-material/hooks-api.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
===================
2-
Hooks API Reference
3-
===================
1+
=========
2+
Hooks API
3+
=========
44

55
Hooks are functions that allow you to "hook into" the life cycle events and state of
66
Components. Their usage should always follow the :ref:`Rules of Hooks`. For most use
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Reference Material
2+
==================
3+
4+
.. toctree::
5+
:hidden:
6+
7+
gallery
8+
hooks-api
9+
/_autogen/user-apis
10+
/_autogen/dev-apis
11+
specifications
12+
faq
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Understanding IDOM
2+
==================
3+
4+
.. toctree::
5+
:hidden:
6+
7+
why-idom
8+
core-abstractions

requirements/build-docs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ sphinx-copybutton ==0.3.0
66
sphinx-autobuild ==2020.9.1
77
sphinx-reredirects ==0.0.1
88
sphinx-design ==0.0.12
9+
myst-parser ==0.15.2

0 commit comments

Comments
 (0)