#17498: Pictures in the doc through ".. plot::" directive
-------------------------------------+-------------------------------------
Reporter: ncohen | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.5
Component: documentation | Resolution:
Keywords: | Merged in:
Authors: Nathann Cohen, | Reviewers: Nathann Cohen, John
John Palmieri | Palmieri
Report Upstream: N/A | Work issues:
Branch: public/17498 | Commit:
Dependencies: #17508 | 6e51751b533c42f10f18f00dc7a01b4dacf0aa43
| Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jhpalmieri):
Replying to [comment:57 tmonteil]:
> Back to the main issue, John's current fix is a good step, but it does
not solve the fact that when we run `make` to build Sage, the doc is built
with pictures with no possibility to avoid it, and then we have to rebuild
the doc again to remove them.
No, you just run `make doc-html-no-pix`: this builds Sage and then the
docs, but with no pictures.
> I see various points to make John's fix work better:
>
> - the way it is currently written, it is uselsss for the user to set the
`SPHINX_INCLUDE_PLOTS` environment variable
My goal wasn't to introduce an environment variable for the user to set,
which is why I didn't document it in the installation guide. This style
is common throughout `builder.py`. Various people have suggested, and I
agree, that Sage has too many environment variables as it is, and we
should instead control behavior using command-line flags, Makefile
targets, etc. In this case, the environment variable (for internal use
only) is a useful way to pass the information around.
> - Instead of adding a new `html-no-pix` FORMAT for the docbuild command,
it could be better to add a `--no-pix` OPTION (or perhaps `--no-plot` ?).
See `sage -docbuild` for the documentation. This is more consistent with
the existing `--no-pdf-links` or `--no-colors` options, but also allows to
pass the `--no-pix` (or whatever) option in the Makefile calls via the
`SAGE_DOCBUILD_OPTS` command.
This sounds like a good idea. Shouldn't be hard to do. See the new commit.
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=6e51751b533c42f10f18f00dc7a01b4dacf0aa43
6e51751]||{{{#17498: change "html-no-pix" to "--no-plot html"}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/17498#comment:60>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.