Skip to content

Commit

Permalink
Work around visual bug in redoc (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte authored Jan 22, 2025
2 parents 6e001e4 + 4aafae3 commit 716d958
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions server/svix-server/src/static/docs.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
<!DOCTYPE html>
<html>

<head>
<title>Svix API - ReDoc</title>
<!-- needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Svix API - ReDoc</title>
<!-- needed for adaptive design -->
<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 href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<link rel="shortcut icon" href="https://www.svix.com/favicon.ico">
<!-- ReDoc doesn't change outer page styles -->
<style>
body {
margin: 0;
padding: 0;
}

<link rel="shortcut icon" href="https://www.svix.com/favicon.ico">
<!--
ReDoc doesn't change outer page styles
-->
<style>
body {
margin: 0;
padding: 0;
}
</style>
redoc ul[role="menu"] {
/* fix last item being hidden behind the redoc banner on smaller viewports */
padding-bottom: 32px;
}
</style>
</head>

<body>
<redoc spec-url="/api/v1/openapi.json"></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"> </script>
<redoc spec-url="/api/v1/openapi.json"></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"> </script>
</body>

</html>

0 comments on commit 716d958

Please sign in to comment.