pydata / pydata-sphinx-theme

A clean, three-column Sphinx theme with Bootstrap for the PyData community
https://pydata-sphinx-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
557 stars 299 forks source link

Why is `@import "variables/bootstrap";` imported twice? #1788

Open jarrodmillman opened 2 months ago

jarrodmillman commented 2 months ago

Why is @import "variables/bootstrap"; in both

12rambau commented 2 months ago

Initially everything was in pydata-sphinx-theme.scss I guess when I created bootstrap.scss I forgot to remove it from the other file. I'm not completely fluent in scss so better check if variables should be imported in both (as both files are using these custom variables that overwrite default bootstrap).

trallard commented 1 month ago

I do not think we need a double import per the hierarchy we follow (https://github.com/pydata/pydata-sphinx-theme/blob/main/src/pydata_sphinx_theme/assets/styles/pydata-sphinx-theme.scss?rgh-link-date=2024-04-26T02%3A13%3A11Z has all the scss imports we need)

@gabalafou do you have any insights?

gabalafou commented 1 month ago

Not an expert, but my guess is that the file needs to be imported in both places since bootstrap.scss and pydata-sphinx-theme.scss go to different build targets