kopia lustrzana https://github.com/linuxserver/docker-documentation
Add API (#299)
rodzic
a6a9768872
commit
8cd4ccd328
|
@ -47,6 +47,9 @@ jobs:
|
||||||
"https://github.com/terrastruct/d2/releases/download/${D2_VERSION}/d2-${D2_VERSION}-linux-amd64.tar.gz"
|
"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
|
tar xzf /tmp/d2.tar.gz -C /tmp/d2 --strip-components=1
|
||||||
cp /tmp/d2/bin/d2 /usr/local/bin
|
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
|
- name: Install dependencies
|
||||||
run: pip install -r docs/requirements.txt
|
run: pip install -r docs/requirements.txt
|
||||||
- name: Generate images-by-category.md
|
- 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"
|
"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
|
tar xzf /tmp/d2.tar.gz -C /tmp/d2 --strip-components=1
|
||||||
cp /tmp/d2/bin/d2 /usr/local/bin
|
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
|
- name: Install dependencies
|
||||||
run: pip install -r docs/requirements.txt
|
run: pip install -r docs/requirements.txt
|
||||||
- name: Generate images-by-category.md
|
- name: Generate images-by-category.md
|
||||||
|
|
|
@ -18,6 +18,8 @@ RUN \
|
||||||
python3 && \
|
python3 && \
|
||||||
mkdir -p /app/mkdocs/docs && \
|
mkdir -p /app/mkdocs/docs && \
|
||||||
git config --global --add safe.directory /app/mkdocs && \
|
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 && \
|
python3 -m venv /lsiopy && \
|
||||||
pip install -U --no-cache-dir \
|
pip install -U --no-cache-dir \
|
||||||
pip \
|
pip \
|
||||||
|
|
|
@ -5,5 +5,6 @@ nav:
|
||||||
- Images by Category: images-by-category.md
|
- Images by Category: images-by-category.md
|
||||||
- Images: images
|
- Images: images
|
||||||
- Deprecated Images: deprecated_images
|
- Deprecated Images: deprecated_images
|
||||||
|
- API: API.md
|
||||||
- Frequently Asked Questions: FAQ.md
|
- Frequently Asked Questions: FAQ.md
|
||||||
- misc
|
- misc
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
hide:
|
||||||
|
- navigation
|
||||||
|
---
|
||||||
|
|
||||||
|
#
|
||||||
|
!!swagger openapi.json!!
|
|
@ -4,3 +4,4 @@ mkdocs-git-revision-date-localized-plugin==1.3.0
|
||||||
mkdocs-material==9.5.50
|
mkdocs-material==9.5.50
|
||||||
mkdocs-minify-plugin==0.8.0
|
mkdocs-minify-plugin==0.8.0
|
||||||
mkdocs-redirects==1.2.2
|
mkdocs-redirects==1.2.2
|
||||||
|
mkdocs-render-swagger-plugin==0.1.2
|
||||||
|
|
|
@ -93,6 +93,7 @@ plugins:
|
||||||
enable_creation_date: true
|
enable_creation_date: true
|
||||||
- minify:
|
- minify:
|
||||||
minify_html: true
|
minify_html: true
|
||||||
|
- render_swagger
|
||||||
- search
|
- search
|
||||||
- tags:
|
- tags:
|
||||||
tags: false
|
tags: false
|
||||||
|
|
Ładowanie…
Reference in New Issue