Skip to content

Commit bd3e8bd

Browse files
committed
🔥 Move content header template for methods
1 parent 6295d0f commit bd3e8bd

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

data/templates/vuepress/member-method.md.twig

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
{% include 'method-header.md.twig' %}
1+
2+
:::
3+
{%- if method.visibility == 'protected' %}
4+
{{- 'warning ' -}}
5+
{% elseif method.visibility == 'public' %}
6+
{{- 'tip ' -}}
7+
{% else %}
8+
{{- 'danger ' -}}
9+
{% endif -%}
10+
11+
{{ include('anchor-ref-method.md.twig') }}
12+
{{- method.name }} ( ) {{ include('badges.md.twig', { elem: method }) }}
13+
-----
214

315
{{ method.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) }}
416

data/templates/vuepress/method-header.md.twig

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)