|
6 | 6 | # -- Project information ----------------------------------------------------- |
7 | 7 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
8 | 8 |
|
9 | | -import re |
10 | | -with open('../CloudFlare/__init__.py', 'r') as f: |
11 | | - _version_re = re.compile(r"__version__\s=\s'(.*)'") |
12 | | - version = _version_re.search(f.read()).group(1) |
13 | | - |
14 | 9 | project = 'python-cloudflare' |
15 | | -copyright = 'Copyright (c) 2016 thru 2024, Cloudflare. All rights reserved.' |
| 10 | +copyright = '2024, Martin J Levy' |
16 | 11 | author = 'Martin J Levy' |
17 | | -release = str(version) |
| 12 | + |
| 13 | +version = '2.20.0' |
| 14 | +release = '2.20.0' |
18 | 15 |
|
19 | 16 | # -- General configuration --------------------------------------------------- |
20 | 17 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
21 | 18 |
|
22 | 19 | extensions = [ |
23 | | - 'myst_parser', |
24 | 20 | 'sphinx.ext.autodoc', |
25 | | - 'sphinx_rtd_theme', |
| 21 | + 'sphinx.ext.viewcode', |
| 22 | + 'sphinx.ext.todo', |
| 23 | + 'sphinx.ext.autodoc', |
26 | 24 | ] |
27 | 25 |
|
28 | | -html_theme = "sphinx_rtd_theme" |
29 | | - |
30 | 26 | templates_path = ['_templates'] |
31 | | -exclude_patterns = [ |
32 | | - 'CloudFlare/__init__.py', |
33 | | - 'CloudFlare/tests/__init__.py', |
34 | | - '_build', |
35 | | - 'Thumbs.db', |
36 | | - '.DS_Store' |
37 | | -] |
| 27 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
38 | 28 |
|
39 | | -autoclass_content = 'both' |
| 29 | +language = 'en' |
40 | 30 |
|
41 | 31 | # -- Options for HTML output ------------------------------------------------- |
42 | 32 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
43 | 33 |
|
44 | 34 | html_theme = 'alabaster' |
45 | 35 | html_static_path = ['_static'] |
46 | 36 |
|
47 | | -import os |
48 | | -import sys |
49 | | -sys.path.insert(0, os.path.abspath('..')) |
| 37 | +# -- Options for todo extension ---------------------------------------------- |
| 38 | +# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration |
| 39 | + |
| 40 | +todo_include_todos = True |
0 commit comments