Skip to content

Commit fb8c46b

Browse files
Fix documentation layout
1 parent 1ea3562 commit fb8c46b

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

docs/sami_config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
[
1414
'theme' => 'cloudinary',
1515
'template_dirs' => [$docsDir . 'themes'],
16-
'title' => 'Cloudinary PHP Transformation Builder SDK',
16+
'title' => 'Cloudinary PHP Transformation Builder',
1717
'version' => '1.2.0',
1818
'build_dir' => $docsDir . 'build',
1919
'cache_dir' => $docsDir . 'cache',
20-
'default_opened_level' => 1,
20+
'default_opened_level' => 2,
2121
'filter' => new CloudinaryFilter(),
2222
]
2323
);

docs/themes/cloudinary/index.twig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% from "macros.twig" import render_classes %}
2+
3+
{% set extension = 'class.twig' %}
4+
{% set namespace = 'Cloudinary\\Transformation\\' %}
5+
{% set subnamespaces = [] %}
6+
{% set exceptions = [] %}
7+
8+
{% extends extension %}
9+
10+
{% block page_content %}
11+
12+
<div class="page-header">
13+
<h1> {{ project.config('title') }}</h1>
14+
</div>
15+
16+
{% if classes %}
17+
<h2>Classes</h2>
18+
{{ render_classes(classes) }}
19+
{% endif %}
20+
21+
{% endblock %}
22+
23+
{% block body_class 'index' %}

docs/themes/cloudinary/layout/layout.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<li><a href="{{ path('doc-index.html') }}">Index</a></li>
4141
<li><a href="{{ path('search.html') }}">Search</a></li>
4242
<li><a href="/documentation/sdks/php/">PHP SDK Reference</a></li>
43-
<li><a href="https://cloudinary.com/documentation/php2_integration" target="_blank">SDK User Guide</a></li>
43+
<li><a href="/documentation/php2_integration" target="_blank">SDK User Guide</a></li>
4444
</ul>
4545
</div>
4646
</div>

0 commit comments

Comments
 (0)