From 49f66641af2c23ab13a64c63f3d1e8d4770bc927 Mon Sep 17 00:00:00 2001 From: Artem Tsybulko <60066359+inspector-code@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:57:31 +0300 Subject: [PATCH] SP-19127 - update redocly (#219) --- README.md | 5 +---- redocly.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 redocly.yml diff --git a/README.md b/README.md index af81f61..0ede455 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/redocly.yml b/redocly.yml new file mode 100644 index 0000000..40d9ecd --- /dev/null +++ b/redocly.yml @@ -0,0 +1,13 @@ +theme: + openapi: + hideDownloadButton: true + maxDisplayedEnumValues: 5 + expandResponses: 'all' + expandSingleSchemaField: true + jsonSampleExpandLevel: 6 + theme: + logo: + gutter: '20px' + colors: + primary: + main: '#8a53cb'