also sign off please :)
20 | mkdir -p api/client-server/json | ||
21 | cp scripts/swagger/api-docs.json api/client-server/json/ | ||
22 | wget https://raw.githubusercontent.com/matrix-org/matrix.org/master/content/swagger.css -O api/client-server/swagger.css | ||
23 | patch api/client-server/index.html scripts/swagger-ui.patch |
I'm wondering if we should also wget the swagger patch to avoid having to maintain it twice.
I had to change it. Could probably merge the changes into the matrix.org repo though.
+1 to that :)
20 | mkdir -p api/client-server/json | ||
21 | cp scripts/swagger/api-docs.json api/client-server/json/ | ||
22 | wget https://raw.githubusercontent.com/matrix-org/matrix.org/master/content/swagger.css -O api/client-server/swagger.css | ||
23 | wget https://raw.githubusercontent.com/matrix-org/matrix.org/master/scripts/swagger-ui.patch |
I think you'll need to -O scripts/swagger-ui.patch
on this
I changed the line below to read the patch file from the cwd.
LGTM
Login to write a write a comment.
This clones the swagger UI and then outputs a redirected URL so swagger works at the end :)