11#!/usr/bin/env python3
2- # -*- coding: utf-8 -*-
32#
43# anaflow documentation build configuration file, created by
54# sphinx-quickstart on Fri Jan 5 14:20:43 2018.
2120# pip install sphinx_rtd_theme
2221# is needed in order to build the documentation
2322import datetime
23+
2424from anaflow import __version__ as ver
2525
2626
@@ -48,13 +48,14 @@ def setup(app):
4848 "sphinx.ext.doctest" ,
4949 "sphinx.ext.intersphinx" ,
5050 "sphinx.ext.coverage" ,
51- "sphinx.ext.imgmath " ,
51+ "sphinx.ext.mathjax " ,
5252 "sphinx.ext.ifconfig" ,
5353 "sphinx.ext.viewcode" ,
5454 "sphinx.ext.autosummary" ,
5555 "sphinx.ext.napoleon" , # parameters look better than with numpydoc only
5656 "numpydoc" ,
5757 "sphinx_gallery.gen_gallery" ,
58+ "m2r2" ,
5859]
5960
6061# autosummaries from source-files
@@ -71,7 +72,10 @@ def setup(app):
7172# Notes in boxes
7273napoleon_use_admonition_for_notes = True
7374# Attributes like parameters
74- # napoleon_use_ivar = True
75+ napoleon_use_ivar = True
76+ # keep "Other Parameters" section
77+ # https://github.com/sphinx-doc/sphinx/issues/10330
78+ napoleon_use_param = False
7579# this is a nice class-doc layout
7680numpydoc_show_class_members = True
7781# class members have no separate file, so they are not in a toctree
@@ -112,7 +116,7 @@ def setup(app):
112116#
113117# This is also used if you do content translation via gettext catalogs.
114118# Usually you set "language" from the command line for these cases.
115- language = None
119+ language = "en"
116120
117121# List of patterns, relative to source directory, that match files and
118122# directories to ignore when looking for source files.
@@ -144,14 +148,18 @@ def setup(app):
144148 # Toc options
145149 "collapse_navigation" : False ,
146150 "sticky_navigation" : True ,
147- "navigation_depth" : 4 ,
151+ "navigation_depth" : 6 ,
148152 "includehidden" : True ,
149153 "titles_only" : False ,
150154}
151155# Add any paths that contain custom static files (such as style sheets) here,
152156# relative to this directory. They are copied after the builtin static files,
153157# so a file named "default.css" will overwrite the builtin "default.css".
154- # html_static_path = ['_static']
158+ html_static_path = ["_static" ]
159+
160+ # These paths are either relative to html_static_path
161+ # or fully qualified paths (eg. https://...)
162+ html_css_files = ["custom.css" ]
155163
156164# Custom sidebar templates, must be a dictionary that maps document names
157165# to template names.
@@ -238,7 +246,6 @@ def setup(app):
238246
239247# Example configuration for intersphinx: refer to the Python standard library.
240248intersphinx_mapping = {
241- "Python 3.6" : ("https://docs.python.org/3.6" , None ),
242249 "Python" : ("https://docs.python.org/" , None ),
243250 "NumPy" : ("http://docs.scipy.org/doc/numpy/" , None ),
244251 "SciPy" : ("http://docs.scipy.org/doc/scipy/reference" , None ),
0 commit comments