|
4 | 4 | import os |
5 | 5 |
|
6 | 6 | extensions = [ |
7 | | - 'sphinx.ext.autodoc', |
8 | | - 'sphinx.ext.autosummary', |
9 | | - 'sphinx.ext.coverage', |
10 | | - 'sphinx.ext.doctest', |
11 | | - 'sphinx.ext.extlinks', |
12 | | - 'sphinx.ext.ifconfig', |
13 | | - 'sphinx.ext.napoleon', |
14 | | - 'sphinx.ext.todo', |
15 | | - 'sphinx.ext.viewcode', |
| 7 | + "sphinx.ext.autodoc", |
| 8 | + "sphinx.ext.autosummary", |
| 9 | + "sphinx.ext.coverage", |
| 10 | + "sphinx.ext.doctest", |
| 11 | + "sphinx.ext.extlinks", |
| 12 | + "sphinx.ext.ifconfig", |
| 13 | + "sphinx.ext.napoleon", |
| 14 | + "sphinx.ext.todo", |
| 15 | + "sphinx.ext.viewcode", |
16 | 16 | ] |
17 | | -if os.getenv('SPELLCHECK'): |
18 | | - extensions += 'sphinxcontrib.spelling', |
| 17 | +if os.getenv("SPELLCHECK"): |
| 18 | + extensions += ("sphinxcontrib.spelling",) |
19 | 19 | spelling_show_suggestions = True |
20 | | - spelling_lang = 'en_US' |
| 20 | + spelling_lang = "en_US" |
21 | 21 |
|
22 | | -source_suffix = '.rst' |
23 | | -master_doc = 'index' |
24 | | -project = 'roslibpy' |
25 | | -year = '2019' |
26 | | -author = 'Gramazio Kohler Research' |
27 | | -copyright = '{0}, {1}'.format(year, author) |
28 | | -version = release = '1.3.0' |
| 22 | +source_suffix = ".rst" |
| 23 | +master_doc = "index" |
| 24 | +project = "roslibpy" |
| 25 | +year = "2019" |
| 26 | +author = "Gramazio Kohler Research" |
| 27 | +copyright = "{0}, {1}".format(year, author) |
| 28 | +version = release = "1.3.0" |
29 | 29 |
|
30 | | -pygments_style = 'trac' # Perhaps change to sphinx |
31 | | -templates_path = ['.'] |
| 30 | +pygments_style = "trac" # Perhaps change to sphinx |
| 31 | +templates_path = ["."] |
32 | 32 | extlinks = { |
33 | | - 'issue': ('https://github.com/gramaziokohler/roslibpy/issues/%s', '#'), |
34 | | - 'pr': ('https://github.com/gramaziokohler/roslibpy/pull/%s', 'PR #'), |
| 33 | + "issue": ("https://github.com/gramaziokohler/roslibpy/issues/%s", "#"), |
| 34 | + "pr": ("https://github.com/gramaziokohler/roslibpy/pull/%s", "PR #"), |
35 | 35 | } |
36 | 36 | # on_rtd is whether we are on readthedocs.org |
37 | | -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
38 | | -html_theme = 'alabaster' |
| 37 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
| 38 | +html_theme = "alabaster" |
39 | 39 | html_theme_options = { |
40 | 40 | "description": "Python ROS Bridge library", |
41 | 41 | "github_user": "gramaziokohler", |
|
44 | 44 | } |
45 | 45 |
|
46 | 46 | html_use_smartypants = True |
47 | | -html_last_updated_fmt = '%b %d, %Y' |
| 47 | +html_last_updated_fmt = "%b %d, %Y" |
48 | 48 | html_split_index = False |
49 | 49 | html_sidebars = { |
50 | | - '**': ['about.html', 'navigation.html', 'searchbox.html'], |
| 50 | + "**": ["about.html", "navigation.html", "searchbox.html"], |
51 | 51 | } |
52 | | -html_short_title = '%s-%s' % (project, version) |
| 52 | +html_short_title = "%s-%s" % (project, version) |
53 | 53 |
|
54 | 54 | napoleon_use_ivar = True |
55 | 55 | napoleon_use_rtype = False |
|
0 commit comments