Qiskit / qiskit_sphinx_theme

A Sphinx theme and documentation guidelines for Qiskit and Qiskit Ecosystem projects
https://qisk.it/docs-guide
Apache License 2.0
15 stars 29 forks source link

Use webpack to build Furo theme #424

Closed Eric-Arellano closed 1 year ago

Eric-Arellano commented 1 year ago

Closes https://github.com/Qiskit/qiskit_sphinx_theme/issues/283.

Webpack allows us to minify our CSS file so that our site is faster to load. It also allows us to use Sass, which enables us to split up the CSS into several files and use nice features like nested selectors that make our code a lot more readable. A follow-up will use Sass.

This change is all abstracted away from end users. sphinx-theme-builder handles it all and they have no idea we're using Webpack.

Now our stylesheet loads like this:

Screenshot 2023-06-28 at 11 07 00 AM