Debian Codegraph @

doc/api/conf.py

raw
1 import os
2 import sys
3 from datetime import date
4 sys.path.insert(0, os.path.abspath('../../src'))
5
6 from lxml import __version__ as lxml_version
7
8 # -- Project information -----------------------------------------------------
9
10 project = 'lxml'
11 copyright = f'{date.today().year}, lxml dev team'
12 author = 'lxml dev team'
13 version = lxml_version
14
15
16 # -- General configuration ---------------------------------------------------
17
18 extensions = [
19 'sphinx.ext.autodoc',
20 'sphinx.ext.viewcode',
21 'sphinx_rtd_theme',
22 ]
23
24 language = 'en'
25
26 exclude_patterns = ['_build']
27
28
29 # -- Options for HTML output -------------------------------------------------
30
31 html_theme = 'sphinx_rtd_theme'
32
33 html_logo = '../html/python-xml.png'
34
35 # Add any paths that contain custom static files (such as style sheets) here,
36 # relative to this directory. They are copied after the builtin static files,
37 # so a file named "default.css" will overwrite the builtin "default.css".
38 #html_static_path = ['_static']
39
40 html_theme_options = {
41 'collapse_navigation': False,
42 'titles_only': True,
43 }
44
45 # -- Extension configuration -------------------------------------------------
46
47 autodoc_default_options = {
48 'ignore-module-all': True,
49 'private-members': True,
50 'inherited-members': True,
51 }
52
53 autodoc_member_order = 'groupwise'
54
55 intersphinx_mapping = {
56 "lxml": ("https://lxml.de/apidoc/", None),
57 }
58
59 # -- Options for todo extension ----------------------------------------------
60
61 # If true, `todo` and `todoList` produce output, else they produce nothing.
62 #todo_include_todos = True