Remove `skip-string-normalization` in Python formatter config
[babeltrace.git] / doc / bindings / python / source / conf.py
index e39de7c66dcbc0ea6de9e4a10dda74d2af70ebfb..148cc92abca409abca0d4708ce03216b9f8e0d23 100644 (file)
@@ -1,54 +1,22 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-import bt2
-import os
+# SPDX-License-Identifier: MIT
+#
+# Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
 
+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 legacy Python bindings'
-copyright = '2019, EfficiOS Inc.'
-version = bt2.__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"
This page took 0.02795 seconds and 4 git commands to generate.