summaryrefslogtreecommitdiff
path: root/tests/test_directive_code.py
Commit message (Collapse)AuthorAgeFilesLines
* html: html_codeblock_linenos_style defaults to 'inline' (refs: #7849)Takeshi KOMIYA2021-01-261-75/+19
| | | | | | As discussed in #7879, the default style of line numbers for code blocks in HTML output becames 'inline' by default. And 'table' style is now deprecated and will be removed in Sphinx-6.0.
* Fix #2030: automatic dedent support in code-block directiveTakeshi KOMIYA2021-01-131-0/+8
|
* 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-13/+13
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Fix #6887: Sphinx crashes with docutils-0.16b0Takeshi KOMIYA2019-12-141-1/+1
|
* Fix #6742: end-before option of literalinclude skips first lineTakeshi KOMIYA2019-10-281-0/+8
|
* Fix flake8 violationsTakeshi KOMIYA2019-07-011-1/+1
|
* Add :force: option to code directivesTakeshi KOMIYA2019-06-011-0/+6
|
* test: verify linenothreshold usageJames Knight2019-02-161-0/+49
| | | | | | | | | | | | 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/+13
|
* quickstart: Simplify generated conf.py (for latex)Takeshi KOMIYA2019-01-071-6/+6
|
* encoding keyword for path.text() and path.write_text() is no longer neededTakeshi KOMIYA2019-01-031-10/+10
|
* Remove coding magic comments from testsTakeshi KOMIYA2019-01-021-24/+21
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
| * Fix invalid escape sequence in test_directive_code.pyJon Dufresne2018-12-171-1/+1
| | | | | | | | | | | | | | | | Fixes error when running tests: tests/test_directive_code.py:359 sphinx/tests/test_directive_code.py:359: DeprecationWarning: invalid escape sequence \s includes = '\\end{sphinxVerbatim}\n\sphinxresetverbatimhllines\n'
* | Merge pull request #5819 from jdufresne/coding-commentTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove unnecessary encoding cookie from Python source files
| * | 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.
* | | Fix invalid escape sequence in test_directive_code.pyJon Dufresne2018-12-161-1/+1
|/ / | | | | | | | | | | | | | | Fixes error when running tests: tests/test_directive_code.py:359 sphinx/tests/test_directive_code.py:359: DeprecationWarning: invalid escape sequence \s includes = '\\end{sphinxVerbatim}\n\sphinxresetverbatimhllines\n'
* | Merge branch '1.8'jfbu2018-12-161-0/+2
|\ \ | |/
| * LaTeX: allow sphinxVerbatim usage without explicit "hllines" extra setupjfbu2018-12-161-0/+2
| | | | | | | | Fixes: #5810
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-20/+20
|/
* Refactor: Add Config.read() as a constructorTakeshi KOMIYA2018-03-231-1/+1
| | | | | | To simplify Config.__init__() method, this separates conf.py parsing feature to Config.read() method. This allows to instantiate config object simply.
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-1/+2
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Support ``:emphasize-lines:`` in PDF output (closes #1238)jfbu2017-12-101-0/+8
|
* Mark tests as xfail/skip to allow successful runAndy Neebel2017-06-141-0/+19
|
* refs #3458: add sphinx.testing that are moved from /tests directory.shimizukawa2017-05-141-56/+65
|
* Fix flake8 violationsTakeshi KOMIYA2017-05-091-1/+0
|
* Fix #3108: Show warning if :start-at: and other literalinclude options does ↵Takeshi KOMIYA2017-03-261-0/+22
| | | | not match to the text
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Add testsRay Lehtiniemi2017-03-111-0/+42
| | | | | | | | Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
* | 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