From 8e1ecaf22130505f0b04e5b0bafc9040a8e886b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 24 Feb 2019 01:31:50 +0400 Subject: [PATCH] :lipstick: Add FastAPI favicons to docs (#53) --- fastapi/openapi/docs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 7d8fdfc4d..5d10aa59a 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -8,6 +8,7 @@ def get_swagger_ui_html(*, openapi_url: str, title: str) -> HTMLResponse: + """ + title @@ -55,6 +56,7 @@ def get_redoc_html(*, openapi_url: str, title: str) -> HTMLResponse: <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet"> + <link rel="shortcut icon" href="https://fastapi.tiangolo.com/img/favicon.png"> <!-- ReDoc doesn't change outer page styles