[SciPy-Dev] How to preview changes to a doc file?

Evgeni Burovski evgeny.burovskiy at gmail.com
Wed Jun 7 18:51:09 EDT 2017


On Wed, Jun 7, 2017 at 11:12 PM, Paul van Mulbregt
<p.vanmulbregt at comcast.net> wrote:
> What is the recommended way to preview any documentation changes, such as
> after modifying restructured text (rst) files?

$ cd doc
$ make html-scipyorg

which builds the docs *for the installed scipy*. To build the docs for
the dev tree, use

$ python runtests.py --shell
$ cd <path-to-scipy-tree>/doc
$ make html-scipyorg



> After adding some additional math to an rst file, I’d like to see the result
> of the change, but haven’t found a good way to do so.
> [I’m using a Mac, with Python 3.6.]
>
> * Attempts to build the scipy doc have not succeeded for me ("setup.py
> build_sphinx" generates lots of dvipng errors; perhaps building the doc
> requires Py2.7???)

Not anymore (modulo https://github.com/scipy/scipy/issues/7369 which
might be a user error).


> * The Mac editor Atom has some rst preview packages, but I haven’t found one
> that can handle the \begin{eqnarray*} constructs in the scipy rst files.
> * Stand-alone rst-viewers which then opened in a browser didn’t like the
> math either.
> * One online viewer http://rst.ninjs.org did render the math in a fashion,
> after I had removed the ":nowrap:", and converted the backtick  :math:`XXX`
> to stand-alone math.  But it was a poor rendering when compared to the
> actual scipy html.
>
> How do you preview doc changes?
>
> Thanks,
> Paul
>
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>


More information about the SciPy-Dev mailing list