Two questions about sharing Sphinx documentation with others:
(1) Do you know of an easy way of private hosting of Sphinx documents
online (where you can restrict access to it)? Is there a web host or
some solution that makes this possible easily?
(2) If I want to email the documentation to someone, which files do I
need to email? Do I need to send _build, _template and _static
directories. Does the recipient need to have Python?
Thanks,
Bharat
All you have to do is copy the contents of the _build/html directory
tree to your web host or email it to someone (You can skip the
.buildinfo & objects.inv files if you want). The _static directory is
automatically copied to _build/html/_static as are the processed
template files (.css_t files get converted to .css files).
It's up to your website configuration as to whether those pages are
private or not.
Recipients only need a web browser to view Sphinx generated HTML pages.
Can someone please help? Thanks.
Best,
Bharat
Hi Bharat,
MathJax has a large overhead (around 100Mb) to transfer. I host a free
MathJax installation - read more about it at
http://mathjax.connectmv.com
Basically all you need to do is set in your Sphinx ``conf.py`` that:
mathjax_path = 'http://mathjax.connectmv.com/MathJax.js'
and as long as you have an internet connection you don't need to worry
about the MathJax files. Otherwise, you will need to copy them along
with your HTML.
The other option is, of course, to use the PNG math extension, which
will create small PNG files that go with your HTML.
Kevin
Thanks.