-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files from _static are not copied automatically #1810
Comments
Have you found the answer? |
Not really, I just have a |
Hi,
It was reported as #1810 .
But, unfortunately it is not fixed yet.
Please send us pull request if you are interested in :-)
Thanks,
Takeshi KOMIYA
2017-02-12 0:13 GMT+09:00 Martin Ueding <[email protected]>:
… Not really, I just have a Makefile that then copies those files for me.
Not really nice, but it seems to work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1810 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAttHHNcWk2gNm3t1A3tmSaxcv2gObpvks5rbdAsgaJpZM4D0win>
.
|
added 2 lines to the
copy works fine with the css files source/_static/css/custom.css is copied to the build/html/_static/css/custom.css |
|
any resolution on this? |
Just ran into this. I consider this quite important. Here is my real world example. Imagine you document an UI kit. For every component you document you create and example HTML which you include with iframe ( Static files needs to be copied automatically (or at least a new CLI swith to turn this functionality on) in certain cases. |
@im-n1, I ran into this issue too in python-adaptive/adaptive#329. Did you find a workaround? |
From https://github.com/executablebooks/sphinx-autobuild/#relevant-sphinx-bugs:
|
@AA-Turner what change in Sphinx fixed this? I wanted to add a reference when closing the sphinx-autobuild issue, but couldn't figure out what the relevant issue is. |
This didn't have a reproducer, but a cursory investigation indicates that There may be something I'm missing? A |
This isn't static files from html_static_path, but rather from the theme. A reproducer would be to:
Sphinx has an assumption that the theme wouldn't be modified, which means what modifying the theme isn't reflected in the build results. |
FWIW, this is relatively easy to hit during theme development with sphinx-autobuild which... as you'd expect, involves modifying theme files a lot. :) |
Adding a cross-reference to #2090, which is somewhat related (albeit for stylesheets). |
Like me.. the solution currently is to delete the |
I have a bunch of files in
_static
and in_themes/mu/static
that do not get copied when I compile:In my project, I generate a
.css
file from a.sass
file with a makefile and then call the above. The new.css
file from the_themes/mu/static
is not copied. When I do a clean build, everything is copied, but the change detection that Sphinx Doc uses seems to be insufficient.The text was updated successfully, but these errors were encountered: