588
|
1 |
<#--
|
|
2 |
============================================================================
|
|
3 |
Name :
|
|
4 |
Part of : Helium
|
|
5 |
|
|
6 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
7 |
All rights reserved.
|
|
8 |
This component and the accompanying materials are made available
|
|
9 |
under the terms of the License "Eclipse Public License v1.0"
|
|
10 |
which accompanies this distribution, and is available
|
|
11 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
12 |
|
|
13 |
Initial Contributors:
|
|
14 |
Nokia Corporation - initial contribution.
|
|
15 |
|
|
16 |
Contributors:
|
|
17 |
|
|
18 |
Description:
|
|
19 |
|
|
20 |
============================================================================
|
|
21 |
-->
|
|
22 |
|
|
23 |
<#if ant?keys?seq_contains("tracurl")>
|
|
24 |
<#assign helium_browser_trunk=ant.tracurl>
|
|
25 |
<#else>
|
|
26 |
<#assign helium_browser_trunk="">
|
|
27 |
</#if>
|
|
28 |
|
|
29 |
<#macro helium_api_location_path location>
|
|
30 |
<#assign target_line=""/>
|
|
31 |
<#assign res = location?matches(":(\\d+):$") />
|
|
32 |
<#list res as m>
|
|
33 |
<#assign target_line="#L${m?groups[1]}"/>
|
|
34 |
</#list>
|
|
35 |
<#assign location_path=location/>
|
|
36 |
<#if location?index_of("helium\\") > 0>
|
|
37 |
<#assign location_path=location?substring(location?last_index_of('helium\\'))/>
|
|
38 |
</#if>
|
|
39 |
<#-- <#assign target_url=location_path?replace("\\", "/")?replace(":(\\d+):", "", 'ri') />
|
|
40 |
<tt class="docutils literal"><a href="${helium_browser_trunk}/${target_url}${target_line}">${location_path}</a></tt>-->
|
|
41 |
``${location_path}``
|
|
42 |
</#macro>
|
|
43 |
|
|
44 |
<#macro helium_project_path location>
|
|
45 |
<#assign location_path=location/>
|
|
46 |
<#if location?index_of("helium\\") > 0>
|
|
47 |
<#assign location_path=location?substring(location?last_index_of('helium\\'))/>
|
|
48 |
</#if>
|
|
49 |
<#assign target_url=location_path?replace("\\", "/")?replace(":(\\d+):", "", 'ri') />
|
|
50 |
<tt class="docutils literal"><a href="${helium_browser_trunk}/${target_url}">${target_url}</a></tt>
|
|
51 |
</#macro>
|
|
52 |
|
|
53 |
<#-- Macros for recursively handling random HTML elements inside documentation elements. -->
|
|
54 |
<#macro tt> <tt><#recurse></tt> </#macro>
|
|
55 |
|
|
56 |
<#macro div><#recurse></#macro>
|
|
57 |
|
|
58 |
<#macro p><#recurse>
|
|
59 |
|
|
60 |
</#macro>
|
|
61 |
|
|
62 |
<#macro ul>
|
|
63 |
|
|
64 |
<#recurse>
|
|
65 |
|
|
66 |
</#macro>
|
|
67 |
|
|
68 |
<#macro li> - <#recurse>
|
|
69 |
</#macro>
|
|
70 |
|
|
71 |
<#macro b>**<#recurse>**</#macro>
|
|
72 |
|
|
73 |
<#macro pre>
|
|
74 |
|
|
75 |
<#recurse>
|
|
76 |
|
|
77 |
</#macro>
|
|
78 |
|
|
79 |
<#macro @text>${.node?trim}</#macro>
|
|
80 |
|