|
22 | 22 | import sys |
23 | 23 | import wagtailstreamforms |
24 | 24 |
|
25 | | -sys.path.insert(0, os.path.abspath('.')) |
26 | | -sys.path.insert(0, os.path.abspath('..')) |
| 25 | +sys.path.insert(0, os.path.abspath(".")) |
| 26 | +sys.path.insert(0, os.path.abspath("..")) |
27 | 27 |
|
28 | | -os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' |
| 28 | +os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings" |
29 | 29 | django.setup() |
30 | 30 |
|
31 | 31 |
|
|
38 | 38 | # Add any Sphinx extension module names here, as strings. They can be |
39 | 39 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
40 | 40 | # ones. |
41 | | -extensions = [ |
42 | | - "sphinx.ext.autodoc" |
43 | | -] |
| 41 | +extensions = ["sphinx.ext.autodoc"] |
44 | 42 |
|
45 | 43 | # Add any paths that contain templates here, relative to this directory. |
46 | | -templates_path = ['_templates'] |
| 44 | +templates_path = ["_templates"] |
47 | 45 |
|
48 | 46 | # The suffix(es) of source filenames. |
49 | 47 | # You can specify multiple suffix as a list of string: |
50 | 48 | # |
51 | 49 | # source_suffix = ['.rst', '.md'] |
52 | | -source_suffix = '.rst' |
| 50 | +source_suffix = ".rst" |
53 | 51 |
|
54 | 52 | # The master toctree document. |
55 | | -master_doc = 'index' |
| 53 | +master_doc = "index" |
56 | 54 |
|
57 | 55 | # General information about the project. |
58 | | -project = 'Wagtail Streamforms' |
59 | | -copyright = '2018, Accent Design Group LTD' |
60 | | -author = 'Stuart George' |
| 56 | +project = "Wagtail Streamforms" |
| 57 | +copyright = "2018, Accent Design Group LTD" |
| 58 | +author = "Stuart George" |
61 | 59 |
|
62 | 60 | # The version info for the project you're documenting, acts as replacement for |
63 | 61 | # |version| and |release|, also used in various other places throughout the |
|
78 | 76 | # List of patterns, relative to source directory, that match files and |
79 | 77 | # directories to ignore when looking for source files. |
80 | 78 | # This patterns also effect to html_static_path and html_extra_path |
81 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 79 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
82 | 80 |
|
83 | 81 | # The name of the Pygments (syntax highlighting) style to use. |
84 | | -pygments_style = 'default' |
| 82 | +pygments_style = "default" |
85 | 83 |
|
86 | 84 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
87 | 85 | todo_include_todos = False |
|
92 | 90 | # The theme to use for HTML and HTML Help pages. See the documentation for |
93 | 91 | # a list of builtin themes. |
94 | 92 | # |
95 | | -html_theme = 'karma_sphinx_theme' |
| 93 | +html_theme = "karma_sphinx_theme" |
96 | 94 |
|
97 | 95 | # Theme options are theme-specific and customize the look and feel of a theme |
98 | 96 | # further. For a list of options available for each theme, see the |
|
103 | 101 | # Add any paths that contain custom static files (such as style sheets) here, |
104 | 102 | # relative to this directory. They are copied after the builtin static files, |
105 | 103 | # so a file named "default.css" will overwrite the builtin "default.css". |
106 | | -html_static_path = ['_static'] |
| 104 | +html_static_path = ["_static"] |
107 | 105 |
|
108 | 106 |
|
109 | 107 | # -- Options for HTMLHelp output ------------------------------------------ |
110 | 108 |
|
111 | 109 | # Output file base name for HTML help builder. |
112 | | -htmlhelp_basename = 'WagtailStreamformsdoc' |
| 110 | +htmlhelp_basename = "WagtailStreamformsdoc" |
113 | 111 |
|
114 | 112 |
|
115 | 113 | # -- Options for LaTeX output --------------------------------------------- |
|
118 | 116 | # The paper size ('letterpaper' or 'a4paper'). |
119 | 117 | # |
120 | 118 | # 'papersize': 'letterpaper', |
121 | | - |
122 | 119 | # The font size ('10pt', '11pt' or '12pt'). |
123 | 120 | # |
124 | 121 | # 'pointsize': '10pt', |
125 | | - |
126 | 122 | # Additional stuff for the LaTeX preamble. |
127 | 123 | # |
128 | 124 | # 'preamble': '', |
129 | | - |
130 | 125 | # Latex figure (float) alignment |
131 | 126 | # |
132 | 127 | # 'figure_align': 'htbp', |
|
136 | 131 | # (source start file, target name, title, |
137 | 132 | # author, documentclass [howto, manual, or own class]). |
138 | 133 | latex_documents = [ |
139 | | - (master_doc, 'WagtailStreamforms.tex', 'Wagtail Streamforms Documentation', |
140 | | - 'STuart George', 'manual'), |
| 134 | + ( |
| 135 | + master_doc, |
| 136 | + "WagtailStreamforms.tex", |
| 137 | + "Wagtail Streamforms Documentation", |
| 138 | + "STuart George", |
| 139 | + "manual", |
| 140 | + ), |
141 | 141 | ] |
142 | 142 |
|
143 | 143 |
|
144 | 144 | # -- Options for manual page output --------------------------------------- |
145 | 145 |
|
146 | 146 | # One entry per manual page. List of tuples |
147 | 147 | # (source start file, name, description, authors, manual section). |
148 | | -man_pages = [ |
149 | | - (master_doc, 'wagtailstreamforms', 'Wagtail Streamforms Documentation', |
150 | | - [author], 1) |
151 | | -] |
| 148 | +man_pages = [(master_doc, "wagtailstreamforms", "Wagtail Streamforms Documentation", [author], 1)] |
152 | 149 |
|
153 | 150 |
|
154 | 151 | # -- Options for Texinfo output ------------------------------------------- |
|
157 | 154 | # (source start file, target name, title, author, |
158 | 155 | # dir menu entry, description, category) |
159 | 156 | texinfo_documents = [ |
160 | | - (master_doc, 'WagtailStreamforms', 'Wagtail Streamforms Documentation', |
161 | | - author, 'WagtailStreamforms', 'One line description of project.', |
162 | | - 'Miscellaneous'), |
| 157 | + ( |
| 158 | + master_doc, |
| 159 | + "WagtailStreamforms", |
| 160 | + "Wagtail Streamforms Documentation", |
| 161 | + author, |
| 162 | + "WagtailStreamforms", |
| 163 | + "One line description of project.", |
| 164 | + "Miscellaneous", |
| 165 | + ), |
163 | 166 | ] |
164 | | - |
165 | | - |
166 | | - |
0 commit comments