Skip to content

Commit 4114652

Browse files
authored
Merge pull request #809 from dunglas/branding
Add the API Platform logo to the doc's header
2 parents 9320faa + 1e8ed5b commit 4114652

File tree

6 files changed

+125
-27
lines changed

6 files changed

+125
-27
lines changed
Lines changed: 100 additions & 0 deletions
Loading

src/Bridge/Symfony/Bundle/Resources/public/swagger-ui/css/typography.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
font-family: 'Droid Sans';
44
font-style: normal;
55
font-weight: 400;
6-
src: local('Droid Sans'), local('DroidSans'), url('../fonts/DroidSans.ttf'), format('truetype');
6+
src: local('Droid Sans'), local('DroidSans'), url('../fonts/DroidSans.ttf') format('truetype');
77
}
88
/* Google Font's Droid Sans Bold */
99
@font-face {
1010
font-family: 'Droid Sans';
1111
font-style: normal;
1212
font-weight: 700;
13-
src: local('Droid Sans Bold'), local('DroidSans-Bold'), url('../fonts/DroidSans-Bold.ttf'), format('truetype');
13+
src: local('Droid Sans Bold'), local('DroidSans-Bold'), url('../fonts/DroidSans-Bold.ttf') format('truetype');
1414
}

src/Bridge/Symfony/Bundle/Resources/public/swagger-ui/lang/ja.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,25 @@ window.SwaggerTranslator.learn({
2626
"Show/Hide":"表示/非表示",
2727
"List Operations":"操作一覧",
2828
"Expand Operations":"操作の展開",
29-
"Raw":"Raw",
29+
"Raw":"未加工",
3030
"can't parse JSON. Raw result":"JSONへ解釈できません. 未加工の結果",
31+
"Example Value":"値の例",
3132
"Model Schema":"モデルスキーマ",
3233
"Model":"モデル",
34+
"Click to set as parameter value":"パラメータ値と設定するにはクリック",
3335
"apply":"実行",
3436
"Username":"ユーザ名",
3537
"Password":"パスワード",
3638
"Terms of service":"サービス利用規約",
3739
"Created by":"Created by",
38-
"See more at":"See more at",
40+
"See more at":"詳細を見る",
3941
"Contact the developer":"開発者に連絡",
4042
"api version":"APIバージョン",
4143
"Response Content Type":"レスポンス コンテンツタイプ",
44+
"Parameter content type:":"パラメータコンテンツタイプ:",
4245
"fetching resource":"リソースの取得",
4346
"fetching resource list":"リソース一覧の取得",
44-
"Explore":"Explore",
47+
"Explore":"調査",
4548
"Show Swagger Petstore Example Apis":"SwaggerペットストアAPIの表示",
4649
"Can't read from server. It may not have the appropriate access-control-origin settings.":"サーバから読み込めません. 適切なaccess-control-origin設定を持っていない可能性があります.",
4750
"Please specify the protocol for":"プロトコルを指定してください",

src/Bridge/Symfony/Bundle/Resources/public/swagger-ui/lang/zh-cn.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ window.SwaggerTranslator.learn({
2828
"Expand Operations":"展开操作",
2929
"Raw":"原始",
3030
"can't parse JSON. Raw result":"无法解析JSON. 原始结果",
31+
"Example Value":"示例",
32+
"Click to set as parameter value":"点击设置参数",
3133
"Model Schema":"模型架构",
3234
"Model":"模型",
3335
"apply":"应用",
@@ -39,6 +41,7 @@ window.SwaggerTranslator.learn({
3941
"Contact the developer":"联系开发者",
4042
"api version":"api版本",
4143
"Response Content Type":"响应Content Type",
44+
"Parameter content type:":"参数类型:",
4245
"fetching resource":"正在获取资源",
4346
"fetching resource list":"正在获取资源列表",
4447
"Explore":"浏览",

src/Bridge/Symfony/Bundle/Resources/public/swagger-ui/swagger-ui.min.js

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)