@@ -196,16 +196,6 @@ def mangle_docstrings(app, what, name, obj, options, lines):
196196 logger .warning (msg )
197197
198198
199- if (app .config .numpydoc_edit_link and hasattr (obj , '__name__' ) and
200- obj .__name__ ):
201- if hasattr (obj , '__module__' ):
202- v = dict (full_name = f"{ obj .__module__ } .{ obj .__name__ } " )
203- else :
204- v = dict (full_name = obj .__name__ )
205- lines += ['' , '.. htmlonly::' , '' ]
206- lines += [f' { x } ' for x in
207- (app .config .numpydoc_edit_link % v ).split ("\n " )]
208-
209199 # call function to replace reference numbers so that there are no
210200 # duplicates
211201 rename_references (app , what , name , obj , options , lines )
@@ -266,7 +256,6 @@ def setup(app, get_doc_object_=get_doc_object):
266256 app .connect ('autodoc-process-signature' , mangle_signature )
267257 app .connect ('doctree-read' , relabel_references )
268258 app .connect ('doctree-resolved' , clean_backrefs )
269- app .add_config_value ('numpydoc_edit_link' , None , False )
270259 app .add_config_value ('numpydoc_use_plots' , None , False )
271260 app .add_config_value ('numpydoc_use_blockquotes' , None , False )
272261 app .add_config_value ('numpydoc_show_class_members' , True , True )
0 commit comments