X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=doc%2Fbindings%2Fpython%2Fsource%2Fconf.py;h=99e60af8942fe3535f00e9f924cf3c8c5e7bc288;hb=HEAD;hp=bdf5fe61da34b62e44ad300746f2e75f16f8cb18;hpb=4f5f37d9512a7fa57b5f98a973b009e47e9f4963;p=babeltrace.git diff --git a/doc/bindings/python/source/conf.py b/doc/bindings/python/source/conf.py index bdf5fe61..99e60af8 100644 --- a/doc/bindings/python/source/conf.py +++ b/doc/bindings/python/source/conf.py @@ -1,56 +1,23 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -import babeltrace -import os +# SPDX-License-Identifier: MIT +# +# Copyright (c) 2020 Philippe Proulx +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 = '2014, 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 +import bt2 -# HTML output options -html_theme = 'default' +# 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) -if os.path.isdir(os.path.join('_themes', 'sphinx_rtd_theme')): - html_theme = 'sphinx_rtd_theme' +# index +master_doc = "index" -html_theme_options = {} -html_theme_path = ['_themes'] -html_title = None -html_short_title = None -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' +# extensions +extensions = ["bt2sphinxurl"] + +# theme +html_theme = "alabaster"