Takeshi KOMIYA
6ca669295c
Close #1851 : Allow to omit an argument for code-block directive
2019-02-04 01:50:44 +09:00
Takeshi KOMIYA
68c90a26f1
quickstart: Simplify generated conf.py (for latex)
2019-01-07 23:06:14 +09:00
Takeshi KOMIYA
c4c878303f
encoding keyword for path.text() and path.write_text() is no longer needed
2019-01-03 10:58:07 +09:00
Takeshi KOMIYA
5428d94d24
Remove coding magic comments from tests
2019-01-02 21:53:07 +09:00
Takeshi KOMIYA
76e9f57c2e
Merge branch '1.8'
2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75
A happy new year!
2019-01-02 16:00:30 +09:00
Takeshi KOMIYA
d8b69c7f98
Merge pull request #5819 from jdufresne/coding-comment
...
Remove unnecessary encoding cookie from Python source files
2018-12-17 19:15:00 +09:00
Jon Dufresne
e9c87b3d13
Fix invalid escape sequence in test_directive_code.py
...
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'
2018-12-17 11:11:41 +01:00
Jon Dufresne
d210da96f6
Fix invalid escape sequence in test_directive_code.py
...
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'
2018-12-16 13:37:47 -08:00
Jon Dufresne
bade33c7e4
Remove unnecessary encoding cookie from Python source files
...
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.
2018-12-16 12:22:12 -08:00
jfbu
30ec4b6bba
Merge branch '1.8'
2018-12-16 18:34:05 +01:00
jfbu
88a019dc99
LaTeX: allow sphinxVerbatim usage without explicit "hllines" extra setup
...
Fixes : #5810
2018-12-16 16:54:28 +01:00
Takeshi KOMIYA
c6bd84a614
refactor: Remove u-prefix from strings
2018-12-16 21:28:51 +09:00
Takeshi KOMIYA
ba83214386
Refactor: Add Config.read() as a constructor
...
To simplify Config.__init__() method, this separates conf.py parsing
feature to Config.read() method.
This allows to instantiate config object simply.
2018-03-23 23:40:28 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
jfbu
70f8d4ddfc
Support `:emphasize-lines:
` in PDF output ( closes #1238 )
2017-12-10 12:37:36 +01:00
Andy Neebel
f68c108f10
Mark tests as xfail/skip to allow successful run
2017-06-14 13:27:31 -05:00
shimizukawa
d497d74370
refs #3458 : add sphinx.testing that are moved from /tests directory.
2017-05-14 20:47:15 +09:00
Takeshi KOMIYA
56d3458584
Fix flake8 violations
2017-05-09 21:57:36 +09:00
Takeshi KOMIYA
1dea386bc4
Fix #3108 : Show warning if :start-at: and other literalinclude options does not match to the text
2017-03-26 18:13:50 +09:00
Takeshi KOMIYA
8f9dd64992
Merge branch 'stable'
2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042
Year++
2017-03-26 11:49:34 +09:00
Ray Lehtiniemi
06b6e07b98
Add tests
...
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-11 13:40:47 -07:00
Takeshi KOMIYA
675b5f4237
literalinclude directive allows combination of :pyobject: and :lines:
2017-02-22 00:29:24 +09:00
Takeshi KOMIYA
6b29792994
Fix typo
2017-02-18 22:43:27 +09:00
Takeshi KOMIYA
ce5d506fc4
Add testcases
2017-02-18 14:49:56 +09: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
88b84a532f
Add testcase for :lineno-match: option
2017-02-17 23:36:12 +09:00
Jean-François B
32817f9efa
Merge pull request #3413 from jfbu/literalincludelines
...
If ``:start-after:`` is used, make ``:lines:`` relative (close : #3412 )
2017-02-17 09:00:40 +01:00
Takeshi KOMIYA
e1da72b59c
Reduce DeprecationWarnings for regexp
2017-02-17 02:01:04 +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
cf2061dfad
Fix flake8 violations
2017-01-26 01:13:17 +09:00
shimizukawa
baaef9146d
pytest: remove deprecated with_app decorator functions
2017-01-06 01:14:47 +09:00
Takeshi KOMIYA
9fc53cecf7
Reduce deprecation warnings (refs: #3192 )
2016-12-15 17:15:49 +09:00
jfbu
2e9ee59ee9
fix tests for latex build
2016-12-08 21:43:04 +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
Ville Skyttä
7cfbc2a702
Fix style checks
2016-07-07 16:48:12 +03:00
jfbu
01f1696d9b
Remove usage by sphinx.sty of latex package newfloat.sty
2016-06-19 16:22:49 +02:00
jfbu
b3d8961ca8
Enhance latex text styling customizability
2016-06-17 19:48:52 +02:00
jfbu
c2d417a032
Rename SphinxVerbatim to sphinxVerbatim for latex output
2016-06-15 18:34:00 +02:00
jfbu
2cec5a25b2
Merge branch 'stable'
...
Conflicts:
sphinx/domains/cpp.py
sphinx/texinputs/sphinx.sty
tests/test_build_latex.py
2016-06-15 18:29:58 +02:00
jfbu
5510653d6e
Fix #2629 . Add new config option `latex_keep_old_macro_names
`
...
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.
2016-06-15 08:53:24 +02:00
Takeshi KOMIYA
88c026d0bd
Merge branch 'stable'
2016-06-12 00:42:47 +09:00
Takeshi KOMIYA
80921b2ab8
Fix flake8 violation under tests/
2016-06-12 00:02:11 +09:00