X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=doc%2Fbindings%2Fpython%2Fsource%2Fconf.py;h=859ae57a078d385abc2a5ca5480ea2889e599571;hb=ba64dfcccb1f1bd7a259dc5d563ba422b8375582;hp=32e1cdf743defa62d1d4aed32a8cc09b5d0fb6f2;hpb=d6681ce0d1108ffcabdf9aa05ae771857f799da2;p=babeltrace.git diff --git a/doc/bindings/python/source/conf.py b/doc/bindings/python/source/conf.py index 32e1cdf7..859ae57a 100644 --- a/doc/bindings/python/source/conf.py +++ b/doc/bindings/python/source/conf.py @@ -1,54 +1,22 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -import babeltrace -import os +# SPDX-License-Identifier: MIT +# +# Copyright (c) 2020 Philippe Proulx +import bt2 +import re -# general configuration -needs_sphinx = '1.2' -extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.ifconfig', -] -templates_path = ['_templates'] -source_suffix = '.rst' -source_encoding = 'utf-8-sig' -master_doc = 'index' -project = 'Babeltrace Python bindings' -copyright = '2017, EfficiOS Inc.' -version = babeltrace.__version__ -release = version -language = None -today = '' -today_fmt = '%B %d, %Y' -exclude_patterns = [] -default_role = None -add_function_parentheses = True -add_module_names = True -show_authors = False -pygments_style = 'sphinx' -modindex_common_prefix = [] -keep_warnings = False +# project +project = 'Babeltrace 2 Python bindings' +copyright = '2020, EfficiOS, Inc' +author = 'EfficiOS, Inc' +release = bt2.__version__ +version = re.match(r'^\d+\.\d+', release).group(0) -# HTML output options -html_theme = 'default' +# index +master_doc = 'index' -if os.path.isdir(os.path.join('_themes', 'sphinx_rtd_theme')): - html_theme = 'sphinx_rtd_theme' +# extensions +extensions = ['bt2sphinxurl'] -html_theme_options = {} -html_theme_path = ['_themes'] -html_logo = None -html_favicon = None -html_static_path = ['_static'] -html_extra_path = [] -html_last_updated_fmt = '%b %d, %Y' -html_use_smartypants = False -html_sidebars = {} -html_additional_pages = {} -html_domain_indices = True -html_use_index = True -html_split_index = False -html_show_sourcelink = False -html_show_copyright = True -htmlhelp_basename = 'BabeltracePydoc' +# theme +html_theme = 'alabaster'