Debian Codegraph @

docs/conf.py

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
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 html_favicon = 'https://www.courtbouillon.org/static/images/favicon.png'
51
52 # Add any paths that contain custom static files (such as style sheets) here,
53 # relative to this directory. They are copied after the builtin static files,
54 # so a file named "default.css" will overwrite the builtin "default.css".
55 html_static_path = []
56
57 # These paths are either relative to html_static_path
58 # or fully qualified paths (eg. https://...)
59 html_css_files = [
60 'https://www.courtbouillon.org/static/docs.css',
61 ]
62
63 # Output file base name for HTML help builder.
64 htmlhelp_basename = 'cairocffidoc'
65
66 # One entry per manual page. List of tuples
67 # (source start file, name, description, authors, manual section).
68 man_pages = [
69 ('manpage', 'cairocffi', 'CFFI-based cairo bindings for Python',
70 ['Simon Sapin and contributors'], 1)
71 ]
72
73 # Grouping the document tree into Texinfo files. List of tuples
74 # (source start file, target name, title, author,
75 # dir menu entry, description, category)
76 texinfo_documents = [(
77 'index', 'CairoCFFI', 'CairoCFFI Documentation',
78 'Simon Sapin and contributors', 'CairoCFFI',
79 'CFFI-based cairo bindings for Python', 'Miscellaneous'),
80 ]
81
82 intersphinx_mapping = {
83 'python': ('https://docs.python.org/3/', None),
84 'pycairo': ('https://cairographics.org/documentation/pycairo/2/', None),
85 'cffi': ('https://cffi.readthedocs.io/en/latest/', None),
86 }