From 18cfd3dcff8f50c47d240fe65861b3d2b32a2564 Mon Sep 17 00:00:00 2001 From: quietsy Date: Wed, 12 Feb 2025 10:29:13 +0200 Subject: [PATCH] Fix the initial load of the api (#302) --- .github/workflows/deploy.yml | 6 ------ docs/API.md | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0a4d27800..047618f95 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,9 +47,6 @@ jobs: "https://github.com/terrastruct/d2/releases/download/${D2_VERSION}/d2-${D2_VERSION}-linux-amd64.tar.gz" tar xzf /tmp/d2.tar.gz -C /tmp/d2 --strip-components=1 cp /tmp/d2/bin/d2 /usr/local/bin - # Can remove and swap to swagger-http once they add https://github.com/mkdocs/mkdocs/pull/3851 - - name: Download API Schema - run: curl -o docs/openapi.json -L "https://api.linuxserver.io/openapi.json" - name: Install dependencies run: pip install -r docs/requirements.txt - name: Generate images-by-category.md @@ -99,9 +96,6 @@ jobs: "https://github.com/terrastruct/d2/releases/download/${D2_VERSION}/d2-${D2_VERSION}-linux-amd64.tar.gz" tar xzf /tmp/d2.tar.gz -C /tmp/d2 --strip-components=1 cp /tmp/d2/bin/d2 /usr/local/bin - # Can remove and swap to swagger-http once they add https://github.com/mkdocs/mkdocs/pull/3851 - - name: Download API Schema - run: curl -o docs/openapi.json -L "https://api.linuxserver.io/openapi.json" - name: Install dependencies run: pip install -r docs/requirements.txt - name: Generate images-by-category.md diff --git a/docs/API.md b/docs/API.md index 8d73bb4f7..7c64c7e73 100644 --- a/docs/API.md +++ b/docs/API.md @@ -4,4 +4,4 @@ hide: --- # -!!swagger openapi.json!! +!!swagger-http https://api.linuxserver.io/openapi.json!!