You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, our static documentation build supports both dark and light themes, along with a theme switcher. We'd like to enhance the configuration options in the .yfm file to give more control over theme management. Specifically, we need to add functionality to:
1. Disable the Light Theme and Theme Switcher:
Users should have the option to disable the light theme entirely, resulting in the removal of the theme switcher. This can be accomplished by setting the themes array to include only the 'dark' theme.
themes: ['dark']
2. Change the Default Theme:
Users should be able to change the default theme by specifying their preference at the start of the themes array. For example, if someone prefers the dark theme as default, they should configure the array like this:
themes: ['dark', 'light']
This ensures the dark theme loads by default while still allowing users to switch to the light theme.
Request:
Update the .yfm configuration setup to reflect these changes.
Ensure that the theme switcher can be conditionally disabled based on the presence of a single theme in the configuration.
Validate theme names to avoid typos that might cause configuration errors.
Add information about this change to the documentation
The text was updated successfully, but these errors were encountered:
Currently, our static documentation build supports both dark and light themes, along with a theme switcher. We'd like to enhance the configuration options in the .yfm file to give more control over theme management. Specifically, we need to add functionality to:
1. Disable the Light Theme and Theme Switcher:
Users should have the option to disable the light theme entirely, resulting in the removal of the theme switcher. This can be accomplished by setting the themes array to include only the 'dark' theme.
2. Change the Default Theme:
Users should be able to change the default theme by specifying their preference at the start of the themes array. For example, if someone prefers the dark theme as default, they should configure the array like this:
This ensures the dark theme loads by default while still allowing users to switch to the light theme.
Request:
The text was updated successfully, but these errors were encountered: