-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using theme in docker #1787
Comments
Hello, @siarhei-kurhuzenkau-idf .Thanks for the request.
temp.json
|
@siarhei-kurhuzenkau-idf Hi! If you'll have some questions, please reopen this issue. Thanks. |
Hi @AlexVarchuk! Is there no other way? Something like passing the location of the JSON file. The problem when doing it via Dockerfile is that you cant set the ENV from the output of a command such as I see #1047 addresses the JSON string, but not specifically through a JSON file |
This works for me: REDOC_OPTIONS=disable-search hide-download-button theme='{"typography":{"fontSize": "16px"}}' |
But this is not setting it from an external file. The problem is reading the file into the variable. Sorry if this wasn't clear |
Wondering about this also, I am running the redocly container via docker compose, trying to get some of the custom options to propagate through ENV variables defined in the
disable-search and hide-download-button work, but I cannot get any of the theme properties to apply. |
I could not get the |
Hello,
Following the requests
#570
and
#1438
I see that there is the theme description in https://redoc.ly/docs/api-reference-docs/configuration/theming/
but it is unclear how to correctly use those options in dockerfile
I tried
REDOC_OPTIONS="disable-search hide-download-button typography.fontsize:"10px" "
and
REDOC_OPTIONS="disable-search hide-download-button theme.typography.fontsize:"10px" "
and
REDOC_OPTIONS="disable-search hide-download-button "theme":{"typography":{"fontSize": "16px"}}"
and
REDOC_OPTIONS="disable-search hide-download-button {"theme":{"typography":{"fontSize": "16px"}}}"
disable-search - works
hide-download-button - works
addressing nested theme json properties does not
Any examples, documentation will be appreciated
The text was updated successfully, but these errors were encountered: