From 55a8436c6a58e714a007e185dcb0378b703323c0 Mon Sep 17 00:00:00 2001 From: markusleh <28872014+markusleh@users.noreply.github.com> Date: Fri, 29 Dec 2023 13:43:37 +0200 Subject: [PATCH] add API documentation --- pages/docs/reference/_meta.json | 3 ++- pages/docs/reference/api.mdx | 4 ++++ styles.css | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pages/docs/reference/api.mdx diff --git a/pages/docs/reference/_meta.json b/pages/docs/reference/_meta.json index a7e7a17..2cb1a9b 100644 --- a/pages/docs/reference/_meta.json +++ b/pages/docs/reference/_meta.json @@ -1,3 +1,4 @@ { - "configuration": "Configuration variables" + "configuration": "Configuration variables", + "api": "API documentation" } \ No newline at end of file diff --git a/pages/docs/reference/api.mdx b/pages/docs/reference/api.mdx new file mode 100644 index 0000000..78657ed --- /dev/null +++ b/pages/docs/reference/api.mdx @@ -0,0 +1,4 @@ +import SwaggerUI from "swagger-ui-react" +import "swagger-ui-react/swagger-ui.css" + + \ No newline at end of file diff --git a/styles.css b/styles.css index b2809df..61425da 100644 --- a/styles.css +++ b/styles.css @@ -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); + } + } \ No newline at end of file