File tree Expand file tree Collapse file tree 2 files changed +24
-13
lines changed Expand file tree Collapse file tree 2 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,26 @@ For API changes in older versions see
16
16
Changes for the latest version are listed below. For new features that were
17
17
added to Matplotlib, see :ref: `whats-new `.
18
18
19
- .. note ::
19
+ .. ifconfig :: releaselevel == 'dev'
20
20
21
- The list below is a table of contents of individual files from the
22
- 'next_api_changes' folder.
21
+ .. note ::
23
22
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.
25
25
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
31
27
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.
32
33
33
- .. toctree ::
34
- :glob:
35
- :maxdepth: 1
36
34
37
- next_api_changes/*
35
+ .. toctree ::
36
+ :glob:
37
+ :maxdepth: 1
38
+
39
+ next_api_changes/*
38
40
39
41
.. include :: prev_api_changes/api_changes_3.1.0.rst
Original file line number Diff line number Diff line change 34
34
'sphinx.ext.doctest' ,
35
35
'sphinx.ext.inheritance_diagram' ,
36
36
'sphinx.ext.intersphinx' ,
37
+ 'sphinx.ext.ifconfig' ,
37
38
'sphinx.ext.viewcode' ,
38
39
'IPython.sphinxext.ipython_console_highlighting' ,
39
40
'IPython.sphinxext.ipython_directive' ,
@@ -105,6 +106,7 @@ def _check_dependencies():
105
106
'pandas' : ('https://pandas.pydata.org/pandas-docs/stable/' , None ),
106
107
'Pillow' : ('https://pillow.readthedocs.io/en/stable/' , None ),
107
108
'cycler' : ('https://matplotlib.org/cycler' , None ),
109
+ 'dateutil' : ('https://dateutil.readthedocs.io/en/stable/' , None ),
108
110
}
109
111
110
112
@@ -350,3 +352,10 @@ def _check_dependencies():
350
352
'babel' : r'\usepackage{babel}' ,
351
353
'fontpkg' : r'\setmainfont{DejaVu Serif}' ,
352
354
}
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