From: Philippe Proulx
Date: Mon, 18 Sep 2017 20:30:39 +0000 (-0400)
Subject: Doc: babeltrace: update the Read the Docs Sphinx theme
X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=280a121cac46b0ddf6efbcb747efd3e8bca778e5
Doc: babeltrace: update the Read the Docs Sphinx theme
Signed-off-by: Philippe Proulx
Signed-off-by: Jérémie Galarneau
---
diff --git a/doc/bindings/python/source/_themes/sphinx_rtd_theme/__init__.py b/doc/bindings/python/source/_themes/sphinx_rtd_theme/__init__.py
index 1440863d..0433ff76 100644
--- a/doc/bindings/python/source/_themes/sphinx_rtd_theme/__init__.py
+++ b/doc/bindings/python/source/_themes/sphinx_rtd_theme/__init__.py
@@ -5,9 +5,7 @@ From https://github.com/ryan-roemer/sphinx-bootstrap-theme.
"""
import os
-VERSION = (0, 1, 5)
-
-__version__ = ".".join(str(v) for v in VERSION)
+__version__ = '0.2.5b1'
__version_full__ = __version__
diff --git a/doc/bindings/python/source/_themes/sphinx_rtd_theme/breadcrumbs.html b/doc/bindings/python/source/_themes/sphinx_rtd_theme/breadcrumbs.html
index ff0938e5..a988ecd2 100644
--- a/doc/bindings/python/source/_themes/sphinx_rtd_theme/breadcrumbs.html
+++ b/doc/bindings/python/source/_themes/sphinx_rtd_theme/breadcrumbs.html
@@ -1,19 +1,82 @@
+{# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #}
+
+{% if page_source_suffix %}
+{% set suffix = page_source_suffix %}
+{% else %}
+{% set suffix = source_suffix %}
+{% endif %}
+
+{% if meta is defined and meta is not none %}
+{% set check_meta = True %}
+{% else %}
+{% set check_meta = False %}
+{% endif %}
+
+{% if check_meta and 'github_url' in meta %}
+{% set display_github = True %}
+{% endif %}
+
+{% if check_meta and 'bitbucket_url' in meta %}
+{% set display_bitbucket = True %}
+{% endif %}
+
+{% if check_meta and 'gitlab_url' in meta %}
+{% set display_gitlab = True %}
+{% endif %}
+