File tree 4 files changed +14
-16
lines changed 4 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ install:
100
100
# Neihter is installed as a dependency of IPython since they are not used by the IPython console.
101
101
- |
102
102
if [[ $BUILD_DOCS == true ]]; then
103
- pip install $PRE numpydoc ipython jsonschema mistune colorspacious
103
+ pip install $PRE ipython jsonschema mistune colorspacious
104
104
pip install -q $PRE linkchecker
105
105
wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O Felipa-Regular.ttf
106
106
wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-humor-sans/fonts-humor-sans_1.0-1_all.deb
Original file line number Diff line number Diff line change @@ -33,11 +33,10 @@ python documentation system built on top of ReST. This directory contains
33
33
* mpl_examples - a link to the matplotlib examples in case any
34
34
documentation wants to literal include them
35
35
36
- To build the HTML documentation, install sphinx (1.0 or greater
37
- required), then type "python make.py html" in this directory. Wait
38
- for the initial run (which builds the example gallery) to be done,
39
- then run "python make.py html" again. The top file of the results will
40
- be ./build/html/index.html
36
+ To build the HTML documentation, install sphinx (1.0 or greater required) and,
37
+ if sphinx older than 1.3, sphinxcontrib-napoleon, then type "python make.py
38
+ html" in this directory. The top file of the results will be
39
+ ./build/html/index.html
41
40
42
41
Note that Sphinx uses the installed version of the package to build
43
42
the documentation, so matplotlib must be installed *before* the docs
Original file line number Diff line number Diff line change 32
32
'sphinx.ext.inheritance_diagram' ,
33
33
'sphinxext.gen_gallery' , 'sphinxext.gen_rst' ,
34
34
'sphinxext.github' ,
35
- 'numpydoc' ]
35
+ ]
36
+ if hasattr (sphinx , 'version_info' ) and sphinx .version_info [:2 ] >= (1 , 3 ):
37
+ extensions += ['sphinx.ext.napoleon' ]
38
+ else :
39
+ extensions += ['sphinxcontrib.napoleon' ]
36
40
37
41
exclude_patterns = ['api/api_changes/*' , 'users/whats_new/*' ]
38
42
46
50
extensions .append ('IPython.sphinxext.ipython_console_highlighting' )
47
51
extensions .append ('IPython.sphinxext.ipython_directive' )
48
52
49
- try :
50
- import numpydoc
51
- except ImportError :
52
- raise ImportError ("No module named numpydoc - you need to install "
53
- "numpydoc to build the documentation." )
54
-
55
53
56
54
autosummary_generate = True
57
55
@@ -333,5 +331,6 @@ def getapi(*args):
333
331
sys .modules ['sip' ] = mocksip
334
332
sys .modules ['PyQt4' ] = mockpyqt4
335
333
336
- ################# numpydoc config ####################
337
- numpydoc_show_class_members = False
334
+ ################# napoleon config ####################
335
+ napoleon_google_docstring = False
336
+ napoleon_use_param = False
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def htmlhelp():
60
60
with open ('build/htmlhelp/index.html' , 'r+' ) as fh :
61
61
content = fh .read ()
62
62
fh .seek (0 )
63
- content = re .sub (r'<script>.*?</script>' , '' , content ,
63
+ content = re .sub (r'<script>.*?</script>' , '' , content ,
64
64
flags = re .MULTILINE | re .DOTALL )
65
65
fh .write (content )
66
66
fh .truncate ()
You can’t perform that action at this time.
0 commit comments