question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get the `.css` files to copy over on building the docs?

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
maartenbreddelscommented, Dec 14, 2018

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)

1reaction
yjmantillacommented, Jul 5, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found