1010**Disclaimer**
1111
1212Copyright 2016-2019, Philipp S. Sommer
13+
1314Copyright 2020-2021, Helmholtz-Zentrum Hereon
1415
1516Licensed under the Apache License, Version 2.0 (the "License");
3839
3940__status__ = "Production"
4041
41- __version__ = '0.2.5 '
42+ __version__ = '0.2.6 '
4243
4344from itertools import chain
4445
@@ -181,6 +182,10 @@ def get_grouped_documenters(self, all_members=False):
181182 self .real_modname = None or self .get_real_modname ()
182183
183184 # try to also get a source code analyzer for attribute docs
185+ if sphinx_version < [4 , 0 ]:
186+ record_dependencies = self .directive .filename_set
187+ else :
188+ record_dependencies = self .directive .record_dependencies
184189 try :
185190 self .analyzer = ModuleAnalyzer .for_module (self .real_modname )
186191 # parse right now, to get PycodeErrors on parsing (results will
@@ -192,9 +197,9 @@ def get_grouped_documenters(self, all_members=False):
192197 self .analyzer = None
193198 # at least add the module.__file__ as a dependency
194199 if hasattr (self .module , '__file__' ) and self .module .__file__ :
195- self . directive . filename_set .add (self .module .__file__ )
200+ record_dependencies .add (self .module .__file__ )
196201 else :
197- self . directive . filename_set .add (self .analyzer .srcname )
202+ record_dependencies .add (self .analyzer .srcname )
198203
199204 self .env .temp_data ['autodoc:module' ] = self .modname
200205 if self .objpath :
@@ -487,9 +492,8 @@ def get_doc(self, *args, **kwargs):
487492 docstring = force_decode (docstring , encoding )
488493 doc .append (prepare_docstring (docstring , ignore ))
489494 else :
490- ignore = _get_arg ("ignore" , 0 , 1 , * args , ** kwargs )
491495 for docstring in docstrings :
492- doc .append (prepare_docstring (docstring , ignore ))
496+ doc .append (prepare_docstring (docstring ))
493497
494498 return doc
495499
0 commit comments