diff options
author | Dirk Dougherty <ddougherty@google.com> | 2015-05-05 01:04:31 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-05 01:04:31 +0000 |
commit | 55abf4c22d08693cfb2838a79654fc32c7de3ff8 (patch) | |
tree | 385c80a4a90bb08752ddcae2d294da7626ed1149 /tools/droiddoc/templates-sdk-dev/macros_override.cs | |
parent | 657b2971f8a6f4a1b6dac68915c557304970d716 (diff) | |
parent | ff233cc92e379d501d8b256ba9a015827d77e012 (diff) | |
download | build-55abf4c22d08693cfb2838a79654fc32c7de3ff8.zip build-55abf4c22d08693cfb2838a79654fc32c7de3ff8.tar.gz build-55abf4c22d08693cfb2838a79654fc32c7de3ff8.tar.bz2 |
am ff233cc9: Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.
* commit 'ff233cc92e379d501d8b256ba9a015827d77e012':
Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.
Diffstat (limited to 'tools/droiddoc/templates-sdk-dev/macros_override.cs')
-rw-r--r-- | tools/droiddoc/templates-sdk-dev/macros_override.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/droiddoc/templates-sdk-dev/macros_override.cs b/tools/droiddoc/templates-sdk-dev/macros_override.cs new file mode 100644 index 0000000..0a94598 --- /dev/null +++ b/tools/droiddoc/templates-sdk-dev/macros_override.cs @@ -0,0 +1,36 @@ +<?cs # Create a comma separated list of annotations on obj that were in showAnnotations in Doclava ?> +<?cs # pre is an HTML string to start the list, post is an HTML string to close the list ?> +<?cs # for example call:show_annotations_list(cl, "<td>Annotations: ", "</td>") ?> +<?cs # if obj has nothing on obj.showAnnotations, nothing will be output ?> +<?cs def:show_annotations_list(obj) ?> + <?cs each:anno = obj.showAnnotations ?> + <?cs if:first(anno) ?> + <span class='annotation-message'> + Included in documentation by the annotations: + <?cs /if ?> + @<?cs var:anno.type.label ?> + <?cs if:last(anno) == 0 ?> + , + <?cs /if ?> + <?cs if:last(anno)?> + </span> + <?cs /if ?> + <?cs /each ?> +<?cs /def ?> + +<?cs # Override default class_link_table to display annotations ?> +<?cs def:class_link_table(classes) ?> + <?cs set:count = #1 ?> + <table class="jd-sumtable-expando"> + <?cs each:cl=classes ?> + <tr class="<?cs if:count % #2 ?>alt-color<?cs /if ?> api apilevel-<?cs var:cl.type.since ?>" > + <td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td> + <td class="jd-descrcol" width="100%"> + <?cs call:short_descr(cl) ?> + <?cs call:show_annotations_list(cl) ?> + </td> + </tr> + <?cs set:count = count + #1 ?> + <?cs /each ?> + </table> +<?cs /def ?>
\ No newline at end of file |