Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change `_target` output directory for HTML Builder in sphinx?

I'm trying to use Sphinx to build docuemntation to push to github pages. I'm using the default html builder to generate help documentation and pushing that into a gh-pages branch (see https://github.com/sbt/sbt-native-packager/tree/gh-pages).

It appears like the github pages integration doesn't like directories beginning with _, and makes the _static directory hidden. My site appears with no style (much like myself).

Is there any way to configure Sphinx to use static/ instead of _static/ in its generated pages? I tried html_static_path but no dice.

Thanks!

like image 776
jsuereth Avatar asked Jan 16 '12 18:01

jsuereth


1 Answers

It is a known issue. See this Google Groups thread. The github-tools project has a workaround in sphinx.py.

See also https://stackoverflow.com/a/6398875/407651.

like image 192
mzjn Avatar answered Oct 08 '22 01:10

mzjn