- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature request: exclude certain static assets from processing #4811
Comments
Is it needed your source files are in (edited) ah sorry I see now you said
which was clear enough... |
Why not then |
The problem is that I don't want to pollute the website's root (so I want everything to be copied not to |
Hi,... cognitive folder?
Le mar. 3 avr. 2018 14:59, Clément Pit-Claudel <notifications@github.com> a
écrit :
… Why not then _myextensionassets rather than _static/myextensionassets?
(and of course html_extra_path = ['_myextensionassets']
The problem is that I don't want to pollute the website's root (so I want
everything to be copied not to build/html, but to build/html/somefolder/.
You can do this currently by creating dummyfolder/myextensionassets and
adding html_extra_path = ['dummyfolder'], but it's not great to have to
explain that to users.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4811 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbdRkrOkZzwsiva3qUQho9UrtYKYWkCYks5tk8Z5gaJpZM4TERMj>
.
|
What did you mean "processing"? Scanning source files on |
Right, exactly; converting to HTML. |
…c_path Fix #4811: The files under html_static_path are excluded from source
Fixed by #4908. |
Hi there,
If I understand correctly, there is no way at the moment to tell Sphinx to not process certain source files (but still include them in the output). In my case I have source files in
_static
, and I don't want Sphinx to touch them — they are just there to be downloaded.Using
exclude_patterns
, Sphinx will ignore the files entirely and omit them from the output. Usinghtml_extra_path
, Sphinx will copy the files twice (once ishtml/_static
and once inhtml
).Is there a way to tell Sphinx to not process certain documents, but still include them in the output directories? I know one trick (add
_static/<folder name>
to the exclusion list, which will work because the document finder uses full paths whereas copy_assets uses paths rooted at_static
), but I'm not sure if it's intended to work that way.Background: I have a Sphinx extension that turns source files (extension:
.fs
) with special comments into a reST document. To work well, this extensions needs extra javascript and CSS files, but also WebAssembly files (.wasm
) and other source files (.fs
). There extra files are large, so they are distributed separately from the extension. Users copy them into their_static
directory, under_static/myextensionsassets
. Unfortunately, Sphinx tries to process all the.fs
files in_static
, which takes a long time and isn't useful.Environment info
Thanks!
The text was updated successfully, but these errors were encountered: