Merge branch '2.0.1' into 2.0

This commit is contained in:
Takeshi KOMIYA 2019-04-07 19:17:46 +09:00
commit 70ed093b8b
5 changed files with 30 additions and 1 deletions

View File

@ -110,6 +110,10 @@ Bugs fixed
* #6220, #6225: napoleon: AttributeError is raised for raised section having
references
* #6245: circular import error on importing SerializingHTMLBuilder
* #6243: LaTeX: 'releasename' setting for latex_elements is ignored
* #6244: html: Search function is broken with 3rd party themes
* #6263: html: HTML5Translator crashed with invalid field node
* #6262: html theme: The style of field lists has changed in bizstyle theme
Testing
--------

View File

@ -208,7 +208,7 @@ class LaTeXBuilder(Builder):
self.context['indexname'] = _('Index')
if self.config.release:
# Show the release label only if release value exists
self.context['releasename'] = _('Release')
self.context.setdefault('releasename', _('Release'))
def init_babel(self):
# type: () -> None

View File

@ -75,6 +75,16 @@ var Search = {
}
},
loadIndex : function(url) {
$.ajax({type: "GET", url: url, data: null,
dataType: "script", cache: true,
complete: function(jqxhr, textstatus) {
if (textstatus != "success") {
document.getElementById("searchindexloader").src = url;
}
}});
},
setIndex : function(index) {
var q;
this._index = index;

View File

@ -410,6 +410,20 @@ p.versionchanged span.versionmodified {
background-color: #DCE6A0;
}
dl.field-list > dt {
color: white;
padding-left: 0.5em;
padding-right: 5px;
background-color: #82A0BE;
}
dl.field-list > dd {
padding-left: 0.5em;
margin-top: 0em;
margin-left: 0em;
background-color: #f7f7f7;
}
/* -- table styles ---------------------------------------------------------- */
table.docutils {

View File

@ -68,6 +68,7 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
self.param_separator = ''
self.optional_param_level = 0
self._table_row_index = 0
self._fieldlist_row_index = 0
self.required_params_left = 0
def visit_start_of_file(self, node):