please see sphinx.conf file, entry [1]. for better understand what is
created first use with your structure of files alone not in any httpd
server. after you understand names, static, etc move all this things under
your http server. Understand builders will help to give what you want [2]
see {builddir}

[1] http://sphinx-doc.org/config.html#confval-html_static_path
[2] http://sphinx-doc.org/tutorial.html#running-the-build

2015-07-29 13:20 GMT-03:00 Monami Bhattacharya <[email protected]>:

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



-- 
gilberto dos santos alves
+55(11)9-8646-5049
sao paulo - sp - brasil

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