Merge wiht 'stable'

This commit is contained in:
shimizukawa 2016-02-14 19:27:18 +09:00
commit 358a13ee72
5 changed files with 38 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import inspect
import traceback
from types import FunctionType, BuiltinFunctionType, MethodType
from six import iterkeys, iteritems, itervalues, text_type, class_types, \
from six import PY2, iterkeys, iteritems, itervalues, text_type, class_types, \
string_types, StringIO
from docutils import nodes
from docutils.utils import assemble_option_dict
@ -532,6 +532,8 @@ class Documenter(object):
else:
errmsg += '; the following exception was raised:\n%s' % \
traceback.format_exc()
if PY2:
errmsg = errmsg.decode('utf-8')
dbg(errmsg)
self.directive.warn(errmsg)
self.env.note_reread()

View File

@ -507,3 +507,13 @@ div.code-block-caption {
padding: 2px 5px;
font-size: small;
}
/* -- math display ---------------------------------------------------------- */
div.body div.math p {
text-align: center;
}
span.eqno {
float: right;
}

View File

@ -369,3 +369,8 @@ div.viewcode-block:target {
margin: -1px -10px;
padding: 0 12px;
}
/* math display */
div.math p {
text-align: center;
}

View File

@ -471,3 +471,13 @@ div.figure p.caption span.caption-number {
div.figure p.caption span.caption-text {
}
/* math display */
div.math p {
text-align: center;
}
span.eqno {
float: right;
}

View File

@ -736,3 +736,13 @@ div.figure p.caption span.caption-number {
div.figure p.caption span.caption-text {
}
/* :::: MATH DISPLAY :::: */
div.body div.math p {
text-align: center;
}
span.eqno {
float: right;
}