Commit 7f4347b1 authored by Tim Graham's avatar Tim Graham
Browse files

Removed duplicate "Deprecated in Django A.B" text in docs.

sphinx 1.2+ adds this text itself.
parent 5472bf4d
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -269,7 +269,6 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
    # that work.
    #
    version_text = {
        'deprecated': 'Deprecated in Django %s',
        'versionchanged': 'Changed in Django %s',
        'versionadded': 'New in Django %s',
    }
@@ -278,8 +277,10 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
        self.body.append(
            self.starttag(node, 'div', CLASS=node['type'])
        )
        version_text = self.version_text.get(node['type'])
        if version_text:
            title = "%s%s" % (
            self.version_text[node['type']] % node['version'],
                version_text % node['version'],
                ":" if len(node) else "."
            )
            self.body.append('<span class="title">%s</span> ' % title)
+2 −1
Original line number Diff line number Diff line
@@ -120,7 +120,8 @@ div.admonition-behind-the-scenes { padding-left:65px; background:url(docicons-be

/*** versoinadded/changes ***/
div.versionadded, div.versionchanged {  }
div.versionadded span.title, div.versionchanged span.title, div.deprecated span.title { font-weight: bold; }
div.versionadded span.title, div.versionchanged span.title, span.versionmodified { font-weight: bold; }
div.deprecated { color:#555; }

/*** p-links ***/
a.headerlink { color: #c60f0f; font-size: 0.8em; padding: 0 4px 0 4px; text-decoration: none; visibility: hidden; }