|
19 | 19 | import os |
20 | 20 | import sys |
21 | 21 | from pkg_resources import get_distribution |
22 | | -sys.path.insert(0, os.path.abspath('../')) |
| 22 | + |
| 23 | +sys.path.insert(0, os.path.abspath("../")) |
23 | 24 |
|
24 | 25 |
|
25 | 26 | # -- General configuration ------------------------------------------------ |
|
31 | 32 | # Add any Sphinx extension module names here, as strings. They can be |
32 | 33 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
33 | 34 | # ones. |
34 | | -extensions = ['sphinx.ext.autodoc'] |
| 35 | +extensions = ["sphinx.ext.autodoc"] |
35 | 36 |
|
36 | 37 | # Add any paths that contain templates here, relative to this directory. |
37 | | -templates_path = ['_templates'] |
| 38 | +templates_path = ["_templates"] |
38 | 39 |
|
39 | 40 | # The suffix(es) of source filenames. |
40 | 41 | # You can specify multiple suffix as a list of string: |
41 | 42 | # |
42 | 43 | # source_suffix = ['.rst', '.md'] |
43 | | -source_suffix = '.rst' |
| 44 | +source_suffix = ".rst" |
44 | 45 |
|
45 | 46 | # The master toctree document. |
46 | | -master_doc = 'index' |
| 47 | +master_doc = "index" |
47 | 48 |
|
48 | 49 | # General information about the project. |
49 | | -project = u'pynetbox' |
50 | | -copyright = u'2017, DigitalOcean' |
51 | | -author = u'Zach Moody' |
| 50 | +project = u"pynetbox" |
| 51 | +copyright = u"2017, DigitalOcean" |
| 52 | +author = u"Zach Moody" |
52 | 53 |
|
53 | 54 | # The version info for the project you're documenting, acts as replacement for |
54 | 55 | # |version| and |release|, also used in various other places throughout the |
55 | 56 | # built documents. |
56 | 57 | # The full version, including alpha/beta/rc tags. |
57 | | -release = get_distribution('pynetbox').version |
| 58 | +release = get_distribution("pynetbox").version |
58 | 59 | # |
59 | 60 | # The short X.Y version. |
60 | | -version = '.'.join(release.split('.')[:2]) |
| 61 | +version = ".".join(release.split(".")[:2]) |
61 | 62 |
|
62 | 63 | # The language for content autogenerated by Sphinx. Refer to documentation |
63 | 64 | # for a list of supported languages. |
|
69 | 70 | # List of patterns, relative to source directory, that match files and |
70 | 71 | # directories to ignore when looking for source files. |
71 | 72 | # This patterns also effect to html_static_path and html_extra_path |
72 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 73 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
73 | 74 |
|
74 | 75 | # The name of the Pygments (syntax highlighting) style to use. |
75 | | -pygments_style = 'sphinx' |
| 76 | +pygments_style = "sphinx" |
76 | 77 |
|
77 | 78 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
78 | 79 | todo_include_todos = False |
|
96 | 97 | # so a file named "default.css" will overwrite the builtin "default.css". |
97 | 98 | # html_static_path = ['_static'] |
98 | 99 |
|
99 | | -html_sidebars = {'**': [ |
100 | | - 'globaltoc.html', |
101 | | - 'relations.html', |
102 | | - 'sourcelink.html', |
103 | | - 'searchbox.html' |
104 | | - ] |
| 100 | +html_sidebars = { |
| 101 | + "**": ["globaltoc.html", "relations.html", "sourcelink.html", "searchbox.html"] |
105 | 102 | } |
106 | 103 |
|
107 | 104 | # -- Options for HTMLHelp output ------------------------------------------ |
108 | 105 |
|
109 | 106 | # Output file base name for HTML help builder. |
110 | | -htmlhelp_basename = 'pynetboxdoc' |
| 107 | +htmlhelp_basename = "pynetboxdoc" |
111 | 108 |
|
112 | 109 |
|
113 | 110 | # -- Options for LaTeX output --------------------------------------------- |
|
116 | 113 | # The paper size ('letterpaper' or 'a4paper'). |
117 | 114 | # |
118 | 115 | # 'papersize': 'letterpaper', |
119 | | - |
120 | 116 | # The font size ('10pt', '11pt' or '12pt'). |
121 | 117 | # |
122 | 118 | # 'pointsize': '10pt', |
123 | | - |
124 | 119 | # Additional stuff for the LaTeX preamble. |
125 | 120 | # |
126 | 121 | # 'preamble': '', |
127 | | - |
128 | 122 | # Latex figure (float) alignment |
129 | 123 | # |
130 | 124 | # 'figure_align': 'htbp', |
|
134 | 128 | # (source start file, target name, title, |
135 | 129 | # author, documentclass [howto, manual, or own class]). |
136 | 130 | latex_documents = [ |
137 | | - (master_doc, 'pynetbox.tex', u'pynetbox Documentation', |
138 | | - u'Zach Moody', 'manual'), |
| 131 | + (master_doc, "pynetbox.tex", u"pynetbox Documentation", u"Zach Moody", "manual"), |
139 | 132 | ] |
140 | 133 |
|
141 | 134 |
|
142 | 135 | # -- Options for manual page output --------------------------------------- |
143 | 136 |
|
144 | 137 | # One entry per manual page. List of tuples |
145 | 138 | # (source start file, name, description, authors, manual section). |
146 | | -man_pages = [ |
147 | | - (master_doc, 'pynetbox', u'pynetbox Documentation', |
148 | | - [author], 1) |
149 | | -] |
| 139 | +man_pages = [(master_doc, "pynetbox", u"pynetbox Documentation", [author], 1)] |
150 | 140 |
|
151 | 141 |
|
152 | 142 | # -- Options for Texinfo output ------------------------------------------- |
|
155 | 145 | # (source start file, target name, title, author, |
156 | 146 | # dir menu entry, description, category) |
157 | 147 | texinfo_documents = [ |
158 | | - (master_doc, 'pynetbox', u'pynetbox Documentation', |
159 | | - author, 'pynetbox', 'A python library for NetBox.', |
160 | | - 'Miscellaneous'), |
| 148 | + ( |
| 149 | + master_doc, |
| 150 | + "pynetbox", |
| 151 | + u"pynetbox Documentation", |
| 152 | + author, |
| 153 | + "pynetbox", |
| 154 | + "A python library for NetBox.", |
| 155 | + "Miscellaneous", |
| 156 | + ), |
161 | 157 | ] |
0 commit comments