Skip to content

Commit

Permalink
fix apiDocs path
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingTwist committed Dec 13, 2023
1 parent bdb4f8d commit 00ffc58
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>JChess Docs</title> <link rel="stylesheet" href="style.css"></head><body style="padding: 0; margin: 0"> <div style="width: 100vw; height: 100vh; display: flex; flex-direction: column; gap: 30px; align-items: center; justify-content: center" id="buttonPanel"> <button class="docs-button" role="button" onclick="window.open('/api-docs/swagger.html')">Open Swagger (REST API) Docs</button> <button class="docs-button" role="button" onclick="window.open('/api-docs/asyncapi/index.html')">Open AsyncAPI (WebSocket API) Docs</button> </div></body></html>
Expand Down
37 changes: 37 additions & 0 deletions docs/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* CSS */
.docs-button {
appearance: button;
backface-visibility: hidden;
background-color: #405cf5;
border-radius: 6px;
border-width: 0;
box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0;
box-sizing: border-box;
color: #fff;
cursor: pointer;
font-family: -apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif;
font-size: 100%;
height: 44px;
line-height: 1.15;
margin: 12px 0 0;
outline: none;
overflow: hidden;
padding: 0 25px;
position: relative;
text-align: center;
text-transform: none;
transform: translateZ(0);
transition: all .2s,box-shadow .08s ease-in;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
width: max(30vw, 300px);
}

.docs-button:disabled {
cursor: default;
}

.docs-button:focus {
box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px;
}

0 comments on commit 00ffc58

Please sign in to comment.