|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# For the full list of built-in configuration values, see the documentation: |
| 4 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 | + |
| 6 | +# -- Project information ----------------------------------------------------- |
| 7 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 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 | +project = 'python-cloudflare' |
| 15 | +copyright = 'Cloudflare (c) 2016 thru 2024' |
| 16 | +author = 'Martin J Levy' |
| 17 | +release = str(version) |
| 18 | + |
| 19 | +# -- General configuration --------------------------------------------------- |
| 20 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 21 | + |
| 22 | +extensions = [ |
| 23 | + 'myst_parser', |
| 24 | + 'sphinx.ext.autodoc', |
| 25 | + 'sphinx_rtd_theme', |
| 26 | +] |
| 27 | + |
| 28 | +html_theme = "sphinx_rtd_theme" |
| 29 | + |
| 30 | +templates_path = ['_templates'] |
| 31 | +exclude_patterns = [ |
| 32 | + 'CloudFlare/__init__.py', |
| 33 | + 'CloudFlare/tests/__init__.py', |
| 34 | + '_build', |
| 35 | + 'Thumbs.db', |
| 36 | + '.DS_Store' |
| 37 | +] |
| 38 | + |
| 39 | +autoclass_content = 'both' |
| 40 | + |
| 41 | +# -- Options for HTML output ------------------------------------------------- |
| 42 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 43 | + |
| 44 | +html_theme = 'alabaster' |
| 45 | +html_static_path = ['_static'] |
| 46 | + |
| 47 | +import os |
| 48 | +import sys |
| 49 | +sys.path.insert(0, os.path.abspath('..')) |
0 commit comments