| 1 |
# CairoCFFI documentation build configuration file. |
| 2 |
|
| 3 |
import cairocffi |
| 4 |
|
| 5 |
# Add any Sphinx extension module names here, as strings. They can be |
| 6 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
| 7 |
extensions = [ |
| 8 |
'sphinx.ext.autodoc', 'sphinx.ext.intersphinx', |
| 9 |
'sphinx.ext.autosectionlabel'] |
| 10 |
|
| 11 |
# Add any paths that contain templates here, relative to this directory. |
| 12 |
templates_path = ['_templates'] |
| 13 |
|
| 14 |
# The suffix of source filenames. |
| 15 |
source_suffix = '.rst' |
| 16 |
|
| 17 |
# The master toctree document. |
| 18 |
master_doc = 'index' |
| 19 |
|
| 20 |
# General information about the project. |
| 21 |
project = 'CairoCFFI' |
| 22 |
copyright = 'Simon Sapin and contributors' |
| 23 |
|
| 24 |
# The version info for the project you're documenting, acts as replacement for |
| 25 |
# |version| and |release|, also used in various other places throughout the |
| 26 |
# built documents. |
| 27 |
# |
| 28 |
# The full version, including alpha/beta/rc tags. |
| 29 |
release = cairocffi.__version__ |
| 30 |
|
| 31 |
# The short X.Y version. |
| 32 |
version = release |
| 33 |
|
| 34 |
# List of patterns, relative to source directory, that match files and |
| 35 |
# directories to ignore when looking for source files. |
| 36 |
exclude_patterns = ['_build'] |
| 37 |
|
| 38 |
# The name of the Pygments (syntax highlighting) style to use. |
| 39 |
pygments_style = 'monokai' |
| 40 |
|
| 41 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 42 |
# a list of builtin themes. |
| 43 |
html_theme = 'sphinx_rtd_theme' |
| 44 |
|
| 45 |
html_theme_options = { |
| 46 |
'collapse_navigation': False, |
| 47 |
} |
| 48 |
|
| 49 |
# Favicon URL |
| •50 |
|
| 51 |
#Removed due to privacy concerns. |
| 52 |
#html_favicon = 'https://www.courtbouillon.org/static/images/favicon.png' |
| 53 |
|
| 54 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 55 |
# relative to this directory. They are copied after the builtin static files, |
| 56 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| •57 |
html_static_path = ['_static'] |
| 58 |
|
| 59 |
# These paths are either relative to html_static_path |
| 60 |
# or fully qualified paths (eg. https://...) |
| 61 |
html_css_files = [ |
| •62 |
'docs.css' |
| 63 |
] |
| 64 |
|
| 65 |
# Output file base name for HTML help builder. |
| 66 |
htmlhelp_basename = 'cairocffidoc' |
| 67 |
|
| 68 |
# One entry per manual page. List of tuples |
| 69 |
# (source start file, name, description, authors, manual section). |
| 70 |
man_pages = [ |
| 71 |
('manpage', 'cairocffi', 'CFFI-based cairo bindings for Python', |
| 72 |
['Simon Sapin and contributors'], 1) |
| 73 |
] |
| 74 |
|
| 75 |
# Grouping the document tree into Texinfo files. List of tuples |
| 76 |
# (source start file, target name, title, author, |
| 77 |
# dir menu entry, description, category) |
| 78 |
texinfo_documents = [( |
| 79 |
'index', 'CairoCFFI', 'CairoCFFI Documentation', |
| 80 |
'Simon Sapin and contributors', 'CairoCFFI', |
| 81 |
'CFFI-based cairo bindings for Python', 'Miscellaneous'), |
| 82 |
] |
| 83 |
|
| 84 |
intersphinx_mapping = { |
| •85 |
'python': ('../debian/python.org_objects.inv', None), |
| 86 |
'pycairo': ('../debian/cairographics.org_pycairo2_objects.inv', None), |
| 87 |
'cffi': ('../debian/cffi.readthedocs.io_cffi_objects.inv', None), |
| 88 |
} |