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

Per-page customization of website theme options #1450

Open
choldgraf opened this issue Aug 12, 2024 · 0 comments
Open

Per-page customization of website theme options #1450

choldgraf opened this issue Aug 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@choldgraf
Copy link
Collaborator

Currently, theme options are set at the project level, meaning that you define it once in myst.yml and it applies to the entire site.

However, there are some cases where users want to apply options at a page level. It would be useful if we had the same project -> page inheritance for site options.

Example: Splash pages vs. documentation

Consider a site that has three top-level sections they wish to put in the navbar, one of which is docs/. Their Table of Contents defines the structure of docs/, and they only want it to show up when users are in docs/*.

To accomplish this, we could use page-level theme options to disable the left and right sidebar only for the non-docs pages.

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

No branches or pull requests

1 participant