|
20 | 20 |
|
21 | 21 | # -- Project information -----------------------------------------------------
|
22 | 22 |
|
23 |
| -project = 'JupyterLab Server' |
24 |
| -copyright = '2021, Project Jupyter' |
25 |
| -author = 'Project Jupyter' |
| 23 | +project = "JupyterLab Server" |
| 24 | +copyright = "2021, Project Jupyter" |
| 25 | +author = "Project Jupyter" |
26 | 26 |
|
27 | 27 | # The full version, including alpha/beta/rc tags
|
28 |
| -_version_py = osp.join(HERE, '..', '..', 'jupyterlab_server', '_version.py') |
| 28 | +_version_py = osp.join(HERE, "..", "..", "jupyterlab_server", "_version.py") |
29 | 29 | version_ns = {}
|
30 | 30 |
|
31 |
| -with open(_version_py, mode='r') as version_file: |
| 31 | +with open(_version_py) as version_file: |
32 | 32 | exec(version_file.read(), version_ns)
|
33 | 33 |
|
34 | 34 | # The short X.Y version.
|
35 |
| -version = '%i.%i' % version_ns['version_info'][:2] |
| 35 | +version = "%i.%i" % version_ns["version_info"][:2] |
36 | 36 | # The full version, including alpha/beta/rc tags.
|
37 |
| -release = version_ns['__version__'] |
| 37 | +release = version_ns["__version__"] |
38 | 38 |
|
39 | 39 | # -- General configuration ---------------------------------------------------
|
40 | 40 |
|
41 | 41 | # Add any Sphinx extension module names here, as strings. They can be
|
42 | 42 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
43 | 43 | # ones.
|
44 | 44 | extensions = [
|
45 |
| - 'myst_parser', |
46 |
| - 'numpydoc', |
47 |
| - 'autodoc_traits', |
48 |
| - 'sphinx.ext.autodoc', |
49 |
| - 'sphinx.ext.intersphinx', |
50 |
| - 'sphinxcontrib.openapi', |
51 |
| - 'sphinx.ext.napoleon', |
52 |
| - 'sphinx.ext.mathjax', |
53 |
| - 'sphinx_copybutton' |
| 45 | + "myst_parser", |
| 46 | + "numpydoc", |
| 47 | + "autodoc_traits", |
| 48 | + "sphinx.ext.autodoc", |
| 49 | + "sphinx.ext.intersphinx", |
| 50 | + "sphinxcontrib.openapi", |
| 51 | + "sphinx.ext.napoleon", |
| 52 | + "sphinx.ext.mathjax", |
| 53 | + "sphinx_copybutton", |
54 | 54 | ]
|
55 | 55 |
|
56 | 56 | myst_enable_extensions = ["html_image"]
|
57 | 57 |
|
58 | 58 | # Add any paths that contain templates here, relative to this directory.
|
59 |
| -templates_path = ['_templates'] |
| 59 | +templates_path = ["_templates"] |
60 | 60 |
|
61 | 61 | # List of patterns, relative to source directory, that match files and
|
62 | 62 | # directories to ignore when looking for source files.
|
|
89 | 89 | # so disable
|
90 | 90 | numpydoc_show_class_members = False
|
91 | 91 |
|
| 92 | + |
92 | 93 | def setup(app):
|
93 |
| - dest = osp.join(HERE, 'changelog.md') |
94 |
| - shutil.copy(osp.join(HERE, '..', '..', 'CHANGELOG.md'), dest) |
95 |
| - with open(osp.join(HERE, '../autogen_config.py')) as f: |
96 |
| - exec(compile(f.read(), '../autogen_config.py', 'exec'), {}) |
| 94 | + dest = osp.join(HERE, "changelog.md") |
| 95 | + shutil.copy(osp.join(HERE, "..", "..", "CHANGELOG.md"), dest) |
| 96 | + with open(osp.join(HERE, "../autogen_config.py")) as f: |
| 97 | + exec(compile(f.read(), "../autogen_config.py", "exec"), {}) |
0 commit comments