11#!/usr/bin/env python3
2- # -*- coding: utf-8 -*-
32#
43# welltestpy documentation build configuration file, created by
54# sphinx-quickstart on Fri Jan 5 14:20:43 2018.
@@ -56,7 +55,7 @@ def setup(app):
5655 "sphinx.ext.doctest" ,
5756 "sphinx.ext.intersphinx" ,
5857 "sphinx.ext.coverage" ,
59- "sphinx.ext.imgmath " ,
58+ "sphinx.ext.mathjax " ,
6059 "sphinx.ext.ifconfig" ,
6160 "sphinx.ext.viewcode" ,
6261 "sphinx.ext.autosummary" ,
@@ -80,7 +79,10 @@ def setup(app):
8079# Notes in boxes
8180napoleon_use_admonition_for_notes = True
8281# Attributes like parameters
83- # napoleon_use_ivar = True
82+ napoleon_use_ivar = True
83+ # keep "Other Parameters" section
84+ # https://github.com/sphinx-doc/sphinx/issues/10330
85+ napoleon_use_param = False
8486# this is a nice class-doc layout
8587numpydoc_show_class_members = True
8688# class members have no separate file, so they are not in a toctree
@@ -121,7 +123,7 @@ def setup(app):
121123#
122124# This is also used if you do content translation via gettext catalogs.
123125# Usually you set "language" from the command line for these cases.
124- language = None
126+ language = "en"
125127
126128# List of patterns, relative to source directory, that match files and
127129# directories to ignore when looking for source files.
@@ -153,14 +155,18 @@ def setup(app):
153155 # Toc options
154156 "collapse_navigation" : False ,
155157 "sticky_navigation" : True ,
156- "navigation_depth" : 4 ,
158+ "navigation_depth" : 6 ,
157159 "includehidden" : True ,
158160 "titles_only" : False ,
159161}
160162# Add any paths that contain custom static files (such as style sheets) here,
161163# relative to this directory. They are copied after the builtin static files,
162164# so a file named "default.css" will overwrite the builtin "default.css".
163- # html_static_path = ['_static']
165+ html_static_path = ["_static" ]
166+
167+ # These paths are either relative to html_static_path
168+ # or fully qualified paths (eg. https://...)
169+ html_css_files = ["custom.css" ]
164170
165171# Custom sidebar templates, must be a dictionary that maps document names
166172# to template names.
@@ -249,7 +255,6 @@ def setup(app):
249255
250256# Example configuration for intersphinx: refer to the Python standard library.
251257intersphinx_mapping = {
252- "Python 3.6" : ("https://docs.python.org/3.6" , None ),
253258 "Python" : ("https://docs.python.org/" , None ),
254259 "NumPy" : ("http://docs.scipy.org/doc/numpy/" , None ),
255260 "SciPy" : ("http://docs.scipy.org/doc/scipy/reference" , None ),
0 commit comments