summaryrefslogtreecommitdiff
path: root/tests/test_ext_graphviz.py
Commit message (Collapse)AuthorAgeFilesLines
* Increase minimum Docutils to 0.17Adam Turner2022-09-271-56/+26
|
* `.read_text()` -> `.read_text(encoding='utf8')`Adam Turner2022-04-271-4/+4
|
* Use docutils.__version_info__ directlyAdam Turner2022-04-221-1/+1
|
* Collapse single line docstringsAdam Turner2022-02-201-2/+1
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-2/+2
|
* Fix module docstring first lineAdam Turner2022-02-201-2/+1
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* test: Update testcase for docutils-0.17 (<figure> and <figcaption>)Takeshi KOMIYA2021-04-031-21/+56
| | | | | | Since v0.17, docutils starts to use <figure> and <figcaption> for figure and its caption on HTML output. This modifies the expected value of our testcases to support it.
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* test: Use read_text() and read_bytes()Takeshi KOMIYA2020-02-011-4/+4
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Close #6966: graphviz: Support ``:class:`` optionTakeshi KOMIYA2019-12-271-2/+3
|
* Fix #4550: html: Centering tables by default using CSSTakeshi KOMIYA2019-05-061-2/+2
|
* Close #4550: All tables and figures without ``align`` option are displayed ↵Takeshi KOMIYA2019-02-081-2/+2
| | | | to center
* quickstart: Simplify generated conf.py (for latex)Takeshi KOMIYA2019-01-071-1/+1
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | refactor figure_wrapper() using state.inline_text()Takeshi KOMIYA2018-12-041-3/+4
|/
* Fix #5002: graphviz: SVGs do not adapt to the column widthTakeshi KOMIYA2018-08-051-3/+3
|
* Allow imgcls as class for SVG Graphviz <object>Michael Goerz2018-04-211-4/+4
| | | | | | | | | | | | | | | 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-13/+15
| | | | | | | | | | | | | | | | | | | | | | | 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
* Fit graphviz images to page.Roman Kapl2018-02-161-4/+4
| | | | | 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-0/+62
|\
| * Fix graphviz: workaround for wrong map ID which graphviz generatesTakeshi KOMIYA2018-01-291-12/+14
| |
| * Fix #4501: graphviz: epub3 validation error caused if graph is not clickableTakeshi KOMIYA2018-01-291-0/+60
| |
* | Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
| * Add test for ext.graphviz alignment.Oliver Sanders2017-09-241-1/+51
| |
* | Fix flake8 violationsTakeshi KOMIYA2017-12-231-0/+2
| |
* | Add test for ext.graphviz alignment.Oliver Sanders2017-09-181-1/+51
|/
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Reduce DeprecationWarnings for regexpTakeshi KOMIYA2017-02-171-8/+8
|/
* pytest: remove deprecated with_app decorator functionsshimizukawa2017-01-061-5/+3
|
* pytest migrationshimizukawa2017-01-041-28/+5
|
* Reduce deprecation warnings (refs: #3192)Takeshi KOMIYA2016-12-151-1/+1
|
* #2575: Now ``sphinx.ext.graphviz`` allows ``:align:`` optionTakeshi KOMIYA2016-05-281-0/+9
|
* ``sphinx.ext.graphviz`` supports graph substituions by localeTakeshi KOMIYA2016-02-221-0/+13
|
* Refactor tests: Add @skip_if_graphviz_not_found decoratorTakeshi KOMIYA2016-02-221-4/+27
|
* Override figure directive to apply :name: option to the figure itselfTakeshi KOMIYA2016-02-141-1/+1
|
* ``sphinx.ext.graphviz``: show graph image in inline by defaultTakeshi KOMIYA2016-01-171-3/+22
| | | | | | | To support subsutituion syntax, make graphviz node inline (ref: #1149). Now graphviz directive behaves like ``image`` directive when no captions. If specified, it generates ``figure`` node and ``caption`` node like ``figure`` directive.
* Merge branch 'stable'Georg Brandl2016-01-141-1/+1
|\
| * Obligatory copyright update.Georg Brandl2016-01-141-1/+1
| |
* | graphviz test: raise Skip if dot not available, instead of just passingGeorg Brandl2015-07-251-6/+9
|/
* Add testcase for graphvizTakeshi KOMIYA2015-06-261-0/+23