pull/298/head
quietsy 2025-02-11 16:48:16 +02:00 zatwierdzone przez GitHub
rodzic a6a9768872
commit 8cd4ccd328
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
6 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -47,6 +47,9 @@ 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
@ -96,6 +99,9 @@ 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

Wyświetl plik

@ -18,6 +18,8 @@ RUN \
python3 && \
mkdir -p /app/mkdocs/docs && \
git config --global --add safe.directory /app/mkdocs && \
# Can remove and swap to swagger-http once they add https://github.com/mkdocs/mkdocs/pull/3851
curl -o /app/mkdocs/docs/openapi.json -L "https://api.linuxserver.io/openapi.json" && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \

Wyświetl plik

@ -5,5 +5,6 @@ nav:
- Images by Category: images-by-category.md
- Images: images
- Deprecated Images: deprecated_images
- API: API.md
- Frequently Asked Questions: FAQ.md
- misc

7
docs/API.md 100644
Wyświetl plik

@ -0,0 +1,7 @@
---
hide:
- navigation
---
#
!!swagger openapi.json!!

Wyświetl plik

@ -4,3 +4,4 @@ mkdocs-git-revision-date-localized-plugin==1.3.0
mkdocs-material==9.5.50
mkdocs-minify-plugin==0.8.0
mkdocs-redirects==1.2.2
mkdocs-render-swagger-plugin==0.1.2

Wyświetl plik

@ -93,6 +93,7 @@ plugins:
enable_creation_date: true
- minify:
minify_html: true
- render_swagger
- search
- tags:
tags: false