Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 87bde51

Browse files
committed
Add Doctum remote repository links and fix some trailing spaces
1 parent c4a000f commit 87bde51

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed

scripts/doctum-themes/class.twig

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323

2424
{{ deprecations(class) }}
2525

26-
{%- if class.shortdesc or class.longdesc %}
27-
{%- if class.shortdesc -%}
28-
{{ class.shortdesc|desc(class) }}
29-
{%- endif %}
30-
{%- if class.longdesc -%}
31-
{{ class.longdesc|desc(class) }}
32-
{%- endif %}
33-
{%- if project.config('insert_todos') == true %}
34-
{{ todos(class) }}
35-
{%- endif %}
26+
{%- if class.shortdesc or class.longdesc %}
27+
{%- if class.shortdesc -%}
28+
{{- class.shortdesc|desc(class) -}}
3629
{%- endif %}
30+
{%- if class.longdesc -%}
31+
{{- class.longdesc|desc(class) -}}
32+
{%- endif %}
33+
{%- if project.config('insert_todos') == true %}
34+
{{- todos(class) -}}
35+
{%- endif %}
36+
{%- endif %}
3737

38-
{% if traits %}
38+
{# #}{% if traits %}
3939
{# #}### {% trans 'Traits' %}
4040

4141
{# #}{{- render_classes(traits) }}

scripts/doctum-themes/macros.twig

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,16 @@
120120
{% endmacro %}
121121

122122
{% macro deprecations(reflection) %}
123-
{% from _self import deprecated %}
124-
125-
{% if reflection.deprecated %}
126-
<p>
127-
{{ deprecated(reflection )}}
128-
{% for tag in reflection.deprecated %}
129-
<tr>
130-
<td>{{ tag[0]|raw }}</td>
131-
<td>{{ tag[1:]|join(' ')|raw }}</td>
132-
</tr>
133-
{% endfor %}
134-
</p>
135-
{% endif %}
123+
{%- from _self import deprecated %}
124+
125+
{%- if reflection.deprecated %}
126+
{# #}| | |
127+
{# #}|---|---|
128+
{# #}{{ deprecated(reflection )}}
129+
{# #}{% for tag in reflection.deprecated %}
130+
{# #}|{{ tag[0]|raw }}|{{ tag[1:]|join(' ')|raw }}|
131+
{# #}{% endfor %}
132+
{%- endif %}
136133
{% endmacro %}
137134

138135
{% macro todo(reflection) %}

scripts/doctum.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Doctum\Doctum;
4+
use Doctum\RemoteRepository\GitHubRemoteRepository;
45
use Symfony\Component\Finder\Finder;
56

67
$dir = __DIR__ . '/../src';
@@ -15,4 +16,5 @@
1516
'title' => 'Laravel / Lumen package for Firebase Cloud Messaging',
1617
'build_dir' => __DIR__ . '/../doc/',
1718
'cache_dir' => __DIR__ . '/../build/cache/',
19+
'remote_repository' => new GitHubRemoteRepository('code-lts/Laravel-FCM', $dir),
1820
]);

0 commit comments

Comments
 (0)