Skip to content

Commit 22be93f

Browse files
committed
🎨 Organize members and structs in subdirs
1 parent 3cc42da commit 22be93f

13 files changed

+18
-13
lines changed

data/templates/vuepress/struct-class.md.twig renamed to data/templates/vuepress/_struct/class.md.twig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
## {{ class|trim('\\') }} {{ include('badges.md.twig', { elem: class }) }}
23

34
{{ class.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',})|raw }}
@@ -84,7 +85,7 @@
8485
### <span style="display: none;">{{ class }}</span> Constants
8586
{# Lista de constantes #}
8687
{% for constant in class.constants|sort_asc %}
87-
{% include 'member-constant.md.twig' %}
88+
{{ include('_member/constant.md.twig') }}
8889
{% else %}
8990
> This class has not constants.
9091
{% endfor %}
@@ -94,7 +95,7 @@
9495
{# Lista de métodos públicos y protegidos #}
9596
{% for method in class.methods|sort_asc %}
9697
{% set methodsList = methodsList|merge([method.name]) %}
97-
{% include 'member-method.md.twig' %}
98+
{{ include('_member/method.md.twig') }}
9899
{% else %}
99100
> This class has not methods.
100101
{% endfor %}
@@ -124,7 +125,7 @@
124125
{# Lista de propiedades públicas y protegidas #}
125126
{% for property in class.properties|merge(class.magicProperties|default([]))|sort_asc %}
126127
{% set propertiesList = propertiesList|merge([property.name]) %}
127-
{% include 'member-property.md.twig' %}
128+
{{ include('_member/property.md.twig') }}
128129
{% else %}
129130
> This class has not properties.
130131
{% endfor %}

data/templates/vuepress/struct-constant.md.twig renamed to data/templates/vuepress/_struct/constant.md.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
## {{ constant|trim('\\') }} {{ include('badges.md.twig', { elem: constant }) }}
23

34
{{ constant.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',})|raw }}

data/templates/vuepress/struct-function.md.twig renamed to data/templates/vuepress/_struct/function.md.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
## {{ function|trim('\\') }} {{ include('badges.md.twig', { elem: function }) }}
23

34
{{ function.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',})|raw }}

data/templates/vuepress/struct-interface.md.twig renamed to data/templates/vuepress/_struct/interface.md.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
## {{ interface|trim('\\') }} {{ include('badges.md.twig', { elem: interface }) }}
23

34
{{ interface.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',})|raw }}
@@ -43,15 +44,15 @@
4344
### <span style="display: none;">{{ class }}</span> Constants
4445
{# Lista de constantes #}
4546
{% for constant in interface.constants|sort_asc %}
46-
{% include 'member-constant.md.twig' %}
47+
{{ include('_member/constant.md.twig') }}
4748
{% else %}
4849
> This interface has not constants.
4950
{% endfor %}
5051

5152
### <span style="display: none;">{{ interface }}</span> Methods
5253
{# Lista de métodos públicos y protegidos #}
5354
{% for method in interface.methods|sort_asc %}
54-
{% include 'member-method.md.twig' %}
55+
{{ include('_member/method.md.twig') }}
5556
{% else %}
5657
> This interface has not methods.
5758
{% endfor %}

data/templates/vuepress/struct-trait.md.twig renamed to data/templates/vuepress/_struct/trait.md.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
## {{ trait|trim('\\') }} {{ include('badges.md.twig', { elem: trait }) }}
23

34
{{ trait.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',})|raw }}
@@ -51,7 +52,7 @@
5152
### <span style="display: none;">{{ trait }}</span> Methods
5253
{# Lista de métodos públicos y protegidos #}
5354
{% for method in trait.methods|sort_asc %}
54-
{% include 'member-method.md.twig' %}
55+
{{ include('_member/method.md.twig') }}
5556
{% else %}
5657
> This trait has not methods.
5758
{% endfor %}
@@ -62,7 +63,7 @@
6263
{# Lista de propiedades públicas y protegidas #}
6364
{% for property in trait.properties|merge(trait.magicProperties)|sort_asc %}
6465
{% set propertiesList = propertiesList|merge([property.name]) %}
65-
{% include 'member-property.md.twig' %}
66+
{{ include('_member/property.md.twig') }}
6667
{% else %}
6768
> This trait has not properties.
6869
{% endfor %}

data/templates/vuepress/index-classes.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
{% for namespace in project.indexes.namespaces|sort_asc %}
77
{%- for class in namespace.classes|sort_asc %}
8-
{%- include 'struct-class.md.twig' %}
8+
{{ include('_struct/class.md.twig') }}
99
{%- endfor %}
1010
{% endfor %}
1111
{% endblock %}

data/templates/vuepress/index-constants.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{% for namespace in project.indexes.namespaces|sort_asc %}
88
{%- for constant in namespace.constants|sort_asc %}
9-
{%- include 'struct-constant.md.twig' %}
9+
{{ include('_struct/constant.md.twig') }}
1010
{%- endfor %}
1111
{% endfor %}
1212

0 commit comments

Comments
 (0)