Skip to content

Commit 5727a96

Browse files
committed
🆕 Global functions
1 parent bd3e8bd commit 5727a96

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
sidebarDepth: 2
3+
editLink: false
4+
pageClass: phpdoc-api-generated-page
5+
---
6+
7+
# Functions
8+
9+
{% for namespace in project.indexes.namespaces|sort_asc %}
10+
{%- for function in namespace.functions|sort_asc %}
11+
{%- include 'struct-function.md.twig' %}
12+
{%- endfor %}
13+
{% endfor %}
14+
15+
16+
--------
17+
_This document was automatically generated from source code comments using [phpDocumentor](http://www.phpdoc.org/)._
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## {{ function|trim('\\') }} {{ include('badges.md.twig', { elem: function }) }}
2+
3+
{{ function.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) }}
4+
5+
### Description
6+
7+
{% if function.description %}
8+
{{ function.description|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) -}}
9+
{% else %}
10+
> No description.
11+
{% endif %}
12+
13+
{{ include('metadata-table.md.twig', { elem: function }) }}

data/templates/vuepress/template.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<transformation writer="twig" source="templates/vuepress/index-classes.md.twig" artifact="classes.md" />
1111
<transformation writer="twig" source="templates/vuepress/index-interfaces.md.twig" artifact="interfaces.md" />
1212
<transformation writer="twig" source="templates/vuepress/index-traits.md.twig" artifact="traits.md" />
13+
<transformation writer="twig" source="templates/vuepress/index-functions.md.twig" artifact="functions.md" />
1314
</transformations>
1415
<parameters>
1516
<parameter key="twig-debug">true</parameter>

0 commit comments

Comments
 (0)