| 1 | #!/usr/bin/env python3 |
| 2 | # -*- coding: utf-8 -*- |
| 3 | import bt2 |
| 4 | import os |
| 5 | |
| 6 | |
| 7 | # general configuration |
| 8 | needs_sphinx = '1.2' |
| 9 | extensions = [ |
| 10 | 'sphinx.ext.autodoc', |
| 11 | 'sphinx.ext.ifconfig', |
| 12 | ] |
| 13 | templates_path = ['_templates'] |
| 14 | source_suffix = '.rst' |
| 15 | source_encoding = 'utf-8-sig' |
| 16 | master_doc = 'index' |
| 17 | project = 'Babeltrace legacy Python bindings' |
| 18 | copyright = '2019, EfficiOS Inc.' |
| 19 | version = bt2.__version__ |
| 20 | release = version |
| 21 | language = None |
| 22 | today = '' |
| 23 | today_fmt = '%B %d, %Y' |
| 24 | exclude_patterns = [] |
| 25 | default_role = None |
| 26 | add_function_parentheses = True |
| 27 | add_module_names = True |
| 28 | show_authors = False |
| 29 | pygments_style = 'sphinx' |
| 30 | modindex_common_prefix = [] |
| 31 | keep_warnings = False |
| 32 | |
| 33 | # HTML output options |
| 34 | html_theme = 'default' |
| 35 | |
| 36 | if os.path.isdir(os.path.join('_themes', 'sphinx_rtd_theme')): |
| 37 | html_theme = 'sphinx_rtd_theme' |
| 38 | |
| 39 | html_theme_options = {} |
| 40 | html_theme_path = ['_themes'] |
| 41 | html_logo = None |
| 42 | html_favicon = None |
| 43 | html_static_path = ['_static'] |
| 44 | html_extra_path = [] |
| 45 | html_last_updated_fmt = '%b %d, %Y' |
| 46 | html_use_smartypants = False |
| 47 | html_sidebars = {} |
| 48 | html_additional_pages = {} |
| 49 | html_domain_indices = True |
| 50 | html_use_index = True |
| 51 | html_split_index = False |
| 52 | html_show_sourcelink = False |
| 53 | html_show_copyright = True |
| 54 | htmlhelp_basename = 'BabeltracePydoc' |