mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#309: The `graphviz` extension can now output SVG instead of PNG
images, controlled by the ``graphviz_output_format`` config value. Patch by Henrique Bastos.
This commit is contained in:
@@ -25,8 +25,9 @@ It adds these directives:
|
||||
"bar" -> "baz";
|
||||
}
|
||||
|
||||
In HTML output, the code will be rendered to a PNG image. In LaTeX output,
|
||||
the code will be rendered to an embeddable PDF file.
|
||||
In HTML output, the code will be rendered to a PNG or SVG image (see
|
||||
:confval:`graphviz_output_format`). In LaTeX output, the code will be
|
||||
rendered to an embeddable PDF file.
|
||||
|
||||
|
||||
.. directive:: graph
|
||||
@@ -75,3 +76,11 @@ There are also these new config values:
|
||||
Additional command-line arguments to give to dot, as a list. The default is
|
||||
an empty list. This is the right place to set global graph, node or edge
|
||||
attributes via dot's ``-G``, ``-N`` and ``-E`` options.
|
||||
|
||||
.. confval:: graphviz_output_format
|
||||
|
||||
The output format for Graphviz when building HTML files. This must be either
|
||||
``'png'`` or ``'svg'``; the default is ``'png'``.
|
||||
|
||||
.. versionadded:: 1.0
|
||||
Previously, output always was PNG.
|
||||
|
||||
Reference in New Issue
Block a user