Pārlūkot izejas kodu

chore: Add redoc preview in makefile

Sean Blackburn 1 gadu atpakaļ
vecāks
revīzija
3ac31766a6
2 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 2 0
      cspell.config.yaml
  2. 6 1
      makefile

+ 2 - 0
cspell.config.yaml

@@ -40,10 +40,12 @@ words:
   - Modulplaner OpenAPI
   - modulplaner_openapi
   - msee
+  - nginx
   - openapi
   - prov
   - rabh
   - Racquel
+  - redoc
   - redocly
   - rudu
   - Ruuben

+ 6 - 1
makefile

@@ -15,6 +15,11 @@ cspell-filenames:
 lint:
 	cd src; redocly lint openapi.yaml
 
-preview-docs:
+bundle:
 	cd src; redocly bundle openapi.yaml -o ../out/openapi.json
+
+preview-docs: bundle
 	docker run -p 8080:8080 -e SWAGGER_JSON=/out/openapi.json -e DOC_EXPANSION=none -v $(PWD)/out:/out swaggerapi/swagger-ui
+
+preview-docs-redocly: bundle
+	docker run -p 8080:80 -e SPEC_URL=/out/openapi.json -v $(PWD)/out:/usr/share/nginx/html/out redocly/redoc