Hi all,

For my Sphinx generated static site running on Nginx, the server is looking 
for section_toggle.css, modernizr.min.js, and custom.js under say, 
https://example.com/api-docs*/_static/*section_toggle.css or 
https://example.com/api-docs/*_static/js/*custom.js, and throwing a 404 
error. 

>From whatever little I gathered, we use CDN, but the static 
Sphinx-generated site uses relative path. Has anyone modified the Sphinx 
files to use absolute paths to provide CDN URLs?
For example, I have section toggle CSS add-on in the static folder, which 
is read from the _static/section_toggle.css. However, I need to use the CDN 
- https://example.com/api-docs/_static/section_toggle.css.

Is there an easy way to get that done?

The alternative is to manually replace all the ../_static occurrences in 
the generated HTML (100s of files)! 

Appreciate all the help, thanks!
M

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to