summaryrefslogtreecommitdiff
path: root/sphinx/ext/graphviz.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix annotations for extensionsTakeshi KOMIYA2018-12-011-12/+14
| |
* | Fix annotations for minor methods and functionsTakeshi KOMIYA2018-11-301-3/+3
| |
* | Fix annotaions for extensionsTakeshi KOMIYA2018-11-281-16/+20
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-11-011-2/+2
|\ \ | |/
| * Correctly deal with non-existing static dir in graphviz extensionJeroen Demeyer2018-10-171-2/+2
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-2/+2
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-2/+2
| |
* | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-3/+2
|\ \
| * | Prefer builtin open() over io.open() and codecs.open()Jon Dufresne2018-09-111-3/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | In Python3, the functions io.open() is an alias of the builtin open() and codecs.open() is functionally equivalent. To reduce indirection, number of imports, and number of patterns, always prefer the builtin. https://docs.python.org/3/library/io.html#high-level-module-interface > io.open() > > This is an alias for the builtin open() function.
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-1/+1
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* graphviz: Don't use document.current_sourceTakeshi KOMIYA2018-08-211-3/+1
|
* Merge branch 'master' into graphviz_width_of_svgTakeshi KOMIYA2018-08-071-3/+12
|\
| * graphviz: rename docpath -> docnameRok Roskar2018-08-061-3/+4
| |
| * graphviz: add document name to graphviz nodeRok Roskar2018-08-061-4/+8
| |
| * graphviz: make path construction more readableRok Roskar2018-08-061-2/+5
| |
| * graphviz: run dot in the document directoryRok Roskar2018-08-061-1/+2
| | | | | | | | | | | | addresses #4033 Co-authored-by: Jiri Kuncar <jiri.kuncar@gmail.com>
* | Fix #5002: graphviz: SVGs do not adapt to the column widthTakeshi KOMIYA2018-08-051-7/+22
|/
* refactor: Replace Directive by SphinxDirectiveTakeshi KOMIYA2018-05-111-8/+9
|
* Allow imgcls as class for SVG Graphviz <object>Michael Goerz2018-04-211-3/+5
| | | | | | | | | | | | | | | For consistency, the `<object>` tag for the SVG output of a inheritance-diagram should have the same `class="inheritance"` attribute that the corresponding `<img>` tag for the PNG format has. This allows to define the CSS attribute object.inheritance { max-width: 100%; } which for SVG (unlike PNG) actually works and makes sense. Added a test for inheritance-diagrams in SVG.
* Wrap graphviz diagrams in <div class="graphviz">Michael Goerz2018-04-201-4/+8
| | | | | | | | | | | | | | | | | | | | | | | The graphviz extension is modified to wrap the `<img>` and `<object>` tags it creates for diagrams in the png and svg formats in an additional `<div class="graphviz">...</div>` tag. This allows to apply additional CSS styling to the the diagrams that cannot be applied to `<img>` and `<object>` directly. Most notably, div.graphviz { overflow: auto; } would be a useful style that the standard themes might consider. In any case, it would allow users to add custom CSS code to their project that gets around the problems with inheritance-diagrams discussed in https://github.com/sphinx-doc/sphinx/issues/4865 The tests for the `grahviz` and `inheritance_diagram` have been modified to test for the presence of the additional `<div>` tag. Closes #4865
* Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch 'master' into dont_stringify_exceptionsTakeshi KOMIYA2018-03-041-3/+3
|\ \
| * | Make console and warning messages translatableTakeshi KOMIYA2018-03-031-3/+3
| |/
* | Use six.text_type to stringify exceptionsTakeshi KOMIYA2018-03-031-3/+3
|/ | | | | On py2, an exception having i18nized message causes UnicodeError on stringify. This uses ``six.text_type()`` to stringify them instead.
* Merge pull request #4616 from tk0miya/use_typing.TYPE_CHECKINGTakeshi KOMIYA2018-02-171-2/+2
|\ | | | | Use typing.type checking
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Fit graphviz images to page.Roman Kapl2018-02-171-1/+1
|/ | | | | Use \sphinxincludegraphics, that's what the core image directives use and it handles fitting properly.
* Merge branch 'stable' into 1.7-releaseTakeshi KOMIYA2018-01-301-15/+55
|\
| * Fix mypy violationsTakeshi KOMIYA2018-01-291-5/+5
| |
| * Fix graphviz: workaround for wrong map ID which graphviz generatesTakeshi KOMIYA2018-01-291-6/+13
| |
| * Fix #4501: graphviz: epub3 validation error caused if graph is not clickableTakeshi KOMIYA2018-01-291-15/+48
| |
* | Use flake8-import-orderTakeshi KOMIYA2018-01-281-4/+3
|/
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Fix ext.graphviz alignment.Oliver Sanders2017-09-241-19/+21
|
* Fix #3833: command line messages are translated unintentionallyTakeshi KOMIYA2017-06-251-14/+14
|
* Make messages translatableTakeshi KOMIYA2017-04-201-13/+13
|
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-1/+1
| |
* | Drop deprecated options for graphviz extensionTakeshi KOMIYA2017-01-051-21/+0
| |
* | Use loggersTakeshi KOMIYA2017-01-021-6/+9
| |
* | ``sphinx.util.compat.Directive`` class is now deprecated.Takeshi KOMIYA2016-12-131-2/+1
| |
* | Add type-check annotations to sphinx.extTakeshi KOMIYA2016-11-161-2/+23
| |
* | #3136: Add ``:name:`` option to the directives in ``sphinx.ext.graphviz``Takeshi KOMIYA2016-11-121-0/+4
|/
* #2575: Now ``sphinx.ext.graphviz`` allows ``:align:`` optionTakeshi KOMIYA2016-05-281-0/+28
|
* Refactor code using ``with`` syntaxTakeshi KOMIYA2016-05-261-8/+2
|
* ``sphinx.ext.graphviz`` supports graph substituions by localeTakeshi KOMIYA2016-02-221-1/+3
|
* Fix condition of graphviz warningTakeshi KOMIYA2016-01-191-1/+1
|