-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Change release and whatsnew #21599
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 48 commits
ed7380f
721a41e
8fb4fc7
d99c1da
583320c
f6b1ee2
33521c8
7cc8ca2
fbc6bc6
888306b
229d800
9cc76b0
447a3f4
91ae6c0
af1551f
47a868a
bd723e3
3ad4a66
7669ce5
1114bb7
bd439c9
58e53b8
59bfdd6
56ae2a6
0fe6baf
64a745c
526d0c5
6fdb7f7
7e4ec6e
6103af6
e28dfe1
38859b5
a88a24a
b4545bf
d9b0480
d2bc58a
ce1c134
0922b14
5f7ca10
86fbb6c
9939332
8b1f91b
99a2fb6
33ea13b
e7d7f1d
9d8c6f9
69be4b5
3d9215d
61334d0
1d8ad73
1527aab
8a7e3e7
34be519
059e0bd
bc5d49e
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 |
---|---|---|
|
@@ -40,7 +40,6 @@ | |
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# sys.path.append(os.path.abspath('.')) | ||
sys.path.insert(0, os.path.abspath('../sphinxext')) | ||
|
||
sys.path.extend([ | ||
|
||
# numpy standard doc extensions | ||
|
@@ -75,6 +74,7 @@ | |
'sphinx.ext.ifconfig', | ||
'sphinx.ext.linkcode', | ||
'nbsphinx', | ||
'contributors', # custom pandas extension | ||
] | ||
|
||
try: | ||
|
@@ -120,7 +120,9 @@ | |
templates_path = ['../_templates'] | ||
|
||
# The suffix of source filenames. | ||
source_suffix = '.rst' | ||
source_suffix = [ | ||
'.rst', | ||
] | ||
|
||
# The encoding of source files. | ||
source_encoding = 'utf-8' | ||
|
@@ -298,8 +300,26 @@ | |
for page in moved_api_pages | ||
} | ||
|
||
|
||
common_imports = """\ | ||
.. currentmodule:: pandas | ||
|
||
.. ipython:: python | ||
:suppress: | ||
|
||
import numpy as np | ||
from pandas import * | ||
import pandas as pd | ||
randn = np.random.randn | ||
np.set_printoptions(precision=4, suppress=True) | ||
options.display.max_rows = 15 | ||
from pandas.compat import StringIO | ||
""" | ||
|
||
|
||
html_context = { | ||
'redirects': {old: new for old, new in moved_api_pages} | ||
'redirects': {old: new for old, new in moved_api_pages}, | ||
'common_imports': common_imports, | ||
} | ||
|
||
# If false, no module index is generated. | ||
|
@@ -654,7 +674,23 @@ def process_class_docstrings(app, what, name, obj, options, lines): | |
] | ||
|
||
|
||
def rstjinja(app, docname, source): | ||
""" | ||
Render our pages as a jinja template for fancy templating goodness. | ||
""" | ||
# http://ericholscher.com/blog/2016/jul/25/integrating-jinja-rst-sphinx/ | ||
# Make sure we're outputting HTML | ||
if app.builder.format != 'html': | ||
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. Hmm I should look into what happens for PDF. We should be able to handle it just fine. |
||
return | ||
src = source[0] | ||
rendered = app.builder.templates.render_string( | ||
src, app.config.html_context | ||
) | ||
source[0] = rendered | ||
|
||
|
||
def setup(app): | ||
app.connect("source-read", rstjinja) | ||
app.connect("autodoc-process-docstring", remove_flags_docstring) | ||
app.connect("autodoc-process-docstring", process_class_docstrings) | ||
app.add_autodocumenter(AccessorDocumenter) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,7 @@ See the package overview for more detail about what's in the library. | |
{{ single_doc }} | ||
{% endif -%} | ||
{% if not single_doc -%} | ||
whatsnew | ||
What's New <whatsnew/v0.24.0> | ||
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. We'll update this as part of the post-release process. |
||
install | ||
contributing | ||
overview | ||
|
@@ -159,5 +159,5 @@ See the package overview for more detail about what's in the library. | |
developer | ||
internals | ||
extending | ||
release | ||
releases | ||
{% endif -%} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
.. _release: | ||
|
||
************* | ||
Release Notes | ||
************* | ||
|
||
This is the list of changes to pandas between each release. For full details, | ||
see the commit logs at http://github.com/pandas-dev/pandas. For install and | ||
upgrade instructions, see :ref:`install`. | ||
|
||
0.24 release | ||
------------ | ||
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. I think it would look better (also looking at your render from the OP) to have + Version 0.24
- 0.24 release
------------ etc. |
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.24.0 | ||
|
||
0.23 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.23.4 | ||
whatsnew/v0.23.3 | ||
whatsnew/v0.23.2 | ||
whatsnew/v0.23.1 | ||
whatsnew/v0.23.0 | ||
|
||
0.22 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.22.0 | ||
|
||
0.21 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.21.0 | ||
whatsnew/v0.21.1 | ||
|
||
0.20 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.20.0 | ||
whatsnew/v0.20.2 | ||
whatsnew/v0.20.3 | ||
|
||
0.19 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.19.0 | ||
whatsnew/v0.19.1 | ||
whatsnew/v0.19.2 | ||
|
||
0.18 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.18.0 | ||
whatsnew/v0.18.1 | ||
|
||
0.17 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.17.0 | ||
whatsnew/v0.17.1 | ||
|
||
0.16 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.16.0 | ||
whatsnew/v0.16.1 | ||
whatsnew/v0.16.2 | ||
|
||
0.15 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.15.0 | ||
whatsnew/v0.15.1 | ||
whatsnew/v0.15.2 | ||
|
||
0.14 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.14.0 | ||
whatsnew/v0.14.1 | ||
|
||
0.13 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.13.0 | ||
whatsnew/v0.13.1 | ||
|
||
0.12 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.12.0 | ||
|
||
0.11 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.11.0 | ||
|
||
0.10 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.10.0 | ||
whatsnew/v0.10.1 | ||
|
||
0.9 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.9.0 | ||
whatsnew/v0.9.1 | ||
|
||
0.8 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.8.0 | ||
whatsnew/v0.8.1 | ||
|
||
0.7 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.7.0 | ||
whatsnew/v0.7.1 | ||
whatsnew/v0.7.2 | ||
whatsnew/v0.7.3 | ||
|
||
0.6 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
|
||
whatsnew/v0.6.0 | ||
whatsnew/v0.6.1 | ||
|
||
0.5 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
|
||
whatsnew/v0.5.0 | ||
|
||
0.4 release | ||
------------ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
whatsnew/v0.4.x |
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.
Previously we had this at the top of whatsnew.rst. Now it has to be in every
whatsnew/v0.x.x.txt
, as they are no longer literally included below this. Usage is just{{ common_imports }}