Sphinx writes to a directory not _static

Note

For english reader

You Want Change If The Output Directory From _Static To Something, Use this gist As An Extension.

In Sphinx, you may want to write JS and other files to places other than _static. In that case, tk0miya wrote the extension for that.

Place it in the same directory as conf.py with an appropriate name and conf.py

sys.path.insert(0, os.path.abspath('.'))
extensions = ['sphinxcontrib_staticdir_hack.py']

And if you do it is ok.

In conf.py

staticdir_name="なにかすきなディレクトリ名"

Let's make sure that the static directory has been changed with make html.

Caution

This extension is a bit aggressive hacking, so I will not guarantee that it will work in future versions.

If you have any demand, ML and issues if Kudasare by a raised, might officially be able to cope with Sphinx side.