From b017983f5bcce39210133f20868ec6e40ceac094 Mon Sep 17 00:00:00 2001
From: Ha Van Tu <tuhv@vn.fujitsu.com>
Date: Wed, 31 Aug 2016 12:00:44 +0700
Subject: [PATCH] Config logABug feature for Cinder api-ref

Currently, Cinder api-ref is configured with logABug feature.
When users click "Report bug" button,
it leads to "bugs.launchpad.net/openstack-manuals" which is default.
We should change it to "bugs.launchpad.net/cinder/".

Change-Id: Iabd97f92a9cdc64513fc572630ef223762794f95
---
 api-ref/source/conf.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py
index 0663723f2ec..111266e1e1e 100644
--- a/api-ref/source/conf.py
+++ b/api-ref/source/conf.py
@@ -70,6 +70,14 @@ release = version_info.release_string()
 # The short X.Y version.
 version = version_info.version_string()
 
+# Config logABug feature
+giturl = u'http://git.openstack.org/cgit/openstack/cinder/tree/api-ref/source'
+# source tree
+# html_context allows us to pass arbitrary values into the html template
+html_context = {"bug_tag": "api-ref",
+                "giturl": giturl,
+                "bug_project": "cinder"}
+
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 #