10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 844f575 commit 56367b1Copy full SHA for 56367b1
conf.py
@@ -391,12 +391,13 @@
391
def generate_redirects(app):
392
path = os.path.join(app.srcdir, app.config.redirects_file)
393
if not os.path.exists(path):
394
- app.info("Could not find redirects file at '%s'" % path)
+ logging.info("Could not find redirects file at '%s'" % path)
395
return
396
397
- if not type(app.builder) == builders.StandaloneHTMLBuilder:
+ logging.warn(f"Builder is {app.builder.name} ({type(app.builder)})")
398
+ if not isinstance(app.builder, builders.StandaloneHTMLBuilder):
399
logging.warn("The 'sphinxcontib-redirects' plugin is only supported "
- "by the 'html' builder. Skipping...")
400
+ "by the 'html' builder and subclasses. Skipping...")
401
402
403
with open(path) as redirects:
0 commit comments