Dimitri Papadopoulos
669bcc0a19
Fix typos found by codespell
2023-03-27 07:22:07 +02:00
Latosha Maltba
cf9b5b5be9
Add tests for :dedent: option of code-block directive
2021-09-21 09:19:53 +00:00
Takeshi KOMIYA
e001d358d0
Add :force: option to code directives
2019-06-01 13:42:57 +09:00
James Knight
3858a62814
test: verify linenothreshold usage
...
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>
2019-02-16 22:14:30 -05:00
Takeshi KOMIYA
6ca669295c
Close #1851 : Allow to omit an argument for code-block directive
2019-02-04 01:50:44 +09:00
Takeshi KOMIYA
114ff77f68
test: Omit master_doc settings from testcases
2019-01-03 10:58:42 +09:00
Takeshi KOMIYA
5428d94d24
Remove coding magic comments from tests
2019-01-02 21:53:07 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
jfbu
70f8d4ddfc
Support `:emphasize-lines:
` in PDF output ( closes #1238 )
2017-12-10 12:37:36 +01:00
Ray Lehtiniemi
06b6e07b98
Add tests
...
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-11 13:40:47 -07:00
Takeshi KOMIYA
2ebcbc882e
Refactor testcases
2017-02-18 00:12:54 +09:00
Takeshi KOMIYA
d1b5f7227d
Merge branch 'master' into refactor_literalinclude
2017-02-17 23:37:35 +09:00
Takeshi KOMIYA
6b20c72521
Add testcases for LiteralIncludeReader
2017-02-13 00:04:15 +09:00
jfbu
f7e5043949
disambiguate `test_literal_include_lineno_match
`
2017-02-10 17:58:11 +01:00
jfbu
a2338e4838
If `:start-after:
is used, make
:lines:
` relative ( close : #3412 )
2017-02-10 16:55:28 +01:00
Takeshi KOMIYA
111b7f4c72
Merge pull request #2843 from rthardin/issue_625_start_at_end_at
...
Add :start-at: and :end-at: parameters for literalinclude
2016-10-12 19:54:33 +09:00
Takeshi KOMIYA
cfddf17d35
Fix #2931 : code-block directive with same :caption: causes warning of duplicate target
2016-09-17 18:13:17 +09:00
Ryan Hardin
560b5725c9
Added :start-at: and :end-at: parameters for literalinclude
...
This feature is discussed as part of issue #625 .
2016-08-10 11:15:10 -04:00
jfbu
673222f20a
Added Tests for latex(pdf) links to captioned or named literal blocks
...
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
2016-04-10 20:45:59 +02:00
shimizukawa
b1a23817fc
Merge with 'stable'
2016-01-24 13:47:51 +09:00
shimizukawa
0f2e62db24
Fix #2253 : `:pyobject:
option of
literalinclude
` directive can't detect indented body block when the block starts with blank or comment lines.
2016-01-20 22:50:59 +09:00
Takeshi KOMIYA
e4b9eb51f6
Merge branch 'stable'
2016-01-11 00:27:26 +09:00
shimizukawa
39e403b8ac
fix testing for text builder that generate _build/text/_build/text/_build/... recursive directories because *.txt in _build/text previously generated was detected as source file.
2016-01-09 15:35:56 +09:00
Takeshi KOMIYA
4234c88f21
Fix #2113 : Allow `:class:
` option to code-block directive
2015-12-20 22:44:32 +09:00
Takeshi KOMIYA
64d2f22eb4
Fix #1790 literalinclude strips empty lines at the head and tail
2015-04-02 14:48:14 +09:00
Takeshi KOMIYA
aa66e7860b
Fix #1789 :pyobject:
option of literalinclude
directive includes following lines after definitions
2015-04-02 14:47:51 +09:00
Takeshi KOMIYA
0b60eafe0e
Fix #1790 literalinclude strips empty lines at the head and tail
2015-03-31 11:32:01 +09:00
Takeshi KOMIYA
0215b1fb10
Fix #1789 :pyobject:
option of literalinclude
directive includes following lines after definitions
2015-03-31 10:21:36 +09:00
Jeppe Pihl
0b0cf82a75
fixed bugs, and extended unit test to catch them again if they reappear
2014-10-06 10:58:03 +02:00
Jeppe Pihl
dc3d0b6ca1
added test .rst files
2014-10-04 17:49:37 +02:00
tk0miya
3ad1f1c164
Merge with default
2014-09-24 00:43:47 +09:00
Georg Brandl
d47a7587f9
Complete test suite overhaul.
...
* 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
2014-09-21 17:17:02 +02:00
tk0miya
d076452199
do nested_parse() :caption: of code-block directive
2014-09-19 12:04:25 +09:00
tk0miya
3e1667290b
Rename :filename: option of code-block directive to :caption:
2014-08-11 22:36:31 +09:00
Takayuki Shimizukawa
d39327d539
* for pull request #258 : update CHANGES, add tests, add a document and refactoring.
2014-08-10 23:03:02 +09:00