summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>2016-12-01 12:02:08 +0000
committerJean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>2016-12-01 15:07:19 +0000
commit77d2bcaf2f29e436a9d494a4f2c2bd60f62b9d7a (patch)
treeec0de52de445121c88c3a00f6fbe16086c9979e7
parent42ebb111a67df0dca0fc62d6e3f45223214ee628 (diff)
Point roles docs bugs to openstack-ansible LP
Currently when clicking on the small bug in the roles' docs, we land on openstack-manuals launchpad. This should solve it. Change-Id: Ia6788162ca5cf09db374e221d0997e6adc91b15b
Notes
Notes (review): Code-Review+2: Major Hayden <major@mhtx.net> Workflow+1: Alexandra Settle <a.settle@outlook.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 01 Dec 2016 15:37:31 +0000 Reviewed-on: https://review.openstack.org/405303 Project: openstack/openstack-ansible-memcached_server Branch: refs/heads/master
-rw-r--r--doc/source/conf.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index ed84948..c157270 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -22,9 +22,9 @@
22# All configuration values have a default; values that are commented out 22# All configuration values have a default; values that are commented out
23# serve to show the default. 23# serve to show the default.
24 24
25import openstackdocstheme
25import pbr.version 26import pbr.version
26import os 27import os
27import openstackdocstheme
28 28
29# If extensions (or modules to document with autodoc) are in another directory, 29# If extensions (or modules to document with autodoc) are in another directory,
30# add these directories to sys.path here. If the directory is relative to the 30# add these directories to sys.path here. If the directory is relative to the
@@ -83,6 +83,22 @@ release = version_info.version_string_with_vcs()
83# The short X.Y version. 83# The short X.Y version.
84version = version_info.canonical_version_string() 84version = version_info.canonical_version_string()
85 85
86# A few variables have to be set for the log-a-bug feature.
87# giturl: The location of conf.py on Git. Must be set manually.
88# gitsha: The SHA checksum of the bug description.
89# Automatically extracted from git log.
90# bug_tag: Tag for categorizing the bug. Must be set manually.
91# These variables are passed to the logabug code via html_context.
92giturl = ("http://git.openstack.org/cgit/openstack/{0}"
93 "/tree/doc/source").format(target_name)
94git_cmd = "/usr/bin/git log | head -n1 | cut -f2 -d' '"
95gitsha = os.popen(git_cmd).read().strip('\n')
96bug_project = project.lower()
97bug_title = "Documentation bug"
98html_context = {"gitsha": gitsha, "giturl": giturl,
99 "bug_tag": "docs", "bug_title": bug_title,
100 "bug_project": bug_project}
101
86# The language for content autogenerated by Sphinx. Refer to documentation 102# The language for content autogenerated by Sphinx. Refer to documentation
87# for a list of supported languages. 103# for a list of supported languages.
88# 104#
@@ -307,6 +323,7 @@ texinfo_documents = [
307# If true, do not generate a @detailmenu in the "Top" node's menu. 323# If true, do not generate a @detailmenu in the "Top" node's menu.
308# texinfo_no_detailmenu = False 324# texinfo_no_detailmenu = False
309 325
326
310watermark = os.popen("git branch --contains $(git rev-parse HEAD)\ 327watermark = os.popen("git branch --contains $(git rev-parse HEAD)\
311| awk -F/ '/stable/ {print $2}'").read().strip(' \n\t').capitalize() 328| awk -F/ '/stable/ {print $2}'").read().strip(' \n\t').capitalize()
312if watermark == "": 329if watermark == "":