|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 | # |
4 | | -# diffpy.pdfgui documentation build configuration file, created by # noqa: E501 |
| 4 | +# diffpy.pdfgui documentation build configuration file, created by |
5 | 5 | # sphinx-quickstart on Thu Jan 30 15:49:41 2014. |
6 | 6 | # |
7 | 7 | # This file is execfile()d with the current directory set to its |
|
13 | 13 | # All configuration values have a default; values that are commented out |
14 | 14 | # serve to show the default. |
15 | 15 |
|
16 | | -import sys |
17 | | -import time |
18 | | -from importlib.metadata import version |
19 | | -from pathlib import Path |
20 | | - |
21 | 16 | # Attempt to import the version dynamically from GitHub tag. |
22 | 17 | try: |
23 | 18 | fullversion = version("diffpy.pdfgui") |
24 | 19 | except Exception: |
25 | 20 | fullversion = "No version found. The correct version will appear in the released version." # noqa: E501 |
26 | 21 |
|
| 22 | +import sys |
| 23 | +import time |
| 24 | +from importlib.metadata import version |
| 25 | +from pathlib import Path |
| 26 | + |
27 | 27 | # If extensions (or modules to document with autodoc) are in another directory, |
28 | 28 | # add these directories to sys.path here. If the directory is relative to the |
29 | | -# documentation root, use Path().resolve() to make it absolute, like shown here. # noqa: E501 |
| 29 | +# documentation root, use Path().resolve() to make it absolute, like shown here. |
30 | 30 | # sys.path.insert(0, str(Path(".").resolve())) |
31 | 31 | sys.path.insert(0, str(Path("../..").resolve())) |
32 | 32 | sys.path.insert(0, str(Path("../../src").resolve())) |
33 | 33 |
|
34 | 34 | # abbreviations |
35 | | -ab_authors = "Simon J.L. Billinge group" |
| 35 | +ab_authors = "Billinge Group members and community contributors" |
36 | 36 |
|
37 | 37 | # -- General configuration ------------------------------------------------ |
38 | 38 |
|
|
48 | 48 | "sphinx.ext.todo", |
49 | 49 | "sphinx.ext.viewcode", |
50 | 50 | "sphinx.ext.intersphinx", |
51 | | - "sphinx_rtd_theme", |
52 | 51 | "sphinx_copybutton", |
| 52 | + "sphinx_rtd_theme", |
53 | 53 | "m2r", |
54 | 54 | ] |
55 | 55 |
|
|
71 | 71 | project = "diffpy.pdfgui" |
72 | 72 | copyright = "%Y, The Trustees of Columbia University in the City of New York" |
73 | 73 |
|
| 74 | +# For sphinx_copybutton extension. |
| 75 | +# Do not copy "$" for shell commands in code-blocks. |
| 76 | +copybutton_prompt_text = r"^\$ " |
| 77 | +copybutton_prompt_is_regexp = True |
| 78 | + |
74 | 79 | # The version info for the project you're documenting, acts as replacement for |
75 | 80 | # |version| and |release|, also used in various other places throughout the |
76 | 81 | # built documents. |
77 | 82 |
|
| 83 | +fullversion = version(project) |
78 | 84 | # The short X.Y version. |
79 | 85 | version = "".join(fullversion.split(".post")[:1]) |
80 | 86 | # The full version, including alpha/beta/rc tags. |
|
94 | 100 | # substitute YEAR in the copyright string |
95 | 101 | copyright = copyright.replace("%Y", year) |
96 | 102 |
|
97 | | -# For sphinx_copybutton extension. |
98 | | -# Do not copy "$" for shell commands in code-blocks. |
99 | | -copybutton_prompt_text = r"^\$ " |
100 | | -copybutton_prompt_is_regexp = True |
101 | | - |
102 | 103 | # List of patterns, relative to source directory, that match files and |
103 | 104 | # directories to ignore when looking for source files. |
104 | 105 | exclude_patterns = ["build"] |
|
177 | 178 | # Add any extra paths that contain custom files (such as robots.txt or |
178 | 179 | # .htaccess) here, relative to this directory. These files are copied |
179 | 180 | # directly to the root of the documentation. |
180 | | -# html_extra_path = [] |
| 181 | +html_extra_path = [] |
181 | 182 |
|
182 | 183 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
183 | 184 | # using the given strftime format. |
|
0 commit comments