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 2964aad commit f29afe9Copy full SHA for f29afe9
doc/jekyll_fix.py
@@ -25,6 +25,7 @@
25
26
import os
27
28
+from sphinx.util import logging
29
from sphinx.util.console import bold
30
31
DIRS = {
@@ -38,13 +39,7 @@ def remove_directory_underscores(app, exception):
38
39
if exception:
40
return
41
# Get logger
- try:
42
- from sphinx.util import logging
43
-
44
- logger = logging.getLogger(__name__)
45
- except (ImportError, AttributeError):
46
- # Sphinx < 1.6
47
- logger = app
+ logger = logging.getLogger(__name__)
48
logger.info(bold('fixing directory names... '), nonl=True)
49
# Rewrite references in HTML/JS files
50
for dirpath, _, filenames in os.walk(app.outdir):
0 commit comments