From c00edce1586a93e4fd84ba48bcd350ea07e1d25e Mon Sep 17 00:00:00 2001 From: Matthew Kilgore Date: Sat, 22 Mar 2025 14:04:08 -0400 Subject: [PATCH] chore: Use our own site instead of jsDelivr --- Taskfile.yml | 3 +- docs/en/{api.md => api/index.md} | 2 +- docs/{docs => en}/api/openapi-2.0.json | 0 docs/en/api/openapi-2.0.yaml | 2057 ++++++++++++++++++++++++ 4 files changed, 2060 insertions(+), 2 deletions(-) rename docs/en/{api.md => api/index.md} (93%) rename docs/{docs => en}/api/openapi-2.0.json (100%) create mode 100644 docs/en/api/openapi-2.0.yaml diff --git a/Taskfile.yml b/Taskfile.yml index 66c37d78..ede909f1 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -49,7 +49,8 @@ tasks: cmds: - task: swag - task: typescript-types - - cp ./backend/app/api/static/docs/swagger.json docs/docs/api/openapi-2.0.json + - cp ./backend/app/api/static/docs/swagger.json docs/en/api/openapi-2.0.json + - cp ./backend/app/api/static/docs/swagger.yaml docs/en/api/openapi-2.0.yaml go:run: env: diff --git a/docs/en/api.md b/docs/en/api/index.md similarity index 93% rename from docs/en/api.md rename to docs/en/api/index.md index e808457e..3638b532 100644 --- a/docs/en/api.md +++ b/docs/en/api/index.md @@ -50,7 +50,7 @@ document.head.appendChild(elementStyle);