Skip to content
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

How do I configure redoc typography? #98

Closed
fsargent opened this issue Nov 4, 2021 · 2 comments · Fixed by #129
Closed

How do I configure redoc typography? #98

fsargent opened this issue Nov 4, 2021 · 2 comments · Fixed by #129
Labels

Comments

@fsargent
Copy link

fsargent commented Nov 4, 2021

Hiya,

I've been chewing on this for a few days and can't find a good option, how do you pass theming options to Redoc?

IE: https://redoc.ly/docs/api-reference-docs/configuration/theming/

We'd like to change what the font is, and try to make the sidebar typography match Docusaurus' theme more, but I can't seem to get any of the attributes loaded when entering them through docusaurus.config.js.

Thanks!

@rohit-gohri
Copy link
Owner

That's because we currently override the theme options in the end with light/dark theme options here: https://github.com/rohit-gohri/redocusaurus/blob/main/packages/docusaurus-theme-redoc/src/redocTheme.ts

We could change the order, but if these improvements are not specific to your site's branding then I would encourage you to open a PR fixing the theme for everyone :D Will be happy to release a patch version.

@rohit-gohri
Copy link
Owner

v0.8.0 has a redocTheme option (https://github.com/rohit-gohri/redocusaurus/tree/main/packages/docusaurus-theme-redoc#redoctheme) to overwrite theme. You can configure typography through that, though I would still recommend anyone to open a PR and improve the style for everyone 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants