]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Invert logic of new limited-API annotation and call it "stable ABI".
authorGeorg Brandl <georg@python.org>
Sat, 12 Oct 2013 20:55:34 +0000 (22:55 +0200)
committerGeorg Brandl <georg@python.org>
Sat, 12 Oct 2013 20:55:34 +0000 (22:55 +0200)
Doc/tools/sphinxext/c_annotations.py
Doc/tools/sphinxext/pydoctheme/static/pydoctheme.css

index c93fb7c0fb9d3885f11ab0a7c876846e37652178..8b5167ac906ea68b44d0e19d632afe1ed6683e72 100644 (file)
@@ -73,10 +73,10 @@ class Annotations(dict):
             par = node.parent
             if par['domain'] != 'c':
                 continue
-            if par['notlimited']:
-                node.insert(0, nodes.emphasis(' Not part of the stable API.',
-                                              ' Not part of the stable API.',
-                                              classes=['notlimited']))
+            if par['stableabi']:
+                node.insert(0, nodes.emphasis(' Part of the stable ABI.',
+                                              ' Part of the stable ABI.',
+                                              classes=['stableabi']))
             if par['objtype'] != 'function':
                 continue
             if not par[0].has_key('names') or not par[0]['names']:
@@ -108,10 +108,10 @@ def setup(app):
     # monkey-patch C object...
     CObject.option_spec = {
         'noindex': directives.flag,
-        'notlimited': directives.flag,
+        'stableabi': directives.flag,
     }
     old_handle_signature = CObject.handle_signature
     def new_handle_signature(self, sig, signode):
-        signode.parent['notlimited'] = 'notlimited' in self.options
+        signode.parent['stableabi'] = 'stableabi' in self.options
         return old_handle_signature(self, sig, signode)
     CObject.handle_signature = new_handle_signature
index 303529b0f9cb0770b5938d1f5e939b46b66e7d9c..6d0759668d0a0ec8995a452ec90b6c7dbb47ec81 100644 (file)
@@ -173,6 +173,6 @@ div.footer a:hover {
     color: #060;
 }
 
-.notlimited {
-    color: #922;
+.stableabi {
+    color: #229;
 }