Skip to content

Commit 1e8ed5b

Browse files
committed
Add the API Platform logo to the doc header
1 parent 17e378e commit 1e8ed5b

File tree

2 files changed

+102
-10
lines changed

2 files changed

+102
-10
lines changed
Lines changed: 100 additions & 0 deletions
Loading

src/Bridge/Symfony/Bundle/Resources/views/SwaggerUi/index.html.twig

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@
3939
hljs.highlightBlock(e)
4040
});
4141
42-
// Temporary fix for https://github.com/swagger-api/swagger-ui/issues/2381
43-
$('input.parameter').each(function (i, e) {
44-
var $e = $(e);
45-
if ('undefined' === $e.val()) {
46-
$e.val('');
47-
}
48-
});
49-
5042
{% if operationId is not null %}
5143
{% set domId = shortName ~ '_' ~ operationId %}
5244
{% set id = app.request.attributes.get('id') %}
@@ -90,9 +82,9 @@
9082
</head>
9183

9284
<body class="swagger-section">
93-
<div id="header">
85+
<div id="header" style="background-color: #253032; height: 35px">
9486
<div class="swagger-ui-wrap">
95-
<a id="logo" href="https://api-platform.com">API Platform</a>
87+
<a id="logo" href="https://api-platform.com"><img height="48" src="{{ asset('bundles/apiplatform/logo-header.svg') }}" alt="API Platform" style="position: relative; right: 10px"></a>
9688
</div>
9789
</div>
9890

0 commit comments

Comments
 (0)