|
1 | | -# |
2 | | -# Configuration file for the Sphinx documentation builder. |
3 | | -# |
4 | | -# This file does only contain a selection of the most common options. For a |
5 | | -# full list see the documentation: |
6 | | -# http://www.sphinx-doc.org/en/master/config |
7 | | - |
8 | | -# -- Path setup -------------------------------------------------------------- |
9 | | - |
10 | | -# If extensions (or modules to document with autodoc) are in another directory, |
11 | | -# add these directories to sys.path here. If the directory is relative to the |
12 | | -# documentation root, use os.path.abspath to make it absolute, like shown here. |
13 | | -# |
14 | | -"""Docstring to fix pydocstyle D100 Missing docstring in public module.""" |
| 1 | +"""Sphinx configuration for wily documentation.""" |
15 | 2 |
|
16 | 3 | import os.path |
17 | 4 | import sys |
|
24 | 11 | copyright = "2018, Anthony Shaw" |
25 | 12 | author = "Anthony Shaw" |
26 | 13 |
|
27 | | -# The short X.Y version |
28 | | -import wily |
| 14 | +try: |
| 15 | + import wily |
29 | 16 |
|
30 | | -version = wily.__version__ |
31 | | -# The full version, including alpha/beta/rc tags |
32 | | -release = "develop" |
| 17 | + version = wily.__version__ |
| 18 | +except ImportError: |
| 19 | + version = "dev" |
33 | 20 |
|
| 21 | +release = version |
34 | 22 |
|
35 | 23 | # -- General configuration --------------------------------------------------- |
36 | 24 |
|
37 | | -# If your documentation needs a minimal Sphinx version, state it here. |
38 | | -# |
39 | | -# needs_sphinx = '1.0' |
40 | | - |
41 | | -# Add any Sphinx extension module names here, as strings. They can be |
42 | | -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
43 | | -# ones. |
44 | 25 | extensions = [ |
45 | | - "sphinx_click.ext", |
| 26 | + "sphinx_click", |
46 | 27 | "sphinx.ext.autodoc", |
47 | | - "sphinx.ext.doctest", |
48 | 28 | "sphinx.ext.todo", |
49 | | - "sphinx.ext.coverage", |
50 | 29 | "sphinx.ext.viewcode", |
51 | 30 | "sphinx.ext.githubpages", |
52 | 31 | ] |
53 | 32 |
|
54 | | -# Add any paths that contain templates here, relative to this directory. |
55 | 33 | templates_path = ["_templates"] |
56 | | - |
57 | | -# The suffix(es) of source filenames. |
58 | | -# You can specify multiple suffix as a list of string: |
59 | | -# |
60 | | -# source_suffix = ['.rst', '.md'] |
61 | 34 | source_suffix = ".rst" |
62 | | - |
63 | | -# The master toctree document. |
64 | 35 | master_doc = "index" |
65 | | - |
66 | | -# The language for content autogenerated by Sphinx. Refer to documentation |
67 | | -# for a list of supported languages. |
68 | | -# |
69 | | -# This is also used if you do content translation via gettext catalogs. |
70 | | -# Usually you set "language" from the command line for these cases. |
71 | | -language = None |
72 | | - |
73 | | -# List of patterns, relative to source directory, that match files and |
74 | | -# directories to ignore when looking for source files. |
75 | | -# This pattern also affects html_static_path and html_extra_path. |
| 36 | +language = "en" |
76 | 37 | exclude_patterns = [] |
77 | 38 |
|
78 | | -# The name of the Pygments (syntax highlighting) style to use. |
79 | | -pygments_style = None |
80 | | - |
81 | | - |
82 | 39 | # -- Options for HTML output ------------------------------------------------- |
83 | 40 |
|
84 | | -# The theme to use for HTML and HTML Help pages. See the documentation for |
85 | | -# a list of builtin themes. |
86 | | -# |
87 | 41 | html_theme = "alabaster" |
88 | 42 |
|
89 | | -# Theme options are theme-specific and customize the look and feel of a theme |
90 | | -# further. For a list of options available for each theme, see the |
91 | | -# documentation. |
92 | | -# |
93 | | -# html_theme_options = {} |
94 | | - |
95 | 43 | html_theme_options = { |
96 | 44 | "logo": "logo_below.png", |
97 | 45 | "logo_name": False, |
|
107 | 55 | }, |
108 | 56 | } |
109 | 57 |
|
110 | | -# Add any paths that contain custom static files (such as style sheets) here, |
111 | | -# relative to this directory. They are copied after the builtin static files, |
112 | | -# so a file named "default.css" will overwrite the builtin "default.css". |
113 | 58 | html_static_path = ["_static"] |
114 | 59 |
|
115 | | -# Custom sidebar templates, must be a dictionary that maps document names |
116 | | -# to template names. |
117 | | -# |
118 | | -# The default sidebars (for documents that don't match any pattern) are |
119 | | -# defined by theme itself. Builtin themes are using these templates by |
120 | | -# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', |
121 | | -# 'searchbox.html']``. |
122 | | -# |
123 | | -# html_sidebars = {} |
124 | 60 | html_sidebars = { |
125 | 61 | "**": ["about.html", "navigation.html", "searchbox.html"], |
126 | 62 | } |
127 | 63 |
|
128 | | - |
129 | | -# -- Options for HTMLHelp output --------------------------------------------- |
130 | | - |
131 | | -# Output file base name for HTML help builder. |
132 | 64 | htmlhelp_basename = "wilydoc" |
133 | 65 |
|
134 | | - |
135 | | -# -- Options for LaTeX output ------------------------------------------------ |
136 | | - |
137 | | -latex_elements = { |
138 | | - # The paper size ('letterpaper' or 'a4paper'). |
139 | | - # |
140 | | - # 'papersize': 'letterpaper', |
141 | | - # The font size ('10pt', '11pt' or '12pt'). |
142 | | - # |
143 | | - # 'pointsize': '10pt', |
144 | | - # Additional stuff for the LaTeX preamble. |
145 | | - # |
146 | | - # 'preamble': '', |
147 | | - # Latex figure (float) alignment |
148 | | - # |
149 | | - # 'figure_align': 'htbp', |
150 | | -} |
151 | | - |
152 | | -# Grouping the document tree into LaTeX files. List of tuples |
153 | | -# (source start file, target name, title, |
154 | | -# author, documentclass [howto, manual, or own class]). |
155 | | -latex_documents = [ |
156 | | - (master_doc, "wily.tex", "wily Documentation", "Anthony Shaw", "manual") |
157 | | -] |
158 | | - |
159 | | - |
160 | | -# -- Options for manual page output ------------------------------------------ |
161 | | - |
162 | | -# One entry per manual page. List of tuples |
163 | | -# (source start file, name, description, authors, manual section). |
164 | | -man_pages = [(master_doc, "wily", "wily Documentation", [author], 1)] |
165 | | - |
166 | | - |
167 | | -# -- Options for Texinfo output ---------------------------------------------- |
168 | | - |
169 | | -# Grouping the document tree into Texinfo files. List of tuples |
170 | | -# (source start file, target name, title, author, |
171 | | -# dir menu entry, description, category) |
172 | | -texinfo_documents = [ |
173 | | - ( |
174 | | - master_doc, |
175 | | - "wily", |
176 | | - "wily Documentation", |
177 | | - author, |
178 | | - "wily", |
179 | | - "One line description of project.", |
180 | | - "Miscellaneous", |
181 | | - ) |
182 | | -] |
183 | | - |
184 | | - |
185 | | -# -- Options for Epub output ------------------------------------------------- |
186 | | - |
187 | | -# Bibliographic Dublin Core info. |
188 | | -epub_title = project |
189 | | - |
190 | | -# The unique identifier of the text. This can be a ISBN number |
191 | | -# or the project homepage. |
192 | | -# |
193 | | -# epub_identifier = '' |
194 | | - |
195 | | -# A unique identification for the text. |
196 | | -# |
197 | | -# epub_uid = '' |
198 | | - |
199 | | -# A list of files that should not be packed into the epub file. |
200 | | -epub_exclude_files = ["search.html"] |
201 | | - |
202 | | - |
203 | | -# -- Extension configuration ------------------------------------------------- |
204 | | - |
205 | 66 | # -- Options for todo extension ---------------------------------------------- |
206 | 67 |
|
207 | | -# If true, `todo` and `todoList` produce output, else they produce nothing. |
208 | 68 | todo_include_todos = True |
0 commit comments