Adam Turner
49d8304670
Start using `pathlib.Path
and deprecate
sphinx.testing.path
` ( #11526 )
2023-07-28 00:39:12 +01:00
Adam Turner
f4ab9adf77
Move XML Name pattern to `epub3
`
2023-01-03 22:36:54 +00:00
Adam Turner
8c5e7013ea
Move console output utilities to `sphinx.util.display
`
...
- Merge `old_status_iterator` into ``status_iterator``.
``old_status_iterator`` was deprecated in version 1.6.
2023-01-03 18:37:20 +00:00
Adam Turner
5775912455
Collapse single line docstrings
2022-02-20 03:13:45 +00:00
Adam Turner
6bb7b891a1
Remove copyright and licence fields
2022-02-20 03:06:23 +00:00
Adam Turner
5694e0ce60
Fix module docstring indentation
2022-02-20 00:35:13 +00:00
Adam Turner
4f5a3269a6
Fix module docstring first line
2022-02-20 00:11:08 +00:00
Adam Turner
6b8bccec59
Remove module titles in docstrings
2022-02-19 23:17:29 +00:00
Takeshi KOMIYA
b84771dcd2
A happy new year!
2022-01-01 18:45:03 +09:00
Takeshi KOMIYA
f996859420
A happy new year!
...
.. 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
2021-01-01 13:40:48 +09:00
Takeshi KOMIYA
21a3bd4127
refactor: Fix flake8 violations under tests/ directory
2020-11-15 17:15:40 +09:00
François Freitag
0949735210
Sort imports with isort
...
Keep imports alphabetically sorted and their order homogeneous across
Python source files.
The isort project has more feature and is more active than the
flake8-import-order plugin.
Most issues caught were simply import ordering from the same module.
Where imports were purposefully placed out of order, tag with
isort:skip.
2020-11-11 13:19:05 +01:00
Takeshi KOMIYA
a70c76c474
Remove a testcase for get_module_source() (deprecated)
2020-02-16 20:40:15 +09:00
Takeshi KOMIYA
eaf495c3c4
A happy new year!
2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
e8195d24c7
Merge pull request #6143 from tk0miya/6140_unittest.mock
...
Fix #6140 : Use unittest.mock instead of mock
2019-03-08 00:56:45 +09:00
Takeshi KOMIYA
c83f2a0272
Fix #6140 : Use unittest.mock instead of mock
2019-03-08 00:27:45 +09:00
Takeshi KOMIYA
3a0a9f659e
refactor: import_object() allows to import nested objects (ex. nested class)
2019-02-27 23:17:49 +09:00
Takeshi KOMIYA
c5f20a9046
progress_message() supports a skip
2019-01-19 20:48:21 +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
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
Takeshi KOMIYA
c6bd84a614
refactor: Remove u-prefix from strings
2018-12-16 21:28:51 +09:00
Takeshi KOMIYA
e789080b54
refactor: Drop six.PY2
2018-12-15 20:08:39 +09:00
Takeshi KOMIYA
28add225f2
Merge branch '1.8'
2018-12-02 22:26:12 +09:00
Takeshi KOMIYA
3808405b50
Fix #5659 : linkcheck: crashes for a hyperlink containing multibyte character
2018-11-25 01:37:32 +09:00
Takeshi KOMIYA
4761e70c37
Merge branch '1.8'
2018-11-22 22:14:32 +09:00
Jon Dufresne
77849f0ef6
Simplify ensuredir() with Python3 stdlib features
...
- Simplify ensuredir() to equivalent os.makedir(name, exist_ok=True)
- Do not check if a directory exists before calling
ensuredir() (ensuredir() already handles it)
- Add exist_ok argument to path.makedirs() to follow same pattern
- Drop unnecessary .exists() check immediately before .isdir()
- Add tests for ensuredir
2018-11-20 18:37:05 -08:00
Takeshi KOMIYA
33a60ee80e
Fix #5614 : autodoc: incremental build is broken when builtin modules are imported
2018-11-13 01:05:13 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
f1f6ca8cc9
Merge branch 'happy_new_year' into master
2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
a9efb2517a
Fix flake8 violations
2017-12-23 21:21:21 +09:00
Takeshi KOMIYA
07c5348a56
Add test_io.py
2017-12-12 18:24:53 +09:00
Yoshiki Shibukawa
f0766ce4cd
fix #3840 : epub_uid should be XML Name
2017-06-30 23:37:32 +09:00
shimizukawa
d497d74370
refs #3458 : add sphinx.testing that are moved from /tests directory.
2017-05-14 20:47:15 +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
Takeshi KOMIYA
5bfdc6ae4f
Show warning if :lines: and :emphasize-lines: get out of range
2017-02-21 13:27:37 +09:00
Takeshi KOMIYA
f1d4248eea
parselinenos() raises out of range error
2017-02-13 00:04:28 +09:00
Takeshi KOMIYA
f562af06b2
parselinenos() raise errors for "10-1" range
2017-02-12 22:19:18 +09:00
Takeshi KOMIYA
ef1f587344
Merge branch 'stable'
2017-02-12 21:52:20 +09:00
Takeshi KOMIYA
929e67ffca
Fix parselinenos() could not parse left half open range (cf. "-4")
2017-02-12 00:09:04 +09:00
Takeshi KOMIYA
8f4379ef91
Add testcase for parselinenos
2017-02-12 00:05:27 +09:00
Takeshi KOMIYA
929683df27
Sphinx.status_iterator() is now deprecated
2017-01-07 18:43:32 +09:00
Junpei Kawamoto
df37a05420
Update the regex in util.split_docinfo so that it parses multi-line field bodies.
...
Field Lists, which are used to define docinfo, allow multi-line field bodies,
but util.split_docinfo didn't consider it.
This commit updates the regex in that function so that it parses such multi-line field bodies.
2016-12-02 23:39:12 -05:00
Takeshi KOMIYA
9ed3d51826
Fix #1944 : rst_prolog breaks file-wide metadata
2016-01-24 17:32:42 +09:00
Georg Brandl
46d7e8558e
Obligatory copyright update.
2016-01-14 22:54:04 +01:00
shimizukawa
d33b32323f
95 chars in line. It was warned by make check
.
2016-01-12 23:53:45 +09:00
Takeshi KOMIYA
9669f2a48b
Fix #2171 : cannot linkcheck url with unicode
2015-12-19 22:58:53 +09:00
Takeshi KOMIYA
788c0ebffc
Add testcase for encoding URIs in linkcheck builder
2015-12-19 22:49:14 +09:00