Skip to content

Commit

Permalink
add API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
markusleh committed Dec 29, 2023
1 parent cc0c968 commit 55a8436
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/docs/reference/_meta.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"configuration": "Configuration variables"
"configuration": "Configuration variables",
"api": "API documentation"
}
4 changes: 4 additions & 0 deletions pages/docs/reference/api.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import SwaggerUI from "swagger-ui-react"
import "swagger-ui-react/swagger-ui.css"

<SwaggerUI url="https://www.webhood.io/openapi-webhood-beta-1.0.0.json" />
9 changes: 9 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@ code.text-\[\.9em\] {
display: none;
}
}

@media (prefers-color-scheme: dark) {
.swagger-ui {
filter: invert(88%) hue-rotate(180deg);
}
.swagger-ui .microlight {
filter: invert(100%) hue-rotate(180deg);
}
}

0 comments on commit 55a8436

Please sign in to comment.