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 391
391
def generate_redirects (app ):
392
392
path = os .path .join (app .srcdir , app .config .redirects_file )
393
393
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 )
395
395
return
396
396
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 ):
398
399
logging .warn ("The 'sphinxcontib-redirects' plugin is only supported "
399
- "by the 'html' builder. Skipping..." )
400
+ "by the 'html' builder and subclasses . Skipping..." )
400
401
return
401
402
402
403
with open (path ) as redirects :
You can’t perform that action at this time.
0 commit comments