File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 391391def generate_redirects (app ):
392392 path = os .path .join (app .srcdir , app .config .redirects_file )
393393 if not os .path .exists (path ):
394- app .info ("Could not find redirects file at '%s'" % path )
394+ logging .info ("Could not find redirects file at '%s'" % path )
395395 return
396396
397- if not type (app .builder ) == builders .StandaloneHTMLBuilder :
397+ logging .warn (f"Builder is { app .builder .name } ({ type (app .builder )} )" )
398+ if not isinstance (app .builder , builders .StandaloneHTMLBuilder ):
398399 logging .warn ("The 'sphinxcontib-redirects' plugin is only supported "
399- "by the 'html' builder. Skipping..." )
400+ "by the 'html' builder and subclasses . Skipping..." )
400401 return
401402
402403 with open (path ) as redirects :
You can’t perform that action at this time.
0 commit comments