File tree 2 files changed +3
-19
lines changed
2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ def setup(app):
434
434
from . import automodsumm
435
435
app .setup_extension (automodsumm .__name__ )
436
436
437
- app .connect ('source-read' , process_automodapi )
437
+ app .connect ('source-read' , process_automodapi , priority = 100 )
438
438
439
439
app .add_config_value ('automodapi_inheritance_diagram' , True , True )
440
440
app .add_config_value ('automodapi_toctreedirnm' , 'api' , True )
Original file line number Diff line number Diff line change @@ -692,24 +692,8 @@ def setup(app):
692
692
693
693
app .add_directive ('automod-diagram' , Automoddiagram )
694
694
app .add_directive ('automodsumm' , Automodsumm )
695
- app .connect ('builder-inited' , process_automodsumm_generation )
696
-
697
- # insert event *before* the autosummary hook so autosummary will read
698
- # from the updated app.builder.env.found_docs attribute
699
- # try to use as much of API as possible here
700
- from sphinx .ext .autosummary import process_generate_options
701
- listener_id = None
702
- listeners = app .events .listeners ['builder-inherited' ]
703
- if listeners and isinstance (listeners , dict ): # in case API changes
704
- for lid , func in listeners .items ():
705
- if func is process_generate_options :
706
- listener_id = lid
707
- break
708
- if listener_id is not None :
709
- app .disconnect (listener_id )
710
- app .connect ('builder-inited' , process_generate_options )
711
-
712
- # original
695
+ app .connect ('builder-inited' , process_automodsumm_generation , priority = 100 )
696
+
713
697
app .add_config_value ('automodsumm_writereprocessed' , False , True )
714
698
app .add_config_value ('automodsumm_inherited_members' , False , 'env' )
715
699
You can’t perform that action at this time.
0 commit comments