#NEWLINE# def collect_scrapy_settings_refs( app , doctree ) : #NEWLINE# #INDENT# env = app . builder . env #NEWLINE# if ( not hasattr ( env , 'scrapy_all_settings' ) ) : #NEWLINE# #INDENT# env . scrapy_all_settings = [ ] #NEWLINE# #UNINDENT# for node in doctree . traverse ( is_setting_index ) : #NEWLINE# #INDENT# targetnode = get_setting_target ( node ) #NEWLINE# assert isinstance ( targetnode , nodes . target ) , 'Next node is not a target' #NEWLINE# ( setting_name , refid ) = get_setting_name_and_refid ( node ) #NEWLINE# env . scrapy_all_settings . append ( { #NEWLINE# #INDENT# 'docname' : env . docname , #NEWLINE# 'setting_name' : setting_name , #NEWLINE# 'refid' : refid , #NEWLINE# #UNINDENT# } )