Skip to content

Commit bfb0c21

Browse files
committed
🎨 Use monospace font for structs name
- 🆕 CSS file to apply normalizations 🐛 🔥 fixes #5
1 parent b86dead commit bfb0c21

File tree

9 files changed

+31
-5
lines changed

9 files changed

+31
-5
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
/* Remove padding and background in element Title */
3+
h2 code,
4+
h3 code,
5+
h4 code,
6+
h5 code {
7+
background: none !important;
8+
padding: 0 !important;
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{- ' ' -}}
2+
3+
`{{ elem|trim('\\') }}`
4+
5+
{{- ' ' -}}

data/templates/vuepress/_index.md.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ pageClass: phpdoc-api-generated-page
2424
</div>
2525

2626
{% endblock %}
27+
28+
<style src="./.assets/normalization.css" scoped/>

data/templates/vuepress/_struct/class.md.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
## {{ class|trim('\\') }} {{ include('_blocks/badges.md.twig', { elem: class }) }}
2+
{% set elem = class %}
3+
## {{ include('_blocks/name.md.twig') }} {{ include('_blocks/badges.md.twig') }}
34

45
{{ class.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',})|raw }}
56

data/templates/vuepress/_struct/constant.md.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
## {{ constant|trim('\\') }} {{ include('_blocks/badges.md.twig', { elem: constant }) }}
2+
{% set elem = constant %}
3+
## {{ include('_blocks/name.md.twig') }} {{ include('_blocks/badges.md.twig') }}
34

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

data/templates/vuepress/_struct/function.md.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
## {{ function|trim('\\') }} {{ include('_blocks/badges.md.twig', { elem: function }) }}
2+
{% set elem = function %}
3+
## {{ include('_blocks/name.md.twig') }} {{ include('_blocks/badges.md.twig') }}
34

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

data/templates/vuepress/_struct/interface.md.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
## {{ interface|trim('\\') }} {{ include('_blocks/badges.md.twig', { elem: interface }) }}
2+
{% set elem = interface %}
3+
## {{ include('_blocks/name.md.twig') }} {{ include('_blocks/badges.md.twig') }}
34

45
{{ interface.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',})|raw }}
56

data/templates/vuepress/_struct/trait.md.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
## {{ trait|trim('\\') }} {{ include('_blocks/badges.md.twig', { elem: trait }) }}
2+
{% set elem = trait %}
3+
## {{ include('_blocks/name.md.twig') }} {{ include('_blocks/badges.md.twig') }}
34

45
{{ trait.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',})|raw }}
56

data/templates/vuepress/template.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<version>1.0.0-beta.3</version>
66
<copyright>2018-2019 © Nelson Martell</copyright>
77
<description>Template for generating your PHP API documentation in a pretty VuePress format</description>
8+
89
<transformations>
10+
<!-- Assets -->
11+
<transformation query="copy" writer="FileIo" source="templates/vuepress/.assets" artifact=".assets"/>
12+
13+
<!-- Pages -->
914
<transformation writer="twig" source="templates/vuepress/index.md.twig" artifact="README.md" />
1015
<transformation writer="twig" source="templates/vuepress/classes.md.twig" artifact="classes.md" />
1116
<transformation writer="twig" source="templates/vuepress/interfaces.md.twig" artifact="interfaces.md" />

0 commit comments

Comments
 (0)