Skip to content

Commit 5467978

Browse files
behacklleotrshuguesdevimeux
authored
Improve/extend reference manual (#438)
* include _all_ modules in reference manual * improve table of contents in sidebar * modify class template: no longer use separate files for all methods * no signatures in table overview * rewrite code_mobject module docstring * add one-line module docstrings * rudimentary documentation of changing.py * add example to ValueTracker * clarify that Text does not use LaTeX Co-authored-by: Leo Torres <[email protected]> Co-authored-by: Hugues Devimeux <[email protected]>
1 parent 1f02ae0 commit 5467978

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+466
-164
lines changed

docs/source/_templates/autosummary/class.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
.. currentmodule:: {{ module }}
44

55
.. autoclass:: {{ objname }}
6+
:members:
67

78
{% block methods %}
89
{%- if methods %}
910
.. rubric:: {{ _('Methods') }}
1011

1112
.. autosummary::
1213
:nosignatures:
13-
:toctree: .
1414
{% for item in methods if item != '__init__' and item not in inherited_members %}
1515
~{{ name }}.{{ item }}
1616
{%- endfor %}

docs/source/reference.rst

Lines changed: 77 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,85 @@ the :doc:`changelog`.
88

99
.. warning:: The pages linked to here are currently a work in progress.
1010

11-
12-
List of Modules
13-
***************
14-
1511
.. currentmodule:: manim
1612

17-
**Mathematical Objects**
13+
********************
14+
Mathematical Objects
15+
********************
1816

1917
.. autosummary::
2018
:toctree: reference
2119

22-
~mobject.mobject
23-
~mobject.types.vectorized_mobject
20+
~mobject.changing
21+
~mobject.coordinate_systems
22+
~mobject.frame
23+
~mobject.functions
2424
~mobject.geometry
25+
~mobject.matrix
26+
~mobject.mobject
27+
~mobject.mobject_update_utils
2528
~mobject.number_line
29+
~mobject.numbers
30+
~mobject.probability
31+
~mobject.shape_matchers
32+
~mobject.three_d_shading_utils
33+
~mobject.three_d_utils
34+
~mobject.three_dimensions
35+
~mobject.value_tracker
36+
~mobject.vector_field
37+
~mobject.svg.brace
38+
~mobject.svg.code_mobject
39+
~mobject.svg.drawings
2640
~mobject.svg.svg_mobject
41+
~mobject.svg.tex_mobject
42+
~mobject.svg.text_mobject
43+
~mobject.types.image_mobject
44+
~mobject.types.point_cloud_mobject
45+
~mobject.types.vectorized_mobject
2746

2847

29-
**Scenes**
48+
******
49+
Scenes
50+
******
3051

3152
.. autosummary::
3253
:toctree: reference
3354

55+
~scene.graph_scene
56+
~scene.moving_camera_scene
57+
~scene.reconfigurable_scene
58+
~scene.sample_space_scene
3459
~scene.scene
60+
~scene.scene_file_writer
61+
~scene.three_d_scene
62+
~scene.vector_space_scene
3563
~scene.zoomed_scene
36-
~scene.moving_camera_scene
3764

3865

39-
**Animations**
66+
**********
67+
Animations
68+
**********
4069

4170
.. autosummary::
4271
:toctree: reference
4372

4473
~animation.animation
74+
~animation.composition
4575
~animation.creation
4676
~animation.fading
47-
~animation.composition
77+
~animation.growing
78+
~animation.indication
79+
~animation.movement
80+
~animation.numbers
81+
~animation.rotation
82+
~animation.specialized
83+
~animation.transform
84+
~animation.update
4885

4986

50-
**Cameras**
87+
*******
88+
Cameras
89+
*******
5190

5291
.. autosummary::
5392
:toctree: reference
@@ -59,7 +98,32 @@ List of Modules
5998
~camera.three_d_camera
6099

61100

62-
**Other modules**
101+
*********
102+
Utilities
103+
*********
104+
105+
.. autosummary::
106+
:toctree: reference
107+
108+
~utils.bezier
109+
~utils.color
110+
~utils.config_ops
111+
~utils.hashing
112+
~utils.images
113+
~utils.iterables
114+
~utils.paths
115+
~utils.rate_functions
116+
~utils.simple_functions
117+
~utils.sounds
118+
~utils.space_ops
119+
~utils.strings
120+
~utils.tex
121+
~utils.tex_file_writing
122+
123+
124+
*************
125+
Other modules
126+
*************
63127

64128
.. autosummary::
65129
:toctree: reference

manim/animation/growing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Animations that grow mobjects."""
2+
13
__all__ = [
24
"GrowFromPoint",
35
"GrowFromCenter",

manim/animation/indication.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Animations drawing attention to particular mobjects."""
2+
13
__all__ = [
24
"FocusOn",
35
"Indicate",

manim/animation/movement.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Animations related to movement."""
2+
13
__all__ = [
24
"Homotopy",
35
"SmoothedVectorizedHomotopy",

manim/animation/numbers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Animations for changing numbers."""
2+
13
__all__ = ["ChangingDecimal", "ChangeDecimalToValue"]
24

35

manim/animation/rotation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Animations related to rotation."""
2+
13
__all__ = ["Rotating", "Rotate"]
24

35

manim/animation/specialized.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Animations for highly specialiced applications."""
2+
13
__all__ = ["MoveCar", "Broadcast"]
24

35

manim/animation/transform.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Animations transforming one mobject into another."""
2+
13
__all__ = [
24
"Transform",
35
"ReplacementTransform",

manim/animation/update.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Animations that update mobjects."""
2+
13
__all__ = ["UpdateFromFunc", "UpdateFromAlphaFunc", "MaintainPositionRelativeTo"]
24

35

0 commit comments

Comments
 (0)