File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,24 +16,26 @@ For API changes in older versions see
1616Changes for the latest version are listed below. For new features that were
1717added to Matplotlib, see :ref: `whats-new `.
1818
19- .. note ::
19+ .. ifconfig :: releaselevel == 'dev'
2020
21- The list below is a table of contents of individual files from the
22- 'next_api_changes' folder.
21+ .. note ::
2322
24- When a release is made
23+ The list below is a table of contents of individual files from the
24+ 'next_api_changes' folder.
2525
26- - All the files in 'next_api_changes/' should be moved to a single file in
27- 'prev_api_changes/'.
28- - The include directive below should be changed to point to the new file
29- created in the previous step.
30- - This note, and the toctree below should be commented out.
26+ When a release is made
3127
28+ - All the files in 'next_api_changes/' should be moved to a single file in
29+ 'prev_api_changes/'.
30+ - The include directive below should be changed to point to the new file
31+ created in the previous step.
32+ - This note, and the toctree below should be commented out.
3233
33- .. toctree ::
34- :glob:
35- :maxdepth: 1
3634
37- next_api_changes/*
35+ .. toctree ::
36+ :glob:
37+ :maxdepth: 1
38+
39+ next_api_changes/*
3840
3941.. include :: prev_api_changes/api_changes_3.1.0.rst
Original file line number Diff line number Diff line change 3434 'sphinx.ext.doctest' ,
3535 'sphinx.ext.inheritance_diagram' ,
3636 'sphinx.ext.intersphinx' ,
37+ 'sphinx.ext.ifconfig' ,
3738 'sphinx.ext.viewcode' ,
3839 'IPython.sphinxext.ipython_console_highlighting' ,
3940 'IPython.sphinxext.ipython_directive' ,
@@ -105,6 +106,7 @@ def _check_dependencies():
105106 'pandas' : ('https://pandas.pydata.org/pandas-docs/stable/' , None ),
106107 'Pillow' : ('https://pillow.readthedocs.io/en/stable/' , None ),
107108 'cycler' : ('https://matplotlib.org/cycler' , None ),
109+ 'dateutil' : ('https://dateutil.readthedocs.io/en/stable/' , None ),
108110}
109111
110112
@@ -350,3 +352,10 @@ def _check_dependencies():
350352 'babel' : r'\usepackage{babel}' ,
351353 'fontpkg' : r'\setmainfont{DejaVu Serif}' ,
352354}
355+
356+ def setup (app ):
357+ if any (st in version for st in ('post' , 'rc' , 'alpha' , 'beta' )):
358+ bld_type = 'dev'
359+ else :
360+ bld_type = 'rel'
361+ app .add_config_value ('releaselevel' , bld_type , 'env' )
You can’t perform that action at this time.
0 commit comments