Skip to content

Conversation

jsonvillanueva
Copy link
Member

@jsonvillanueva jsonvillanueva commented Mar 21, 2021

Motivation

The GitHub Wiki pages are often overlooked when contributing to Manim. By providing these pages under our sphinx documentation, contributors are more likely to properly install Manim for development and more easily find appropriate sections for their specific contributions.

Acknowledgements

  • I have read the Contributing Guidelines
  • I have chosen a descriptive PR title (see top of PR template for examples)

Reviewer Checklist

  • Newly added functions/classes are either private or have a docstring
  • Newly added functions/classes have tests added and (optional) examples in the docs
  • Newly added documentation builds, looks correctly formatted, and adds no additional build warnings
  • The PR title is descriptive enough

@jsonvillanueva jsonvillanueva added documentation Improvements or additions to documentation pr:dependent This PR or issue requires that another PR is merged first labels Mar 21, 2021
@jsonvillanueva jsonvillanueva changed the title Adds testing/documentation from GitHub Wiki to Sphinx Docs Added testing/documentation from GitHub Wiki to Sphinx Docs Mar 21, 2021
@jsonvillanueva jsonvillanueva added the pr:easy review There is nothing particular (i.e, it's about a general/small thing) to know for review! label Mar 21, 2021
@GameDungeon GameDungeon mentioned this pull request Mar 25, 2021
6 tasks
@github-actions github-actions bot removed the pr:dependent This PR or issue requires that another PR is merged first label Mar 30, 2021
Copy link
Member

@behackl behackl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for moving the wiki pages to our documentation!

While reading, I noticed that in particular the section on adding typings doesn't really represent our current recommended best practice (type hints in the code, as opposed to specifying the types in the docstring) any longer. However, I think these issues should be addressed in a new PR.

I've added some minor suggestions; if you agree with them, then please apply them -- and otherwise, this can (IMO) be merged.

Comment on lines +41 to +46
the class docstring**, *rather than under* ``__init__``. Note that this
can be omitted if the parameters and the attributes are the exact same
(i.e., dataclass) - priority should be given to the ``Attributes``
section, in this case, which must **always be present**, unless the
class specifies no attributes at all. (See more on Parameters in number
2 of this list.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't really follow this particular point regarding the Attributes-section. I'd encourage users to add it, but I don't think it would be fair to enforce it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you recommend updating this? Just removal of sentences involving Attributes?

Comment on lines +57 to +63
name : :class:`str`
The class's name.
id : :class:`int`
The class's id.
mobj : Optional[:class:`~.Mobject`], optional
The mobject linked to this instance. Defaults to `Mobject()` \
(is set to that if `None` is specified).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we explicitly mention that instead of specifying types in the docstring, using type hints would be preferred?

Copy link
Member Author

@jsonvillanueva jsonvillanueva Mar 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we should urge developers to enforce #52, or try to do type hints. I'll do a draft of this in a future commit to make the language more direct on our preference.

Comment on lines +232 to +233
Type specifications
~~~~~~~~~~~~~~~~~~~
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following section should also rather suggest type hints over adding the types in the docstrings.

@jsonvillanueva
Copy link
Member Author

jsonvillanueva commented Mar 31, 2021

On second thought, it would be better to provide further clarification/updates to our documentation guidelines in a separate PR. The main takeaway from this PR is to urge would-be contributors to read our the latest version of the docs and provide them in separate easily accessible pages.

Whenever that future PR is made (might not be by me), it'll still be relevant between releases when made.

I've opened an issue to follow-up this PR

@jsonvillanueva jsonvillanueva merged commit e384ce9 into ManimCommunity:master Mar 31, 2021
@jsonvillanueva jsonvillanueva deleted the wiki-to-docs branch March 31, 2021 09:25
@jsonvillanueva jsonvillanueva changed the title Added testing/documentation from GitHub Wiki to Sphinx Docs Added GitHub Wiki pages on adding testing/documentation to Sphinx Docs Mar 31, 2021
@behackl behackl added this to the Release v0.5.0 milestone Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pr:easy review There is nothing particular (i.e, it's about a general/small thing) to know for review!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants