-
Notifications
You must be signed in to change notification settings - Fork 1
/
Home.md.twig
41 lines (33 loc) · 1.23 KB
/
Home.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
## {{ project.name }}
Last update `{{ "now"|date('F jS, Y \\a\\t H:i') }}`
{% if project.indexes.namespaces|length > 0 or not project.indexes.packages %}
### Namespaces
##### [\\](Namespaces)
{% for namespace in project.indexes.namespaces|sort_asc if namespace.name != '\\' %}
##### [{{ namespace.name|raw }}](ns-{{ namespace.name }})
{% endfor %}
{% endif %}
{#% if project.indexes.traits|length > 0 %}
### [Traits](Traits) => overview?
{% endif %#}
{#% if project.indexes.interfaces|length > 0 %}
### [Interfaces](Interfaces) => overview?
{% endif %#}
{% if project.indexes.classes|length > 0 %}
### Classes
{% for class in project.indexes.classes|sort_asc %}
##### [{{ class.name|raw }}](class-{{ class.name }})
{% endfor %}
{% endif %}
{% if project.indexes.constants|length > 0 %}
### Constants
{% for constant in project.indexes.constants|sort_asc %}
##### [{{ constant.name|raw }}](file-{{ node.path|split('/')|last|replace({'.php':".php.md", '.js':".js.md"}) }})
{% endfor %}
{% endif %}
{#% if project.indexes.functions|length > 0 %}
### Functions
{% for function in project.indexes.functions|sort_asc %}
##### [{{ function.name|raw }}](files/{{ node.path|split('/')|last|replace({'.php':".php.md", '.js':".js.md"}) }})
{% endfor %}
{% endif %#}