How to get the `.css` files to copy over on building the docs?
See original GitHub issueThis is only tangentially related to sphinx-gallery, but I have a quick question for @Titan-C (or whoever might know)
I’m having a heck of a time figuring out how sphinx-gallery is able to get its .css
file copied over to the built _static
directory (so that it can be linked in pages). I see that https://github.com/sphinx-gallery/sphinx-gallery/blob/master/sphinx_gallery/gen_gallery.py#L116 seems to be adding the path to the static folder in this repo, but I demoed this on a different repo and none of the files were copied over.
Anyone know how we accomplish this in sphinx-gallery?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How to Link CSS to HTML Files in Web Development - Hostinger
Check that your files are in the same folder if you have trouble linking your CSS to HTML. Check that the file path...
Read more >Adding Custom CSS or JavaScript to Sphinx Documentation
Adding additional CSS or JavaScript files to your Sphinx documentation can let you customize the look and feel of your docs or add...
Read more >Copy a website's style by stealing CSS! - YouTube
Tutorial on copying the style of another website by taking CSS and using it on your own webpage.
Read more >How To Set Up Your CSS and HTML Practice Project With a ...
In the project directory css-practice , open an additional new file and save it as index.html in the same way you created the...
Read more >import - CSS: Cascading Style Sheets - MDN Web Docs
The @import CSS at-rule is used to import style rules from other valid stylesheets. An @import rule must be defined at the top...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I didn’t understand this as well, and found a solution: https://github.com/sphinx-doc/sphinx/issues/2090 (also knowing sphinx-gallery could do it)
@lucyleeow Thanks, I did see that documentation but was a bit frustrated as a newcomer since I didn’t know what was wrong despite doing what it said. Will try to do the PR tomorrow.