summaryrefslogtreecommitdiff
path: root/tests/test_directive_code.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | literalinclude directive allows combination of :pyobject: and :lines:Takeshi KOMIYA2017-02-221-0/+8
| |
* | Fix typoTakeshi KOMIYA2017-02-181-1/+1
| |
* | Add testcasesTakeshi KOMIYA2017-02-181-0/+23
| |
* | Refactor testcasesTakeshi KOMIYA2017-02-181-121/+41
| |
* | Merge branch 'master' into refactor_literalincludeTakeshi KOMIYA2017-02-171-5/+10
|\ \
| * \ Merge pull request #3413 from jfbu/literalincludelinesJean-François B2017-02-171-3/+8
| |\ \ | | | | | | | | If ``:start-after:`` is used, make ``:lines:`` relative (close: #3412)
| | * | disambiguate ``test_literal_include_lineno_match``jfbu2017-02-101-3/+2
| | | |
| | * | If ``:start-after:`` is used, make ``:lines:`` relative (close: #3412)jfbu2017-02-101-0/+6
| | |/
| * | Reduce DeprecationWarnings for regexpTakeshi KOMIYA2017-02-171-2/+2
| |/
* | Add testcase for :lineno-match: optionTakeshi KOMIYA2017-02-171-6/+30
| |
* | Add testcases for LiteralIncludeReaderTakeshi KOMIYA2017-02-131-1/+173
|/
* Fix flake8 violationsTakeshi KOMIYA2017-01-261-12/+12
|
* pytest: remove deprecated with_app decorator functionsshimizukawa2017-01-061-17/+19
|
* Reduce deprecation warnings (refs: #3192)Takeshi KOMIYA2016-12-151-9/+7
|
* fix tests for latex buildjfbu2016-12-081-14/+16
|
* Merge pull request #2843 from rthardin/issue_625_start_at_end_atTakeshi KOMIYA2016-10-121-0/+7
|\ | | | | Add :start-at: and :end-at: parameters for literalinclude
| * Added :start-at: and :end-at: parameters for literalincludeRyan Hardin2016-08-101-0/+7
| | | | | | | | This feature is discussed as part of issue #625.
* | Fix #2931: code-block directive with same :caption: causes warning of ↵Takeshi KOMIYA2016-09-171-8/+8
|/ | | | duplicate target
* Fix style checksVille Skyttä2016-07-071-1/+2
|
* Remove usage by sphinx.sty of latex package newfloat.styjfbu2016-06-191-4/+2
|
* Enhance latex text styling customizabilityjfbu2016-06-171-2/+4
|
* Rename SphinxVerbatim to sphinxVerbatim for latex outputjfbu2016-06-151-2/+2
|
* Merge branch 'stable'jfbu2016-06-151-12/+12
|\ | | | | | | | | | | | | Conflicts: sphinx/domains/cpp.py sphinx/texinputs/sphinx.sty tests/test_build_latex.py
| * Fix #2629. Add new config option ``latex_keep_old_macro_names``jfbu2016-06-151-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cause of the issue was a clash about ``\titleref`` macro being already defined in memoir class context. To avoid similar problems, this makes the text styling macros ``\strong``, ``\code``, ``\bfcode``, ``\email``, ``\tablecontinued``, ``\titleref``, ``\menuselection``, ``\accelerator``, ``\crossref``, ``\termref``, ``\optional``, also available with ``\sphinx`` prefix, with a conf.py boolean option to let sphinx.sty only define ``\sphinx``-prefixed macros. As default value is False, backwards compatibility is maintained. On this occasion, some internal non-public macros have been renamed with prefix ``\spx@``. The command find . -name '*.sty' -exec grep -l \\\\spx@ {} \; has been executed in TeXLive 2015 and 2016 installations to check no package defines macros starting with ``\spx@``. Some internal macros having public names (because they are written by latex.py into the body of the latex document) have been renamed to have ``\sphinx`` prefix. The macros in sphinx.sty starting with \py@, or \DU, or \PYG have not been modified. Similarly ``\release``, ``\version``, ``\releasename``, etc... have not been renamed.
* | Merge branch 'stable'Takeshi KOMIYA2016-06-121-4/+4
|\ \ | |/
| * Fix flake8 violation under tests/Takeshi KOMIYA2016-06-121-4/+4
| |
* | latex: keep original Verbatim under same name, use SphinxVerbatim for ownjfbu2016-06-101-2/+2
|/
* Added Tests for latex(pdf) links to captioned or named literal blocksjfbu2016-04-101-0/+44
| | | | | | | | | | | | | | As conf.py has now numfig = True, needed to modify accordingly test for links in html output. This topic branch fixes #2405, #2414, and also makes for latex(pdf) functional hyperlinks to named references, but only for literal blocks (code-block or literalinclude). modified: tests/roots/test-directive-code/caption.rst modified: tests/roots/test-directive-code/conf.py new file: tests/roots/test-directive-code/namedblocks.rst modified: tests/test_directive_code.py
* Enable pdf hyperlinks to named literal-blocks without caption.jfbu2016-04-071-2/+2
| | | | | | | | | | | | | This is tango between latex.py and sphinx.sty to handle PDF hyperlinks to literal-blocks (both code-block and literalinclude) either with name or caption (then numref can be used) or both. modified: sphinx/texinputs/sphinx.sty modified: sphinx/writers/latex.py This test file is now back to original. modified: tests/test_directive_code.py
* Fix broken numeric reference in PDF hyperlinks to "Listing " code-blocksjfbu2016-04-031-2/+2
| | | | | | | | The `\label` is now inserted into the caption on top of the Verbatim, and `\ref` will work as expected. No need for `\phantomsection`. modified: sphinx/writers/latex.py modified: tests/test_directive_code.py
* Merge pull request #2297 from jfbu/literalblockcaptionTakeshi KOMIYA2016-03-061-2/+2
|\ | | | | LaTeX captions of literal blocks now glued to framed verbatim
| * Fix broken test_literalinclude_caption_latexjfbu2016-03-041-1/+1
| | | | | | | | modified: tests/test_directive_code.py
| * Changes of LaTeX macro names in sphinx.sty to use Sphinx prefix.jfbu2016-03-041-1/+1
| | | | | | | | | | | | modified: sphinx/texinputs/sphinx.sty modified: sphinx/writers/latex.py modified: tests/test_directive_code.py
| * Address #2262 (latex): avoid pagebreaks after captions of literal blocksjfbu2016-02-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This could fix https://github.com/sphinx-doc/sphinx/issues/2262 The 1.3.5 Verbatim environment from sphinx.sty has many places allowing a page break after the caption: from the \smallskip, from the list environment, and from the \MakeFramed: indeed framed package documentation explains that it encourages page breaks above it. The only way to avoid the pagebreaks is to put the caption inside the environment whic is started by \MakeFramed. However, as this environment typesets multiple times its contents, we must inhibit within it the increase of counters (only the literal-block counter is concerned), this is done thanks to a switch provided by the package amsmath which is already loaded by sphinx.sty. modified: sphinx/texinputs/sphinx.sty modified: sphinx/writers/latex.py modified: tests/test_directive_code.py
* | Merge with 'stable'shimizukawa2016-01-241-0/+24
|\ \ | |/
| * Fix #2253: ``:pyobject:`` option of ``literalinclude`` directive can't ↵shimizukawa2016-01-201-0/+24
| | | | | | | | detect indented body block when the block starts with blank or comment lines.
* | Merge branch 'stable'Georg Brandl2016-01-141-1/+1
|\ \ | |/
| * Obligatory copyright update.Georg Brandl2016-01-141-1/+1
| |
* | Fix #2113: Allow ``:class:`` option to code-block directiveTakeshi KOMIYA2015-12-201-0/+17
|/
* modify test strings to be found after build_latexTakaaki AOKI2015-12-101-2/+2
|
* Fixed #1869: Fix problems when dealing with files containing non-ASCII ↵shimizukawa2015-07-251-6/+6
| | | | characters.
* Fix #1790 literalinclude strips empty lines at the head and tailTakeshi KOMIYA2015-04-021-0/+15
|
* Fix #1789 `:pyobject:` option of `literalinclude` directive includes ↵Takeshi KOMIYA2015-04-021-3/+6
| | | | following lines after definitions
* refs #1742: `:name:` option is provided for `toctree`, `code-block` and ↵shimizukawa2015-03-081-2/+2
| | | | `literalinclude` dirctives.
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|
* mergeJeppe Pihl2014-10-061-6/+10
|\
| * Merged in tk0miya/sphinx (pull request #304)Takayuki Shimizukawa2014-10-061-4/+10
| |\ | | | | | | | | | numfig feature improvement
| | * Surround fignum and caption with <span> tagtk0miya2014-10-051-4/+4
| | |
| | * Set permanent links to every captions and titlestk0miya2014-10-051-4/+10
| | |
* | | mergeJeppe Pihl2014-10-061-2/+2
|\ \ \ | |/ /