manim/scripts/template_docsting_with_example.py
kolibril13 c05ee3e63c
Add examples to animation creation (#820)
* added creation animation

* added further animation

* added further animation + docstring template

* added further examples

* black

* one more update

* one more update

* one more update

* one more update

* one more update become

* hope that this will fix the build

* Apply suggestions from code review

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Leo Torres <dleonardotn@gmail.com>

* updated templates

* small fix

* tests

* Apply suggestions from code review

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update README.md

* merged master and typo in README.md

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Leo Torres <dleonardotn@gmail.com>
2020-12-13 12:41:06 +01:00

79 lines
1.3 KiB
Python

# see more documentation guidelines online here: https://github.com/ManimCommunity/manim/wiki/Documentation-guidelines-(WIP)
class SomeClass:
"""A one line description of the Class.
A short paragraph providing more details.
Deprecation warning
Extended Summary
Parameters
----------
scale_factor : :class:`float`
The factor used for scaling.
Returns
-------
:class:`~.VMobject`
Returns the modified :class:`~.VMobject`.
Tests
-----
Yields
-------
Receives
----------
Other Parameters
-----------------
Raises
------
:class:`TypeError`
If one element of the list is not an instance of VMobject
Warns
-----
Warnings
--------
Notes
-----
Examples
--------
.. manim:: AddTextLetterByLetterScene
:save_last_frame:
class AddTextLetterByLetterScene(Scene):
def construct(self):
t = Text("Hello World word by word")
self.play(AddTextWordByWord(t))
See Also
--------
:class:`ShowCreation`, :class:`~.ShowPassingFlash`
References
----------
Other useful directives:
.. tip::
This is currently only possible for class:`~.Text` and not for class:`~.MathTex`.
.. note::
This is something to note.
"""