Skip to content

Commit 1bb797f

Browse files
committed
pull changes from numpy doc
1 parent 0dba83d commit 1bb797f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

doc/sphinxext/autosummary.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161

6262
from docscrape_sphinx import get_doc_object
6363

64+
import warnings
65+
warnings.warn("The numpydoc.autosummary extension will be eventually moved to "
66+
"sphinx.ext.autosummary. One version is already available in "
67+
"Sphinx >= 0.6; expect this module to be deprecated after all "
68+
"remaining features have been integrated there.",
69+
FutureWarning, stacklevel=2)
6470

6571
def setup(app):
6672
app.add_directive('autosummary', autosummary_directive, True, (0, 0, False),
@@ -161,6 +167,7 @@ def autosummary_directive(dirname, arguments, options, content, lineno,
161167
tocnode['includefiles'] = docnames
162168
tocnode['maxdepth'] = -1
163169
tocnode['glob'] = None
170+
tocnode['entries'] = [(None, docname) for docname in docnames]
164171

165172
tocnode = autosummary_toc('', '', tocnode)
166173
return warnings + [node] + [tocnode]

doc/sphinxext/plot_directive.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474

7575
import sys, os, glob, shutil, imp, warnings, cStringIO, re, textwrap
7676

77+
import warnings
78+
warnings.warn("A plot_directive module is also available under "
79+
"matplotlib.sphinxext; expect this numpydoc.plot_directive "
80+
"module to be deprecated after relevant features have been "
81+
"integrated there.",
82+
FutureWarning, stacklevel=2)
83+
7784
def setup(app):
7885
setup.app = app
7986
setup.config = app.config

0 commit comments

Comments
 (0)