Skip to content

Commit

Permalink
SP-19127 - update redocly (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
inspector-code authored Nov 28, 2024
1 parent d29f9ee commit 49f6664
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ Edit **rt-authenticity.yml** - remove **components.schemas.AuthenticityCheckResu

Then run next command:
```
npx redoc-cli bundle "$PWD/index.yml" --output document-reader-static-doc.html \
--options.maxDisplayedEnumValues=5 --options.theme.logo.gutter="20px" \
--options.theme.colors.primary.main="#8a53cb" --options.expandResponses="all" \
--options.expandSingleSchemaField --options.hideDownloadButton --options.jsonSampleExpandLevel="6"
npx @redocly/cli build-docs index.yml -o=document-reader-static-doc.html
```

## Bundle scheme to single .json file
Expand Down
13 changes: 13 additions & 0 deletions redocly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
theme:
openapi:
hideDownloadButton: true
maxDisplayedEnumValues: 5
expandResponses: 'all'
expandSingleSchemaField: true
jsonSampleExpandLevel: 6
theme:
logo:
gutter: '20px'
colors:
primary:
main: '#8a53cb'

0 comments on commit 49f6664

Please sign in to comment.