-
Notifications
You must be signed in to change notification settings - Fork 1
/
Files.md.twig
66 lines (46 loc) · 1.88 KB
/
Files.md.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
## {{ node.summary }}
{% if node.description %}{{ node.description|raw }}{% endif %}
{% if node.package is not empty and node.package != '\\' %}#### Package
{{ node.subpackage ? (node.package ~ '\\' ~ node.subpackage) : node.package }}{% endif %}
{% for tagName,tags in node.tags if tagName not in ['link', 'see', 'package', 'subpackage'] %}
{% if tagName %}#### {{ tagName }}
{% for tag in tags %}
{% if tag.version %}`{{ tag.version }}` {% endif %}{{ tag.description|raw }}
{% endfor %}
{% endif %}{% endfor %}
{% for tagName,tags in node.tags if tagName in ['link', 'see'] %}
{% if loop.first %}#### See also
{% endif %}
{% for tag in tags %}
[{{ tag.description ?: tag.reference }}]({{ tag.reference|route('url') ?: tag.link }})
{% endfor %}
{% endfor %}
{% if node.traits|length > 0 %}### Traits
{% for trait in node.traits|sort_asc %}
* {{ trait|raw }}{% if trait.summary %}: _{{ trait.summary }}_{% endif %}
{% endfor %}
{% endif %}
{% if node.interfaces|length > 0 %}### Interfaces
{% for interface in node.interfaces|sort_asc %}
* {{ interface|raw }}{% if interface.summary %}: _{{ interface.summary }}_{% endif %}
{% endfor %}
{% endif %}
{% if node.classes|length > 0 %}### Classes
{% for class in node.classes|sort_asc %}
* [{{ class.name|raw }}](classes/{{ class.name }}){% if class.summary %}: _{{ class.summary }}_{% endif %}
{% endfor %}
{% endif %}
{% if node.constants|length > 0 %}### Constants
{% for constant in node.constants|sort_asc %}
* {{ constant.name }}{% if constant.deprecated %} `deprecated`{% endif %}
{% endfor %}
{% endif %}
{% if node.functions|length > 0 %}### Methods
{% for method in node.functions|sort_asc %}
* {{ method.name }}{% if method.deprecated %} `deprecated`{% endif %}
{% endfor %}
{% endif %}
{% if project.settings.shouldIncludeSource %}## Source
[{{ node.name }}]({{ node.path }}{{ node.name }}){% endif %}
***
[\\](Home) » Files » `{{ node.path }}`