File tree Expand file tree Collapse file tree 6 files changed +18
-0
lines changed Expand file tree Collapse file tree 6 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 47
47
"https://github.com/terrastruct/d2/releases/download/${D2_VERSION}/d2-${D2_VERSION}-linux-amd64.tar.gz"
48
48
tar xzf /tmp/d2.tar.gz -C /tmp/d2 --strip-components=1
49
49
cp /tmp/d2/bin/d2 /usr/local/bin
50
+ # Can remove and swap to swagger-http once they add https://github.com/mkdocs/mkdocs/pull/3851
51
+ - name : Download API Schema
52
+ run : curl -o docs/openapi.json -L "https://api.linuxserver.io/openapi.json"
50
53
- name : Install dependencies
51
54
run : pip install -r docs/requirements.txt
52
55
- name : Generate images-by-category.md
96
99
"https://github.com/terrastruct/d2/releases/download/${D2_VERSION}/d2-${D2_VERSION}-linux-amd64.tar.gz"
97
100
tar xzf /tmp/d2.tar.gz -C /tmp/d2 --strip-components=1
98
101
cp /tmp/d2/bin/d2 /usr/local/bin
102
+ # Can remove and swap to swagger-http once they add https://github.com/mkdocs/mkdocs/pull/3851
103
+ - name : Download API Schema
104
+ run : curl -o docs/openapi.json -L "https://api.linuxserver.io/openapi.json"
99
105
- name : Install dependencies
100
106
run : pip install -r docs/requirements.txt
101
107
- name : Generate images-by-category.md
Original file line number Diff line number Diff line change 18
18
python3 && \
19
19
mkdir -p /app/mkdocs/docs && \
20
20
git config --global --add safe.directory /app/mkdocs && \
21
+ # Can remove and swap to swagger-http once they add https://github.com/mkdocs/mkdocs/pull/3851
22
+ curl -o /app/mkdocs/docs/openapi.json -L "https://api.linuxserver.io/openapi.json" && \
21
23
python3 -m venv /lsiopy && \
22
24
pip install -U --no-cache-dir \
23
25
pip \
Original file line number Diff line number Diff line change 5
5
- Images by Category: images-by-category.md
6
6
- Images: images
7
7
- Deprecated Images: deprecated_images
8
+ - API: API.md
8
9
- Frequently Asked Questions: FAQ.md
9
10
- misc
Original file line number Diff line number Diff line change
1
+ ---
2
+ hide :
3
+ - navigation
4
+ ---
5
+
6
+ #
7
+ !!swagger openapi.json!!
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ mkdocs-git-revision-date-localized-plugin==1.3.0
4
4
mkdocs-material == 9.5.50
5
5
mkdocs-minify-plugin == 0.8.0
6
6
mkdocs-redirects == 1.2.2
7
+ mkdocs-render-swagger-plugin == 0.1.2
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ plugins:
93
93
enable_creation_date : true
94
94
- minify :
95
95
minify_html : true
96
+ - render_swagger
96
97
- search
97
98
- tags :
98
99
tags : false
You can’t perform that action at this time.
0 commit comments