-
Notifications
You must be signed in to change notification settings - Fork 339
Limit admonition types #200
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
Comments
I think I'd prefer re-using the Sphinx directives rather than introducing new directives of our own. In general I think we should avoid people using What's the problem with allowing the longer list of sphinx directives? It seems like it is a superset of the 4 you describe, so can't people just not use the extra ones they don't want to use? |
I think the discussion arised in #190 with many theme variables being around for admonitions. @jorisvandenbossche suggested to stick to the Bootstrap types. After a closer look I see no 100% overlap between bootstraps alert type/colors and the admonitions. Mostly the 'success' type is not present in the admonition list, the other ones can be matched between Bootstrap and Sphinx. |
To clarify: my suggestion to limit the number of colors / potentially use bootstrap's existing CSS variables for this, was only related to the "theming" functionality:
It's for this theming whether I was wondering if it is not sufficient to stick to only a few colors, and potentially reuse the bootstrap color variables for this. If an advanced user really wants more control, they can still override the CSS directly instead of using CSS variables. Or, we could also still have variables for all of the admonition types, but define them in terms of 4 basic colors, so as a theme user who wants to change the colors, you can also only update those 4, and have it automatically apply to all admonition types. |
re: theming, that makes sense to me. I think restricting to a subset of colors (or a subset of themeable colors) will make that easier 👍. I just don't want there to be "rST files written for the pydata theme, and rST files written for other themes" as much as possible |
Yep, fully agreed |
If the admonition types are Sphinx standards, then I also fully agree on not adding specific types for this theme. |
Coming from #190 , where a part of the discussion (cc @jorisvandenbossche ) is about different admonition types. Or more specific, limit the visual differences to:
These 4 types are inspired by the Bootstrap variables. Semantically they also make sense to me.
Limiting the options to these 4 also allows a clear visual color difference.
Though when trying to define these 4 classes, I bump into Sphinx / RST limitations?
Error:
Is the admonition directive Sphinx specific and limited to:
Or can we replace / extend the list above with our 4 Bootstrap inspired admonitions?
The text was updated successfully, but these errors were encountered: