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