From f54ab1f5b19498b1d1946dad7092e0162695faa6 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 12 Oct 2013 15:54:05 -0400 Subject: backport media types from default --- .hgeol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.hgeol b/.hgeol index cf6a0f1..4e03690 100644 --- a/.hgeol +++ b/.hgeol @@ -10,6 +10,8 @@ **.vsprops = BIN **.aif = BIN +**.aifc = BIN +**.aiff = BIN **.au = BIN **.bmp = BIN **.db = BIN @@ -23,6 +25,7 @@ **.png = BIN **.psd = BIN **.tar = BIN +**.wav = BIN **.xar = BIN **.zip = BIN -- cgit v0.12 From a14034872bfe9b5fca07125e7369b8c7030c164b Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 12 Oct 2013 22:55:34 +0200 Subject: Invert logic of new limited-API annotation and call it "stable ABI". --- Doc/tools/sphinxext/c_annotations.py | 12 ++++++------ Doc/tools/sphinxext/pydoctheme/static/pydoctheme.css | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Doc/tools/sphinxext/c_annotations.py b/Doc/tools/sphinxext/c_annotations.py index c93fb7c..8b5167a 100644 --- a/Doc/tools/sphinxext/c_annotations.py +++ b/Doc/tools/sphinxext/c_annotations.py @@ -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 diff --git a/Doc/tools/sphinxext/pydoctheme/static/pydoctheme.css b/Doc/tools/sphinxext/pydoctheme/static/pydoctheme.css index 303529b..6d07596 100644 --- a/Doc/tools/sphinxext/pydoctheme/static/pydoctheme.css +++ b/Doc/tools/sphinxext/pydoctheme/static/pydoctheme.css @@ -173,6 +173,6 @@ div.footer a:hover { color: #060; } -.notlimited { - color: #922; +.stableabi { + color: #229; } -- cgit v0.12