summaryrefslogtreecommitdiff
path: root/tests/roots/test-directive-code
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos found by codespellDimitri Papadopoulos2023-03-271-2/+2
|
* Add tests for :dedent: option of code-block directiveLatosha Maltba2021-09-211-0/+64
|
* Add :force: option to code directivesTakeshi KOMIYA2019-06-012-0/+17
|
* test: verify linenothreshold usageJames Knight2019-02-162-0/+26
| | | | | | | | | | | | Adding a unit test to verify the use of the `linenothreshold` option provided by the `highlight` directive [1]. The included document to test will introduce two sets of `code-block` and `literalinclude` directives where the first entry generates contents using line numbers and the second entry generates contents not using line numbers, respectfully. [1]: https://github.com/sphinx-doc/sphinx/blob/v1.8.4/sphinx/transforms/post_transforms/code.py#L85 Signed-off-by: James Knight <james.d.knight@live.com>
* Close #1851: Allow to omit an argument for code-block directiveTakeshi KOMIYA2019-02-041-0/+20
|
* test: Omit master_doc settings from testcasesTakeshi KOMIYA2019-01-031-1/+0
|
* Remove coding magic comments from testsTakeshi KOMIYA2019-01-025-6/+0
|
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-1/+0
|
* Support ``:emphasize-lines:`` in PDF output (closes #1238)jfbu2017-12-101-0/+7
|
* Add testsRay Lehtiniemi2017-03-112-0/+33
| | | | Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
* Refactor testcasesTakeshi KOMIYA2017-02-185-126/+12
|
* Merge branch 'master' into refactor_literalincludeTakeshi KOMIYA2017-02-171-1/+7
|\
| * disambiguate ``test_literal_include_lineno_match``jfbu2017-02-101-1/+1
| |
| * If ``:start-after:`` is used, make ``:lines:`` relative (close: #3412)jfbu2017-02-101-0/+6
| |
* | Add testcases for LiteralIncludeReaderTakeshi KOMIYA2017-02-132-0/+19
|/
* Merge pull request #2843 from rthardin/issue_625_start_at_end_atTakeshi KOMIYA2016-10-121-0/+6
|\ | | | | Add :start-at: and :end-at: parameters for literalinclude
| * Added :start-at: and :end-at: parameters for literalincludeRyan Hardin2016-08-101-0/+6
| | | | | | | | This feature is discussed as part of issue #625.
* | Fix #2931: code-block directive with same :caption: causes warning of ↵Takeshi KOMIYA2016-09-171-1/+1
|/ | | | duplicate target
* Added Tests for latex(pdf) links to captioned or named literal blocksjfbu2016-04-103-2/+63
| | | | | | | | | | | | | | 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
* Merge with 'stable'shimizukawa2016-01-242-0/+35
|\
| * Fix #2253: ``:pyobject:`` option of ``literalinclude`` directive can't ↵shimizukawa2016-01-202-0/+35
| | | | | | | | detect indented body block when the block starts with blank or comment lines.
* | Merge branch 'stable'Takeshi KOMIYA2016-01-111-0/+1
|\ \ | |/
| * fix testing for text builder that generate ↵shimizukawa2016-01-091-0/+1
| | | | | | | | _build/text/_build/text/_build/... recursive directories because *.txt in _build/text previously generated was detected as source file.
| * Fix #1790 literalinclude strips empty lines at the head and tailTakeshi KOMIYA2015-04-022-0/+6
| |
| * Fix #1789 `:pyobject:` option of `literalinclude` directive includes ↵Takeshi KOMIYA2015-04-021-0/+1
| | | | | | | | following lines after definitions
* | Fix #2113: Allow ``:class:`` option to code-block directiveTakeshi KOMIYA2015-12-201-0/+21
| |
* | Fix #1790 literalinclude strips empty lines at the head and tailTakeshi KOMIYA2015-03-312-0/+6
| |
* | Fix #1789 `:pyobject:` option of `literalinclude` directive includes ↵Takeshi KOMIYA2015-03-311-0/+1
|/ | | | following lines after definitions
* fixed bugs, and extended unit test to catch them again if they reappearJeppe Pihl2014-10-061-1/+1
|
* added test .rst filesJeppe Pihl2014-10-043-0/+29
|
* Merge with defaulttk0miya2014-09-242-10/+76
|\
| * Complete test suite overhaul.Georg Brandl2014-09-212-10/+76
| | | | | | | | | | | | | | | | | | | | | | | | * rename a few test modules to make the names more consistent * do not copy/use Sphinx from build/ (unnecessary without 2to3) * use a temporary dir for *all* test projects, the source tree will stay pristine that way (default is tests/build) * speed up tests by ~3x by splitting up test projects and avoiding rebuilds
* | do nested_parse() :caption: of code-block directivetk0miya2014-09-191-2/+2
|/
* Rename :filename: option of code-block directive to :caption:tk0miya2014-08-112-0/+22
|
* * for pull request #258: update CHANGES, add tests, add a document and ↵Takayuki Shimizukawa2014-08-104-0/+62
refactoring.