useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
36 stars 15 forks source link

[#4] fix css file generation in installation folder #18

Closed kreuzberger closed 1 year ago

kreuzberger commented 1 year ago

This would fix the main.css file generation in the installation directory on every build. The main.css is referenced in the template conf from subdirectory styles.

danwos commented 1 year ago

Needed to change the folder for main.css to _static, instead of _static/styles. Mainly because all path inside scss-file must be relative to the main.css location. And if a user has a _static/mytitle.png then the option should be just contain mytititle.png and not ../mytitle.png.

As it is only one css-file and some other extensions also use _statics for CSS, I think this is fine.

change is already on main branch