-
Notifications
You must be signed in to change notification settings - Fork 20
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
Change package name #16
Comments
Maybe |
The But I think
|
In the end, maybe the original sphinx-panels is not that bad. Also the dropdowns are kind of "panels" (the button a bit less so ..). It might depend on what other components might be added in the future. Other idea: |
New option: |
(minor downside: people might think on first sight that it is related to "widgets" from the jupyter ecosystem) |
Yeh good point; just a suggestion from #17 that I though was worth throwing into the mix |
Strong +1 for calling it sphinx-components. Meta question: How do we figure out the final decision/concensus here? |
Reviving this conversation as this package also now has I'm +1 on updating this sooner than later, and rebranding this extension to something like "A collection of lightweight bootstrap-based UI components for Sphinx." |
It seems that we are converged on
Anything else? |
I'd start by reserving the PyPI name and RTD name, to avoid any pain around name retention policies. |
@pradyunsg I'm not sure how to reserve names on either PyPI or RTD - doesn't a project need to exist already in order to get the name? |
@choldgraf renaming to |
Given that this package includes the bootstrap CSS by default (which can interfere w/ other Sphinx elements + theme styling for non-bootstrap themes), I'm inclined to suggest that we avoid adding more things here. :) |
Yea. "reserving" to me is basically creating a barebones skeleton and upload it as a |
Yeah at least in the short-term, I like the idea of explaining this package as "Sphinx directives to provide shortcuts to bootstrap components" |
The only component intrinsically linked to bootstrap components is the panels themselves, so I don't know if that description is accurate. In fact, thinking off the top of my head, I'm inclined to perhaps consider, (a) have a look if the dropdown CSS can be separated from bootstrap, (b) consider not actually moving this package to sphinx-components, but instead creating a separate sphinx-components and moving every thing that is not the panels to that. This would make that package more "lightweight". |
hmm - are you suggesting that |
Yes. The more minimal the CSS the better
well I would still put a high emphasis on CSS over JS, but perhaps relax the no JS rule to very minimal JS (to e.g. implement tab groups or other highly requested features) |
yep makes sense I think the question then becomes "how much developer energy is there for a non-bootstrap-based components project?" To me, the benefit of using bootstrap components is that it minimizes the amount of dev work to build a new directive that utilizes those components. What I worry is that if a separate sphinx-components package were created, there would not be enough developer time behind it to make a whole different package worthwhile. Does that make sense? |
Well the main issue with bootstrap and sphinx is that pesky |
Well, what all do we want to provide? Looking at the bootstrap component list, we have:
|
what are these out of interest, I don't recall coming across them? |
This specific issue can be worked around with a bit of CSS -- https://github.com/pradyunsg/furo/blob/4164cc0625add44cdfd45fff44b49d5af661a301/src/furo/assets/styles/extensions/_sphinx-panels.sass#L5. The other issue is that Bootstrap stylizes everything in a "bootstrappy way", which can mess with themes not written with Bootstrap compatibility in mind. |
what does the "role=main" thing do @pradyunsg ? I haven't seen it before |
It selects any elements on the page that are like: It's basically a consequence of Sphinx's search depending on this attribute (https://github.com/sphinx-doc/sphinx/blob/7eabbfc5ecdf52329672410f651880645074e215/sphinx/themes/basic/static/searchtools.js#L65), and is fairly reliable for Sphinx documentation TBH. |
I recently came across them on https://sphinx-rtd-theme.readthedocs.io/en/latest/demo/demo.html#inline-markup (see the paragraph starting with "GUI labels"). They're not strictly an equivalent replacement, but they're close enough for the simple cases. |
This will essentially be closed by executablebooks/sphinx-design#6 |
The package now has
panels
,link-button
anddropdown
directives, so perhaps the name should reflect this larger scope.The name
sphinx-bootstrap
has been mentioned (executablebooks/sphinx-togglebutton#11 (comment) and #14 (comment)) but it's not particularly descriptive.Another name that comes to mind is something like
pydata-sphinx-extensions
, since its genesis was from the components used in the pandas docs, using thepydata-sphinx-theme
.The text was updated successfully, but these errors were encountered: