|
16 | 16 | # If extensions (or modules to document with autodoc) are in another directory, |
17 | 17 | # add these directories to sys.path here. If the directory is relative to the |
18 | 18 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
19 | | -#sys.path.append(os.path.abspath('.')) |
20 | | -sys.path.append(os.path.abspath('..')) |
| 19 | +# sys.path.append(os.path.abspath('.')) |
| 20 | +sys.path.append(os.path.abspath("..")) |
21 | 21 | from barcode import version |
22 | | -LOGO = os.path.join('images', 'pybarcode_small.png') |
| 22 | + |
| 23 | +LOGO = os.path.join("images", "pybarcode_small.png") |
23 | 24 |
|
24 | 25 | # -- General configuration ----------------------------------------------------- |
25 | 26 |
|
26 | 27 | # Add any Sphinx extension module names here, as strings. They can be extensions |
27 | 28 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
28 | 29 | extensions = [ |
29 | | - 'sphinx.ext.autodoc', 'sphinx.ext.graphviz', |
30 | | - 'sphinx.ext.inheritance_diagram' |
| 30 | + "sphinx.ext.autodoc", |
| 31 | + "sphinx.ext.graphviz", |
| 32 | + "sphinx.ext.inheritance_diagram", |
31 | 33 | ] |
32 | 34 |
|
33 | 35 | # Add any paths that contain templates here, relative to this directory. |
34 | | -templates_path = ['_templates'] |
| 36 | +templates_path = ["_templates"] |
35 | 37 |
|
36 | 38 | # The suffix of source filenames. |
37 | | -source_suffix = '.rst' |
| 39 | +source_suffix = ".rst" |
38 | 40 |
|
39 | 41 | # The encoding of source files. |
40 | | -#source_encoding = 'utf-8' |
| 42 | +# source_encoding = 'utf-8' |
41 | 43 |
|
42 | 44 | # The master toctree document. |
43 | | -master_doc = 'index' |
| 45 | +master_doc = "index" |
44 | 46 |
|
45 | 47 | # General information about the project. |
46 | | -project = 'python-barcode' |
47 | | -copyright = '2017-2020 Hugo Osvaldo Barrera <hugo@barrera.io>, et al' |
| 48 | +project = "python-barcode" |
| 49 | +copyright = "2017-2020 Hugo Osvaldo Barrera <hugo@barrera.io>, et al" |
48 | 50 |
|
49 | 51 | # The version info for the project you're documenting, acts as replacement for |
50 | 52 | # |version| and |release|, also used in various other places throughout the |
|
57 | 59 |
|
58 | 60 | # The language for content autogenerated by Sphinx. Refer to documentation |
59 | 61 | # for a list of supported languages. |
60 | | -#language = None |
| 62 | +# language = None |
61 | 63 |
|
62 | 64 | # There are two options for replacing |today|: either, you set today to some |
63 | 65 | # non-false value, then it is used: |
64 | | -#today = '' |
| 66 | +# today = '' |
65 | 67 | # Else, today_fmt is used as the format for a strftime call. |
66 | | -#today_fmt = '%B %d, %Y' |
| 68 | +# today_fmt = '%B %d, %Y' |
67 | 69 |
|
68 | 70 | # List of documents that shouldn't be included in the build. |
69 | | -#unused_docs = [] |
| 71 | +# unused_docs = [] |
70 | 72 |
|
71 | 73 | # List of directories, relative to source directory, that shouldn't be searched |
72 | 74 | # for source files. |
73 | | -exclude_trees = ['_build'] |
| 75 | +exclude_trees = ["_build"] |
74 | 76 |
|
75 | 77 | # The reST default role (used for this markup: `text`) to use for all documents. |
76 | | -#default_role = None |
| 78 | +# default_role = None |
77 | 79 |
|
78 | 80 | # If true, '()' will be appended to :func: etc. cross-reference text. |
79 | | -#add_function_parentheses = True |
| 81 | +# add_function_parentheses = True |
80 | 82 |
|
81 | 83 | # If true, the current module name will be prepended to all description |
82 | 84 | # unit titles (such as .. function::). |
83 | | -#add_module_names = True |
| 85 | +# add_module_names = True |
84 | 86 |
|
85 | 87 | # If true, sectionauthor and moduleauthor directives will be shown in the |
86 | 88 | # output. They are ignored by default. |
87 | | -#show_authors = False |
| 89 | +# show_authors = False |
88 | 90 |
|
89 | 91 | # The name of the Pygments (syntax highlighting) style to use. |
90 | | -pygments_style = 'sphinx' |
| 92 | +pygments_style = "sphinx" |
91 | 93 |
|
92 | 94 | # A list of ignored prefixes for module index sorting. |
93 | | -#modindex_common_prefix = [] |
| 95 | +# modindex_common_prefix = [] |
94 | 96 |
|
95 | 97 | # -- Options for HTML output --------------------------------------------------- |
96 | 98 |
|
97 | 99 | # The theme to use for HTML and HTML Help pages. See the documentation for |
98 | 100 | # a list of builtin themes. |
99 | | -html_theme = 'alabaster' |
| 101 | +html_theme = "alabaster" |
100 | 102 |
|
101 | 103 | # Theme options are theme-specific and customize the look and feel of a theme |
102 | 104 | # further. For a list of options available for each theme, see the |
103 | 105 | # documentation. |
104 | 106 | html_theme_options = { |
105 | | - 'github_user': 'WhyNotHugo', |
106 | | - 'github_repo': 'python-barcode', |
107 | | - 'github_banner': 'true', |
| 107 | + "github_user": "WhyNotHugo", |
| 108 | + "github_repo": "python-barcode", |
| 109 | + "github_banner": "true", |
108 | 110 | } |
109 | 111 |
|
110 | 112 | # Add any paths that contain custom themes here, relative to this directory. |
111 | | -#html_theme_path = [] |
| 113 | +# html_theme_path = [] |
112 | 114 |
|
113 | 115 | # The name for this set of Sphinx documents. If None, it defaults to |
114 | 116 | # "<project> v<release> documentation". |
115 | | -#html_title = None |
| 117 | +# html_title = None |
116 | 118 |
|
117 | 119 | # A shorter title for the navigation bar. Default is the same as html_title. |
118 | | -#html_short_title = None |
| 120 | +# html_short_title = None |
119 | 121 |
|
120 | 122 | # The name of an image file (relative to this directory) to place at the top |
121 | 123 | # of the sidebar. |
|
124 | 126 | # The name of an image file (within the static path) to use as favicon of the |
125 | 127 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
126 | 128 | # pixels large. |
127 | | -#html_favicon = None |
| 129 | +# html_favicon = None |
128 | 130 |
|
129 | 131 | # Add any paths that contain custom static files (such as style sheets) here, |
130 | 132 | # relative to this directory. They are copied after the builtin static files, |
131 | 133 | # so a file named "default.css" will overwrite the builtin "default.css". |
132 | | -html_static_path = ['_static'] |
| 134 | +html_static_path = ["_static"] |
133 | 135 |
|
134 | 136 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
135 | 137 | # using the given strftime format. |
136 | | -#html_last_updated_fmt = '%b %d, %Y' |
| 138 | +# html_last_updated_fmt = '%b %d, %Y' |
137 | 139 |
|
138 | 140 | # If true, SmartyPants will be used to convert quotes and dashes to |
139 | 141 | # typographically correct entities. |
140 | | -#html_use_smartypants = True |
| 142 | +# html_use_smartypants = True |
141 | 143 |
|
142 | 144 | # Custom sidebar templates, maps document names to template names. |
143 | | -#html_sidebars = {} |
| 145 | +# html_sidebars = {} |
144 | 146 |
|
145 | 147 | # Additional templates that should be rendered to pages, maps page names to |
146 | 148 | # template names. |
147 | | -#html_additional_pages = {} |
| 149 | +# html_additional_pages = {} |
148 | 150 |
|
149 | 151 | # If false, no module index is generated. |
150 | 152 | html_use_modindex = False |
151 | 153 |
|
152 | 154 | # If false, no index is generated. |
153 | | -#html_use_index = True |
| 155 | +# html_use_index = True |
154 | 156 |
|
155 | 157 | # If true, the index is split into individual pages for each letter. |
156 | | -#html_split_index = False |
| 158 | +# html_split_index = False |
157 | 159 |
|
158 | 160 | # If true, links to the reST sources are added to the pages. |
159 | | -#html_show_sourcelink = True |
| 161 | +# html_show_sourcelink = True |
160 | 162 |
|
161 | 163 | # If true, an OpenSearch description file will be output, and all pages will |
162 | 164 | # contain a <link> tag referring to it. The value of this option must be the |
163 | 165 | # base URL from which the finished HTML is served. |
164 | | -#html_use_opensearch = '' |
| 166 | +# html_use_opensearch = '' |
165 | 167 |
|
166 | 168 | # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). |
167 | | -#html_file_suffix = '' |
| 169 | +# html_file_suffix = '' |
168 | 170 |
|
169 | 171 | # Output file base name for HTML help builder. |
170 | | -htmlhelp_basename = 'pyBarcodedoc' |
| 172 | +htmlhelp_basename = "pyBarcodedoc" |
171 | 173 |
|
172 | 174 | # -- Options for LaTeX output -------------------------------------------------- |
173 | 175 |
|
174 | 176 | # The paper size ('letter' or 'a4'). |
175 | | -#latex_paper_size = 'letter' |
| 177 | +# latex_paper_size = 'letter' |
176 | 178 |
|
177 | 179 | # The font size ('10pt', '11pt' or '12pt'). |
178 | | -#latex_font_size = '10pt' |
| 180 | +# latex_font_size = '10pt' |
179 | 181 |
|
180 | 182 | # Grouping the document tree into LaTeX files. List of tuples |
181 | 183 | # (source start file, target name, title, author, documentclass [howto/manual]). |
182 | 184 | latex_documents = [ |
183 | 185 | ( |
184 | | - 'index', 'pyBarcode.tex', 'pyBarcode Documentation', |
185 | | - 'Thorsten Weimann', 'manual' |
| 186 | + "index", |
| 187 | + "pyBarcode.tex", |
| 188 | + "pyBarcode Documentation", |
| 189 | + "Thorsten Weimann", |
| 190 | + "manual", |
186 | 191 | ), |
187 | 192 | ] |
188 | 193 |
|
189 | 194 | # The name of an image file (relative to this directory) to place at the top of |
190 | 195 | # the title page. |
191 | | -#latex_logo = None |
| 196 | +# latex_logo = None |
192 | 197 |
|
193 | 198 | # For "manual" documents, if this is true, then toplevel headings are parts, |
194 | 199 | # not chapters. |
195 | | -#latex_use_parts = False |
| 200 | +# latex_use_parts = False |
196 | 201 |
|
197 | 202 | # Additional stuff for the LaTeX preamble. |
198 | | -#latex_preamble = '' |
| 203 | +# latex_preamble = '' |
199 | 204 |
|
200 | 205 | # Documents to append as an appendix to all manuals. |
201 | | -#latex_appendices = [] |
| 206 | +# latex_appendices = [] |
202 | 207 |
|
203 | 208 | # If false, no module index is generated. |
204 | 209 | latex_use_modindex = False |
205 | 210 |
|
206 | | -if sys.platform.startswith('win'): |
207 | | - graphviz_dot = r'P:\Portable\Graphviz\App\bin\dot.exe' |
| 211 | +if sys.platform.startswith("win"): |
| 212 | + graphviz_dot = r"P:\Portable\Graphviz\App\bin\dot.exe" |
208 | 213 | else: |
209 | | - graphviz_dot = '/usr/bin/dot' |
| 214 | + graphviz_dot = "/usr/bin/dot" |
0 commit comments