File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 2626
2727
2828class DefaultMissing (dict ):
29+ """A dictionary subclass that returns a formatted string for missing keys.
30+
31+ Example:
32+ >>> d = DefaultMissing({"foo": "bar"})
33+ >>> d['foo']
34+ 'bar'
35+ >>> d['missing_key']
36+ '{missing_key}'
37+ """
38+
2939 def __missing__ (self , key : str ) -> str :
3040 return key .join ("{}" )
3141
Original file line number Diff line number Diff line change 33
44# You can set these variables from the command line, and also
55# from the environment for the first two.
6- SPHINXOPTS ?= -jauto
6+ SPHINXOPTS ?= -jauto -w $( BUILDDIR ) /warnings.log --fail-on-warning
77SPHINXBUILD ?= sphinx-build
88SOURCEDIR = .
99BUILDDIR = build
Original file line number Diff line number Diff line change 3232autodoc_member_order = "groupwise"
3333
3434autosectionlabel_prefix_document = True
35+
36+ suppress_warnings = [
37+ # https://github.com/readthedocs/sphinx-autoapi/issues/285
38+ "autoapi.python_import_resolution" ,
39+ ]
You can’t perform that action at this time.
0 commit comments