|
12 | 12 | # All configuration values have a default; values that are commented out
|
13 | 13 | # serve to show the default.
|
14 | 14 |
|
| 15 | +import logging |
15 | 16 | import os
|
16 | 17 | import shutil
|
17 | 18 | import sys
|
18 | 19 |
|
| 20 | +logger = logging.getLogger(__name__) |
| 21 | +logging.basicConfig() |
| 22 | + |
19 | 23 | # If extensions (or modules to document with autodoc) are in another directory,
|
20 | 24 | # add these directories to sys.path here. If the directory is relative to the
|
21 | 25 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
22 | 26 |
|
23 | 27 | # DEBUG for RTD
|
24 |
| -print("DEBUG:: sys.path") |
25 |
| -print("================") |
| 28 | +logger.info("DEBUG:: sys.path") |
| 29 | +logger.info("================") |
26 | 30 | for item in sys.path:
|
27 |
| - print(item) |
| 31 | + logger.info(item) |
28 | 32 |
|
29 | 33 | # add repo root to sys.path
|
30 | 34 | # here = root/docs/source
|
|
38 | 42 | # Copy the contributing file here
|
39 | 43 | shutil.copy(os.path.join(repo_root, "CONTRIBUTING.md"), os.path.join(here, "contributing.md"))
|
40 | 44 |
|
41 |
| -print("repo_root") |
42 |
| -print("=====================") |
43 |
| -print(repo_root) |
| 45 | +logger.info("repo_root") |
| 46 | +logger.info("=====================") |
| 47 | +logger.info(repo_root) |
44 | 48 |
|
45 | 49 | # DEBUG for post insert on RTD
|
46 |
| -print("DEBUG:: Post insert to sys.path") |
47 |
| -print("===============================") |
| 50 | +logger.info("DEBUG:: Post insert to sys.path") |
| 51 | +logger.info("===============================") |
48 | 52 | for item in sys.path:
|
49 |
| - print(item) |
| 53 | + logger.info(item) |
50 | 54 |
|
51 | 55 | # -- General configuration ------------------------------------------------
|
52 | 56 |
|
|
86 | 90 |
|
87 | 91 | # General information about the project.
|
88 | 92 | project = "Jupyter Notebook"
|
89 |
| -copyright = "2015, Jupyter Team, https://jupyter.org" |
| 93 | +copyright = "2015, Jupyter Team, https://jupyter.org" # noqa |
90 | 94 | author = "The Jupyter Team"
|
91 | 95 |
|
92 | 96 | # ghissue config
|
|
98 | 102 | #
|
99 | 103 | _version_py = os.path.join(here, "../../notebook/_version.py")
|
100 | 104 | version_ns = {}
|
101 |
| -exec(compile(open(_version_py).read(), _version_py, "exec"), version_ns) |
| 105 | +exec(compile(open(_version_py).read(), _version_py, "exec"), version_ns) # noqa |
102 | 106 | # The short X.Y version.
|
103 | 107 | version = "%i.%i" % version_ns["version_info"][:2]
|
104 | 108 | # The full version, including alpha/beta/rc tags.
|
|
0 commit comments