Skip to content

Commit

Permalink
Move OpenAPI description into its own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed Jun 3, 2021
1 parent fe1aad7 commit 57e870e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ services:
init: true
image: redocly/redoc
volumes:
- .:/usr/share/nginx/html/openapi:ro
- ./openapi:/usr/share/nginx/html/openapi:ro
environment:
SPEC_URL: openapi/openapi.yaml
ports:
- "127.0.0.1:8081:80"

workspace:
init: true
build:
context: .
volumes:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"build": "rm -rf dist/* && redoc-cli bundle openapi.yaml -o dist/index.html"
"build": "rm -rf dist/* && redoc-cli bundle openapi/openapi.yaml -o dist/index.html"
},
"devDependencies": {
"prettier": "^2.3.0",
Expand Down

0 comments on commit 57e870e

Please sign in to comment.