Skip to content

Commit a140348

Browse files
committed
Invert logic of new limited-API annotation and call it "stable ABI".
1 parent f54ab1f commit a140348

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Doc/tools/sphinxext/c_annotations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def add_annotations(self, app, doctree):
7373
par = node.parent
7474
if par['domain'] != 'c':
7575
continue
76-
if par['notlimited']:
77-
node.insert(0, nodes.emphasis(' Not part of the stable API.',
78-
' Not part of the stable API.',
79-
classes=['notlimited']))
76+
if par['stableabi']:
77+
node.insert(0, nodes.emphasis(' Part of the stable ABI.',
78+
' Part of the stable ABI.',
79+
classes=['stableabi']))
8080
if par['objtype'] != 'function':
8181
continue
8282
if not par[0].has_key('names') or not par[0]['names']:
@@ -108,10 +108,10 @@ def setup(app):
108108
# monkey-patch C object...
109109
CObject.option_spec = {
110110
'noindex': directives.flag,
111-
'notlimited': directives.flag,
111+
'stableabi': directives.flag,
112112
}
113113
old_handle_signature = CObject.handle_signature
114114
def new_handle_signature(self, sig, signode):
115-
signode.parent['notlimited'] = 'notlimited' in self.options
115+
signode.parent['stableabi'] = 'stableabi' in self.options
116116
return old_handle_signature(self, sig, signode)
117117
CObject.handle_signature = new_handle_signature

Doc/tools/sphinxext/pydoctheme/static/pydoctheme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,6 @@ div.footer a:hover {
173173
color: #060;
174174
}
175175

176-
.notlimited {
177-
color: #922;
176+
.stableabi {
177+
color: #229;
178178
}

0 commit comments

Comments
 (0)