forked from mirrors/linphone-iphone
Java enums support
This commit is contained in:
parent
5c6bf5db13
commit
ed9bc0f6db
2 changed files with 9 additions and 3 deletions
|
|
@ -18,10 +18,14 @@
|
|||
|
||||
{{{selector}}}
|
||||
|
||||
{{#isNotJava}}
|
||||
{{#enumerators}}
|
||||
{{#isNotJava}}
|
||||
.. {{#write_declarator}}enumerator{{/write_declarator}}:: {{{name}}}
|
||||
|
||||
{{/isNotJava}}
|
||||
{{#isJava}}
|
||||
**{{{name}}}**
|
||||
{{/isJava}}
|
||||
{{#briefDesc}}
|
||||
{{#lines}}
|
||||
{{{line}}}
|
||||
|
|
@ -31,5 +35,4 @@
|
|||
{{{selector}}}
|
||||
|
||||
{{/enumerators}}
|
||||
{{/isNotJava}}
|
||||
{{/enums}}
|
||||
|
|
|
|||
|
|
@ -195,11 +195,14 @@ class SphinxPage(object):
|
|||
|
||||
def _make_selector(self, obj):
|
||||
links = []
|
||||
ref = metadoc.Reference.make_ref_from_object(None, obj)
|
||||
for lang in self.langs:
|
||||
if lang is self.lang:
|
||||
link = lang.displayName
|
||||
else:
|
||||
if lang.langCode == 'Java' and type(obj) is abstractapi.Enumerator:
|
||||
ref = metadoc.Reference.make_ref_from_object(None, obj.parent)
|
||||
else:
|
||||
ref = metadoc.Reference.make_ref_from_object(None, obj)
|
||||
link = ref.translate(lang.docTranslator, label=lang.displayName)
|
||||
links.append(link)
|
||||
return ' '.join(links)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue