-
-
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
Changes from 2 commits
c98e523
211c96f
4b8e2e1
a2fbaa3
fcd7e6c
a8966b8
4872a62
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,13 +258,18 @@ you created the branch, check the section on | |
Contributing to the documentation | ||
================================= | ||
|
||
Contributing to the documentation benefits everyone who uses *pandas*. | ||
We encourage you to help us improve the documentation, and | ||
you don't have to be an expert on *pandas* to do so! In fact, | ||
there are sections of the docs that are worse off after being written by | ||
experts. If something in the docs doesn't make sense to you, updating the | ||
relevant section after you figure it out is a great way to ensure it will help | ||
the next person. | ||
Whether you are someone who loves writing, teaching, or development, | ||
contributing to the documentation is a huge value. If you don't see yourself | ||
as a developer type, please don't stress and know that we want you to | ||
contribute. You don't even have to be an expert on *pandas* to do so! | ||
Something as simple as rewriting small passages for clarity | ||
as you reference the docs is a simple but effective way to contribute. The | ||
next person to read that passage will be in your debt! | ||
|
||
Actually, there are sections of the docs that are worse off by being written | ||
by experts. If something in the docs doesn't make sense to you, updating the | ||
relevant section after you figure it out is a simple way to ensure it will | ||
help the next person. | ||
|
||
.. contents:: Documentation: | ||
:local: | ||
|
@@ -394,6 +399,43 @@ 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 commentThe reason will be displayed to describe this comment to others. Learn more. this is very duplicative, Creating a Python Environment. |
||
have ``sphinx`` and ``ipython`` installed. `numpydoc | ||
<https://github.com/numpy/numpydoc>`_ is used to parse the docstrings that | ||
follow the Numpy Docstring Standard (see above), but you don't need to install | ||
this because a local copy of ``numpydoc`` is included in the pandas source | ||
code. `nbsphinx <https://nbsphinx.readthedocs.io/>`_ is used to convert | ||
Jupyter notebooks. You will need to install it if you intend to modify any of | ||
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 commentThe 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. |
||
installed. This is not needed, but be aware that you will see some error | ||
messages. Because all the code in the documentation is executed during the doc | ||
build, the examples using this optional dependencies will generate errors. | ||
Run ``pd.show_versions()`` to get an overview of the installed version of all | ||
dependencies. | ||
|
||
.. 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 commentThe 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. |
||
|
||
Building pandas | ||
^^^^^^^^^^^^^^^ | ||
|
||
For a step-by-step overview on how to set up your environment, to work with | ||
the pandas code and git, see `the developer pages | ||
<http://pandas.pydata.org/developers.html#working-with-the-code>`_. | ||
When you start to work on some docs, be sure to update your code to the latest | ||
development version ('master'):: | ||
|
||
git fetch upstream | ||
git merge upstream/master | ||
|
||
Often it will be necessary to rebuild the C extension after updating:: | ||
|
||
python setup.py build_ext --inplace | ||
|
||
Building the documentation | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
|
@@ -413,8 +455,11 @@ If you want to do a full clean build, do:: | |
python make.py clean | ||
python make.py html | ||
|
||
You can tell ``make.py`` to compile only a single section of the docs, greatly | ||
reducing the turn-around time for checking your changes. | ||
|
||
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 commentThe 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 |
||
|
||
:: | ||
|
||
|
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:
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".