docs: conf.py: fix logging about reidrects
This commit is contained in:
parent
56367b197b
commit
e40539caca
4
conf.py
4
conf.py
|
@ -391,13 +391,13 @@ TEMPLATE = """<html>
|
||||||
def generate_redirects(app):
|
def generate_redirects(app):
|
||||||
path = os.path.join(app.srcdir, app.config.redirects_file)
|
path = os.path.join(app.srcdir, app.config.redirects_file)
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
logging.info("Could not find redirects file at '%s'" % path)
|
logging.error("Could not find redirects file at '%s'" % path)
|
||||||
return
|
return
|
||||||
|
|
||||||
logging.warn(f"Builder is {app.builder.name} ({type(app.builder)})")
|
|
||||||
if not isinstance(app.builder, builders.StandaloneHTMLBuilder):
|
if not isinstance(app.builder, builders.StandaloneHTMLBuilder):
|
||||||
logging.warn("The 'sphinxcontib-redirects' plugin is only supported "
|
logging.warn("The 'sphinxcontib-redirects' plugin is only supported "
|
||||||
"by the 'html' builder and subclasses. Skipping...")
|
"by the 'html' builder and subclasses. Skipping...")
|
||||||
|
logging.warn(f"Builder is {app.builder.name} ({type(app.builder)})")
|
||||||
return
|
return
|
||||||
|
|
||||||
with open(path) as redirects:
|
with open(path) as redirects:
|
||||||
|
|
Loading…
Reference in New Issue