Skip to content

Commit

Permalink
Merge pull request #172 from val-town/add-openapi
Browse files Browse the repository at this point in the history
Add openapi docs
  • Loading branch information
tmcw authored Jun 25, 2024
2 parents 8e14ae1 + e0e1c86 commit 1621876
Show file tree
Hide file tree
Showing 2 changed files with 3,079 additions and 0 deletions.
51 changes: 51 additions & 0 deletions public/openapi.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!doctype html>
<html>
<head>
<title>Val Town API Reference</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<style>
:root {
--scalar-font: "IBM Plex Sans", sans-serif;
--scalar-custom-header-height: 50px;
}
header.custom-header {
height: var(--scalar-custom-header-height);
background-color: var(--scalar-background-1);
box-shadow: inset 0 -1px 0 var(--scalar-border-color);
color: var(--scalar-color-1);
font-size: var(--scalar-font-size-2);
padding: 0 18px;
position: sticky;
justify-content: space-between;
top: 0;
z-index: 100;
}
.custom-header,
.custom-header nav {
display: flex;
align-items: center;
gap: 18px;
}
.custom-header a:hover {
color: var(--scalar-color-2);
}
</style>
<header class="custom-header">
<b>Val Town</b>
<nav>
<a href="https://docs.val.town/">Docs</a>
</nav>
</header>
<script id="api-reference" data-url="./openapi.json"></script>
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
</body>
</html>
Loading

0 comments on commit 1621876

Please sign in to comment.