* Add option to run examples directly with binder
The minified JS is from
https://github.com/naveen521kk/manim-binder
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* slight style changes
* update the js file to fix on chrome
Signed-off-by: Naveen M K <naveen521kk@gmail.com>
* show the run button as an cursor
* make the video to be 100% of the width
* Update manim/utils/docbuild/manim_directive.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Add a "Make interactive" button instead of "Run" button
Clicking on the "Make interactive" button show the code-editor and "run" button
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update margin for run interactive button
---------
Signed-off-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
This is new feature of `sphinxext-opengraph` which will automatically
generate social cards for the documentation. This is a new feature and
it is not enabled is there is a custom `ogp_image` defined, which we
do. Remove it and also make sure it adds our logo to the social cards.
* addition(bezier.py): adding subdivide_quadratic_bezier and split_quadratic_bezier functions, change(OpenGLVMobject) get_bezier_tuples_from_points now uses reshape instead of manually creating a list
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/utils/bezier.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added example and changed documentation of the code
* Added another example
* Fix raw string issue in docs
* nvm because i forgot this only works for opengl renderer
* Added image
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Guide on performance
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update docs/source/contributing/performance.rst
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Try to get code block to render
* Update docs/source/contributing/performance.rst
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* try fix
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Perparing for internationalization
* On my way to i18n
* Making initial .pot
* Apply translations in fr
review completed for the source file '/docs/i18n/gettext/examples/camera_settings.pot'
on the 'fr' language.
* Apply translations in fr
review completed for the source file '/docs/i18n/gettext/examples/camera_settings.pot'
on the 'fr' language.
* Added some languages and changing files
* Removing translations, keeping only en
* Updating the commit history so docs are redownloaded
* Adding a bit of texts to add contributing.rst
* Apply translations in fr
at least 5% reviewed for the source file '/docs/i18n/en/LC_MESSAGES/reference/manim.mobject.geometry.CubicBezier.po'
on the 'fr' language.
Manual sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format
* Apply translations in fr
at least 5% reviewed for the source file '/docs/i18n/en/LC_MESSAGES/reference/manim.mobject.types.vectorized_mobject.po'
on the 'fr' language.
Manual sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format
* Translate /docs/i18n/en/LC_MESSAGES/index.po in fr
at least 15% reviewed for the source file '/docs/i18n/en/LC_MESSAGES/index.po'
on the 'fr' language.
Manual sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format
* Apply translations in fr
at least 15% reviewed for the source file '/docs/i18n/en/LC_MESSAGES/reference/manim.mobject.geometry.CubicBezier.po'
on the 'fr' language.
Manual sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format
* Apply translations in fr
at least 15% reviewed for the source file '/docs/i18n/en/LC_MESSAGES/reference/manim.mobject.types.vectorized_mobject.po'
on the 'fr' language.
Manual sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format
* Modified the Makefile a bit
* Added a first script to strip untranslatable content out
* Added some stripping code that needs to be re-worked.
* Finished the awk script. Commented it (a little gift to my future self).
Still need to test the generated files
Also removed the gettext folder from .gitignore
* Added folders in the .gitignore and comments to the awk script
* Pof, added the readyForTranslation file
* Removed french translations, hoping transifex will reset them
* Modified the files to trigger transifex changes
* Made the comment made by stripUntranslatable compatible with .po files syntax
* Tried another fix
* Another one bites the dust
* Why the reason is not necessary to involve ?
* Fixed .... i think
* Translate /docs/i18n/en/LC_MESSAGES/index.po in fr
at least 1% reviewed for the source file '/docs/i18n/en/LC_MESSAGES/index.po'
on the 'fr' language.
Manual sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format
* Added a paragraph in the docs explaining how to translate
* Changed the contributing a bit, thanks jpitz
* Tweaked the docs part a bit more
* Fixed a link and updated i18n
* REREREupdated the link
* How did i get my driving licence ?
* Little test about i18n build
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* New internationalized files.
* Corrected some grammar errors. Whoops.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fixed typo in awk file comments.
* Fix the precommit issues.
* Apply suggestions from code review - Rewrote parts of the contributing text.
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* Add link to discord server in translation.rst
* Suppression des en-tête inutiles des fichiers PO.
* Changed i18nService role to TranslationAdmin
* Translate /docs/i18n/en/LC_MESSAGES/index.po in fr
reviewed for the source file '/docs/i18n/en/LC_MESSAGES/index.po'
on the 'fr' language.
* Renamed the internationalization doc file. + Now every translatable string is sent to translation.
* Minor copyedit suggested by @Darylgolden
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Co-authored-by: Mysaa <mysaa@bernard.com.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GameDungeon <60719255+GameDungeon@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* move plugins
* plugins in main sidebar
* restructure installation guide
* fix some removed references
* more sphinx fixes
* restructured developer installation, more cleanup
* rename some files
* rewrote MacOS installation instructions
* rewrote the windows installation guide
* cleaned up linux installation instructions
* added a lot of colons
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
* improve first paragraph of installation.rst
* move docker and jupyter to separate files
* Copyediting
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* change wording regarding colab env
* copyediting, second pass
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* first mention recommended ffmpeg installation for windows
* move admonition above table of contents
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* Added a new image
* Updated the example and deleted the static image.
* Update rate_functions.py
* Update rate_functions.py
* Apply suggestions from code review
Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
* test
* revert test changes
* add inheritance map
* Configure Graph to fit dark theme
* Add inheritance graphs to each section in reference
* Responsive color scheme
* remove unnecessary comment
* remove more stuff from testing
* and more still
* Update docs/source/_static/responsiveSvg.js
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Add graphviz explanation to docs
* add background color fix for chrome
* Add subheadings
* Chnaged Headings to singular and bold
Apply suggestions from code review
Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
* prototype: switch from guzzle-sphinx-theme to furo
* try workaround for displaying navbar elements
* more specific css targeting
* further color adjustments
* manim-example block: larger font size
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove unused import
* increase font size for references
* fix hover colors
* html_title with explicit version
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
* Added click dependency and command structure
* Refactored code for separation of concerns
* Shortened plugins command to plugin, added render options
* first draft for render -h
* First successful render using click
* Cleaned main
* Moved flush_cache to option, ran black
* Removed argparse logic, scattered print statements
* corrected tests, all passing
* merge upstream
* fixed test with click's clirunner
* Fixed doctest configuration.rst
* Temporarily add in main_utils
* Removed main_utils.parse_args, used ManimConfig.digest_args
* fixed progress bar
* Fix jupyter
* black
* Fixed incorrectly merged merge conflict
* updated README command.png image
* updated configuration.rst expected output
* Fixed test_plugins and config_file expected type
* Refixed the jupyter fix
* Apply 3/5 suggestions
Remove stray print
Improve readability of test code
Added module docs for the subcommands
* Updated `main` to `manim` for tests
* Forced `file` positional argument to be Path type
* Fixed main -> manim
* Added libpango to linux dependency
* Updated poetry.lock
* Changed configuration.rst test
* Fixed test_a_flag test
minor space issue
added media_width to configuration.rst
* Fixed fps flag in Cairo rendering
* Fixed more outdated rst in sphinx docs
Removed default for fps option, always overwrote quality
Fixed doctest control_data
* Fixed more incorrect rst orderings
* Update tests/test_commands.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Added suggestions
* Removed unused imports
* Reverted entry point back to main
* Update manim/_config/default.cfg
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Adjusted ipython_magic's call to the entry_point
* Converted frame_rate to int if integer
* run black
* Fixed doctest
* Fixed issue with command name from CliRunner
* Fixed multiple video windows opening from upstream merge
* to black or not to black
* Added deprecation warning to render subcommand
* warning instead of warn
* Applied Naveen's suggestions
* Made `manim render` show the help page
* Update manim/cli/render/commands.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update manim/cli/cfg/commands.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update manim/cli/cfg/commands.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update manim/cli/plugins/commands.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Addressed some style changes
* add back in write_to_movie temporarily for OpenGL support
* Removed sound flag, deprecated use_opengl_renderer, added renderer option
* revert webgl_renderer_path removal
* Fixed cfg export
Fixed readme usage of CLI
* Flake8/black
* Fixed bug in setting renderer choice
* Removed log message due to default option
Removed default option of background color
Fixed write_to_movie flag default
* Fix log_to_file tests
* Make '-c' option for config_file, not background_color
* print colored version always
* Remove -v = --version shorthand, conflicts with verbosity
* Use subprocess.run instead of Click's CliRunner for stdout
* Refactor cli/render to use Cloup instead of click-option-group
1) There's a new file for each option group
2) render is now a cloup.Command, not a Group
Fixed issue when an animation is cached, manim can't merge the partial movie files. (#1192)
* fixed issue
* fixed tests
* Update manim/renderer/cairo_renderer.py
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* added tests
* imrpoved test
* fixed logic
* added new test
* check if the file has been outputed
* added test when caching is enabled
* fixed tests on windows
* black
* Update manim/renderer/cairo_renderer.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update tests/assert_utils.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Added :ref_methods: to the manim directive (#1209)
* fix manim_directive for methods
* added ref_methods to Angle example
* black
* added new ref_methods references
* sort out ref_functions vs ref_methods in examples.rst
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Fixed issue when an animation is cached, manim can't merge the partial movie files. (#1192)
* fixed issue
* fixed tests
* Update manim/renderer/cairo_renderer.py
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* added tests
* imrpoved test
* fixed logic
* added new test
* check if the file has been outputed
* added test when caching is enabled
* fixed tests on windows
* black
* Update manim/renderer/cairo_renderer.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update tests/assert_utils.py
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Added :ref_methods: to the manim directive (#1209)
* fix manim_directive for methods
* added ref_methods to Angle example
* black
* added new ref_methods references
* sort out ref_functions vs ref_methods in examples.rst
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Fixed unnecessary args dict
* Fixed bug that changed caching hashing result
* Revert doctest logic for fps filename output
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Gianluca Gippetto <gianluca.gippetto@gmail.com>
* Added precommit for black, updated contributing documentation
Updated contributing.rst and related files
Fixed some grammar, added pre-commit section
* picked pre-commit version, removed redundant language_version
* Fix section headings
* Update docs/source/contributing.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update docs/source/contributing.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update docs/source/contributing.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update docs/source/contributing.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update docs/source/contributing.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update docs/source/contributing.rst
* Update docs/source/contributing.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update docs/source/contributing.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Add in missing flake stuff to lock
* Added flake8 to pre-commit
* added newlines at the end of .flake8 and .pre-commit-config.yaml
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Apply suggestions from code review
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Reorder mentioning of tests after writing code
* Removed extra -
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Clean up README
* update flags
* Apply suggestions from code review
* updated command.png
* removed redundant files from readme-asserts and used files from docs/_static instead
* change to relative parts
Co-authored-by: Leo Torres <leo@leotrs.com>
Co-authored-by: kolibril13 <jan-hendrik.mueller@gmx.net>
* redesign documentation \o/
* outline 0 for videos
* forgot border-color for source blocks
* adapt styling for example references
* change link and text color
* suggestion for new order of top-level docs
* mathematical objects --> mobjects
* add seealso options to manim directive
* illustrate use of seealso_classes
* remove unneeded import
* rename: seealso -> ref
* custom styling
* change to ref_classes in example
* add a section to the quickstart explaining the basics of building a scene
* add the internals_basic tutorial. Currently contains the section for Mobjects only
Co-authored by @behackl
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* add some module docstrings
* add some breathing room in the generated autosummaries
* edit template so it generates cleaner output
* document add and remove
* document new conf.py option
* updates from code review
Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* add output of manim -h to the documentation, as a poor man documentation of CLI arguments
* document config system and general changes in the description of each command line flag
* run black
* MacOS
* update
* Add configuration.rst back to the toctree. Add the contributing guidelines, which is just a symlink to the main repository\'s contributing.md file.
* add the symlinks
* fix length of underlines
* update contributing guidelines
* convert quickstart doc from md to rst. Also add a troubleshooting stub file
* finish the second part of the quickstart
* add general and linux instructions
* add mac instructions
* add windows install instructions
* final touches
* Update docs/source/installation/win.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Update a_deeper_look.rst
added explanation on the ``-s`` flag
* Update docs/source/installation/installation_linux.rst
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
* Update docs/source/installation/win.rst
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
* Update docs/source/installation/win.rst
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
* Update docs/source/installation/win.rst
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
* Update docs/source/installation/win.rst
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
* updates from code review
* update from code review
Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: kolibril13 <44469195+kolibril13@users.noreply.github.com>
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>