-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Docs #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ion of CLI arguments
… command line flag
…lines, which is just a symlink to the main repository\'s contributing.md file.
Co-authored-by: Aathish Sivasubrahmanian <[email protected]>
Co-authored-by: Aathish Sivasubrahmanian <[email protected]>
Co-authored-by: Aathish Sivasubrahmanian <[email protected]>
Co-authored-by: Aathish Sivasubrahmanian <[email protected]>
Co-authored-by: Naveen M K <[email protected]>
Co-authored-by: Naveen M K <[email protected]>
|
Do we have yet conventions for names of Mobjects that are
Because at the moment when Maybe it would be nice to have here something like "constructed Mobjects" and " displayed Mobjects" |
I'm _so_happy you bring this up. We should definitely have conventions so we are clear and consistent across the documentation. I like "displayed". Relatedly, I'll just share another convention I was using when writing this PR: Use With these two conventions, we could change the sentences you highlighted to
What do you think? |
I like this! And do we want to make a new document for naming conventions? |
I'm not sure I understood you correctly, so I wanted to check. Here's a scene: import manim
class TestScene(manim.Scene):
def construct(self):
c = manim.Circle()
s = manim.Square()
self.add(c)
c.add(s)
self.wait(1)If you run this, it shows both the circle and the square. So the documentation should say something like
I think maybe the wiki is a better place for this. What do you think? |
Yes, but now that I read it, I think it is better to keep it simple, without the extra sentence that might cause more confusion then benefit. To make this sentence clear, maybe we can add your example later to the documentation examples |
That's fair. I'll add that sentence in the notes section instead. |
|
@kolibril13 I just pushed a bunch of changes after your review. Let me know if you think this is ready to be merged! |
huguesdevimeux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM !
|
Most comments have been addressed, just waiting on confirmation by @kolibril13 :) |
|
Approved! |
PgBiel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pepe
| Parameters | ||
| ---------- | ||
| mobjects : List[:class:`Mobject`] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we aren't expecting lists of mobjects, right?
| mobjects : List[:class:`Mobject`] | |
| mobjects : :class:`Mobject` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mobjects is always a list, no? How to specify it is packing all arguments passed?
| See Also | ||
| -------- | ||
| :meth:`~Mobject.remove` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i mean this can be shortened to just "remove" but we can let it be i guess
| Parameters | ||
| ---------- | ||
| mobjects : List[:class:`Mobject`] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| mobjects : List[:class:`Mobject`] | |
| mobjects : :class:`Mobject` |
Some progress in documentation. The changes in this PR can be summarized in three types:
The API reference pages are autogenerated, and the tables looked a bit tight/ugly. So this PR adds 10px padding on them by using a custom css file. This accounts for the diff in
custom.cssandconf.py.The autogenerated rst files themselves were littered with blank lines and were hard to read (at least for me). This PR changes the template minimally in order to fix that. This accounts for the diff in
class.rst.I wrote docstrings for Mobject, Group, Mobject.add and Mobject.remove. This accounts for the diff in
mobject.py.I added module-level docstrings to start populating the API reference page. This accounts for the diff in all remaining files.
EDIT: apologies for the messy commit history!