Bénédikt Tran
5fe0bd41eb
Strip ANSI control codes when writing to the warnings file ( #11624 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-09-21 10:01:07 +01:00
Adam Turner
177565584a
Tighten Pytest configuration ( #11577 )
2023-08-10 20:48:04 +01:00
Adam Turner
49d8304670
Start using `pathlib.Path
and deprecate
sphinx.testing.path
` ( #11526 )
2023-07-28 00:39:12 +01:00
Adam Turner
f6435a9bc3
Prefer `@pytest.fixture()
`
2023-02-18 01:58:05 +00:00
Adam Turner
7649eb1505
Clean up after dropping Python 3.6
2022-09-27 18:31:47 +01:00
Takeshi KOMIYA
7e68154e49
Drop python 3.6 support ( #10468 )
2022-06-16 19:33:55 +01:00
Adam Turner
4674cc11c8
.write_text(...)
-> .write_text(..., encoding='utf8')
2022-04-27 03:11:08 +01:00
Adam Turner
24e3b7c8c8
.read_text()
-> .read_text(encoding='utf8')
2022-04-27 03:04:19 +01: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
5e8f814e81
Merge branch '3.x'
2021-03-20 23:25:57 +09:00
Takeshi KOMIYA
a19250b46e
Fix #8959 : using UNIX path separator confuses Sphinx on Windows
...
The first element of env.relfn2path() should be a POSIX path, not a OS
dependent path.
2021-03-20 01:32:47 +09:00
Takeshi KOMIYA
3059a999b2
Close #8326 : Rename master_doc to root_doc
...
To describe the purpose more accurately, the `master_doc` is now renamed
to `root_doc`. The old name is still available. But it is recommeneded
to use new one from now on.
2021-02-28 17:10:57 +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
9a9d7f3f00
test: Add comment for UnicodeEncodeError handler (refs: #8512 )
2020-12-20 01:01:59 +09:00
Jeremy Maitin-Shepard
d737ecd063
Fix nonascii_srcdir to work when non-ascii directories aren't supported
...
Previously, the nonascii_srcdir in tests/test_build.py contained some
logic to attempt to handle the case where non-ascii directories aren't
supported, but it did not actually work because it fails to copy the
test sources to the temporary directory.
With this commit, the following test invocation, which previously
failed, now pases:
LANG=en_US.iso8859-1 python -m pytest test_build.py
2020-11-30 13:13:01 -08:00
Takeshi KOMIYA
4dd8b1022f
test: Use read_text() and read_bytes()
2020-02-01 11:58:51 +09:00
Takeshi KOMIYA
eaf495c3c4
A happy new year!
2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
d7024fe996
Merge branch '1.8' into 2.0
2019-03-09 18:12:33 +09:00
Takeshi KOMIYA
65970a3033
Fix #6140 : Use unittest.mock instead of mock
2019-03-09 15:16:04 +09:00
Martin Packman
71dec3b38e
Fix UnboundLocalError when building changes
...
Split testing of changes builder to its own test file and root.
Improve coverage a little, and add case that fails if a module
directive is included in the rst source.
Correctly handle changesets with a module declared.
Fixes https://github.com/sphinx-doc/sphinx/issues/6134
2019-03-08 13:30:27 +00:00
Takeshi KOMIYA
1ca210aab1
Separate json and pickle to sphinxcontrib package
2019-02-17 22:31:50 +09:00
Takeshi KOMIYA
90bf81bd37
test: Use get_doctree() to load doctree files
2019-02-17 20:27:48 +09:00
Takeshi KOMIYA
3b49f9fe3d
Separate htmlhelp to sphinxcontrib package
2019-02-15 01:44:32 +09:00
Takeshi KOMIYA
c4397318d3
Separate applehelp to sphinxcontrib package
2019-02-06 00:44:37 +09:00
Takeshi KOMIYA
6be9d2a08e
Separate qthelp to sphinxcontrib package
2019-01-19 16:34:06 +09:00
Takeshi KOMIYA
114ff77f68
test: Omit master_doc settings from testcases
2019-01-03 10:58:42 +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
973c3ffa25
Merge branch 'master' into change_master_doc_to_index
2018-09-29 21:12:40 +09:00
Takeshi KOMIYA
b18fe13f55
Drop branches for sys.version_info < (3, 4)
2018-09-22 16:31:07 +09:00
Takeshi KOMIYA
abcb5bd5ec
The default setting for master_doc is changed to 'index'
2018-09-04 01:14:16 +09:00
Takeshi KOMIYA
63f6603297
Merge pull request #4651 from tk0miya/fix_flake8_violations
...
Fix flake8 violations
2018-02-19 23:57:00 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
2523979d26
test: Run epubcheck as a testing
2018-02-19 00:27:45 +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
5bc5b8f013
Merge branch 'stable'
2017-12-16 00:53:55 +09:00
Takeshi KOMIYA
c250c63daa
test: Skip some builders on test_build_all
2017-12-15 21:15:04 +09:00
Takeshi KOMIYA
e57fb74ee5
Merge branch 'stable'
2017-06-25 01:48:23 +09:00
Andy Neebel
bcea04a2f7
Move assignment of srcdir to the right place
2017-06-17 07:49:45 -05:00
Andy Neebel
e51b3c41ea
Bad imports failed on travis and circle
2017-06-14 16:37:22 -05:00
Andy Neebel
c1a6579eb6
XFAIL some tests, 2.7 and Win32 can't use unicode path
2017-06-14 13:27:30 -05:00