-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Move content in doc/README.rst to doc/source/contributing.rst #23840
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
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.
@datapythonista I'm OK with this reorg
doc/README.rst
Outdated
Where to start? | ||
--------------- | ||
|
||
Please follow the documentation in ``doc/source/contributing.rst`` for a | ||
detailed guide on how to contribute to documentation |
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.
Could use a period at the end of this statement
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.
Done, thanks :)
Codecov Report
@@ Coverage Diff @@
## master #23840 +/- ##
==========================================
+ Coverage 92.29% 92.29% +<.01%
==========================================
Files 161 161
Lines 51490 51501 +11
==========================================
+ Hits 47521 47534 +13
+ Misses 3969 3967 -2
Continue to review full report at Codecov.
|
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.
Nice changes. The README wasn't updated, and I added some comments on things that can be removed or need some changes. Other than that, looks good.
doc/source/contributing.rst
Outdated
Starting with 0.13.1 you can tell ``make.py`` to compile only a single section | ||
of the docs, greatly reducing the turn-around time for checking your changes. | ||
You will be prompted to delete `.rst` files that aren't required, since the | ||
last committed version can always be restored from git. |
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.
You can delete those two last lines, that's not true anymore. Also the Starting with 0.13.1
, that version is from 2015, I think we can assume nobody is using it anymore.
doc/source/contributing.rst
Outdated
|
||
.. warning:: | ||
|
||
Sphinx version >= 1.2.2 or the older 1.1.3 is required. |
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.
You can remove the warning, I don't think that's true anymore, and in any cases, those versions are old enough to assume everybody uses something more modern.
doc/source/contributing.rst
Outdated
the notebooks included in the documentation. | ||
|
||
Furthermore, it is recommended to have all `optional dependencies | ||
<http://pandas.pydata.org/pandas-docs/dev/install.html#optional-dependencies>`_ |
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.
You can remove this paragraph, the optional dependencies file doesn't exist anymore, there is just a dependencies file now.
doc/README.rst
Outdated
Where to start? | ||
--------------- | ||
|
||
Please follow the documentation in ``doc/source/contributing.rst`` for a |
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'd remove the titles, and paragraphs and leave something as simple as:
See `doc/source/contributing.rst` in this repo, or the generated html version https://pandas.pydata.org/pandas-docs/stable/contributing.html
Not a big difference, but leaving the titles and some info gives the wrong impression that this is a page (that could be extended) instead of a "redirect".
doc/README.rst
Outdated
@@ -1,24 +1,3 @@ | |||
.. _contributing.docs: |
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.
Do you mind also removing this? I don't think we want to link to this README (and probably we can't as this is not in the sphinx sources dir). And it's confusing to have it here.
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.
lgtm, thanks @KimiJL
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 am not sure we need to add any content here.
doc/source/contributing.rst
Outdated
@@ -394,6 +399,31 @@ Requirements | |||
First, you need to have a development environment to be able to build pandas | |||
(see the docs on :ref:`creating a development environment above <contributing.dev_env>`). | |||
|
|||
To build the pandas docs there are some extra requirements: you will need to |
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.
this is very duplicative, Creating a Python Environment.
Totally fine with doing that, simple change |
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.
yes |
doc/README.rst
Outdated
Feel free to ask questions on `mailing list | ||
<https://groups.google.com/forum/?fromgroups#!forum/pydata>`_ or submit an | ||
issue on Github. | ||
See `doc/source/contributing.rst` in this repo, or the generated html version https://pandas.pydata.org/pandas-docs/stable/contributing.html |
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.
can you make the contributing link a markdown link. I think you can also path directly to the .rst with this link: https://github.com/pandas-dev/pandas/blob/master/doc/source/contributing.rst
I wasn't sure if this is what you meant by markdown link, is my new commit correct? |
Co-Authored-By: KimiJL <[email protected]>
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.
thanks @KimiJL |
git diff upstream/master -u -- "*.py" | flake8 --diff