The current implementation of the "log a bug" feature on each page of docs.openstack.org built from the clouddocs-maven-plugin is this snippet of javascript that activates when the "bug" icon is pushed.
https://github.com/stackforge/clouddocs-maven-plugin/blob/a3621dfb4b620f3993d826649f7b944dae4b2407/src/main/resources/common/jquery/main-openstack.js#L223
function logABug(bugTitle, fieldComment){
var urlBase = "https://bugs.launchpad.net/openstack-manuals/+filebug?field.title="
var bugLink = urlBase + encodeURIComponent(bugTitle) + "&field.comment=" + lineFeed + lineFeed + "-----------------------------------" + lineFeed + fieldComment;
document.getElementById("logABugLink1").href=bugLink;
document.getElementById("logABugLink2").href=bugLink;
}
This snippet should be incorporated into the Sphinx theme at http://git.openstack.org/cgit/openstack/openstackdocstheme in the docs.js file.
Also, the page template will need to be updated so that the bug icon is contained by:
<a id="logABugLink1" href="" target="_blank" title="Found an error? Report a bug against this page"><i class="icon-bug">