Commit Graph

11663 Commits

Author SHA1 Message Date
Takeshi KOMIYA
c8b6928300
Merge pull request #5424 from tk0miya/5421_warning_for_autodoc_default_flags
Fix #5421: autodoc emits deprecation warning for :confval:`autodoc_default_flags`
2018-09-14 10:00:20 +09:00
Takeshi KOMIYA
aa69231bc7
Merge branch '1.8' into 5421_warning_for_autodoc_default_flags 2018-09-14 02:06:29 +09:00
Takeshi KOMIYA
e0570ab10e
Merge pull request #5425 from tk0miya/5418_incorrect_doctreedir
Fix #5418: Incorrect default path for sphinx-build -d/doctrees files
2018-09-14 02:05:36 +09:00
Takeshi KOMIYA
2e9d311ad5
Merge pull request #5420 from akaihola/patch-1
Add missing author
2018-09-13 22:45:36 +09:00
Takeshi KOMIYA
d7dca264f4 Fix #5418: Incorrect default path for sphinx-build -d/doctrees files 2018-09-13 22:30:13 +09:00
Takeshi KOMIYA
21d92b440a Fix #5421: autodoc emits deprecation warning for :confval:autodoc_default_flags 2018-09-13 21:58:36 +09:00
Antti Kaihola
33cf3e3688
Add missing author
I forgot to update `AUTHORS` in #5307.
2018-09-13 09:30:48 +03:00
Takeshi KOMIYA
efdc95ef8b Merge branch '1.8' 2018-09-13 00:53:09 +09:00
Takeshi KOMIYA
fa81b67141 Bump version 2018-09-13 00:51:56 +09:00
Takeshi KOMIYA
16533cff9a Bump to 1.8.0 final 2018-09-13 00:48:58 +09:00
Takeshi KOMIYA
46a1f4ef38 Update message catalogs 2018-09-13 00:46:02 +09:00
Jon Dufresne
490e4aed41 Remove unnecessary object from class definitions
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Jon Dufresne
2f14c36a8e Remove use of six.class_types
In Python 3, type is the only class type.
2018-09-11 06:22:34 -07:00
Jon Dufresne
0d6be504ea Remove use of six.iteritems()
In Python 3, dict.items() is always an iterator.
2018-09-11 06:03:34 -07:00
Jon Dufresne
02fea029bf Prefer builtin open() over io.open() and codecs.open()
In Python3, the functions io.open() is an alias of the builtin open()
and codecs.open() is functionally equivalent. To reduce indirection,
number of imports, and number of patterns, always prefer the builtin.

https://docs.python.org/3/library/io.html#high-level-module-interface

> io.open()
>
> This is an alias for the builtin open() function.
2018-09-11 05:45:36 -07:00
shimizukawa
844a3a5c22 add books written with using Sphin 2018-09-10 23:45:06 +09:00
Takayuki SHIMIZUKAWA
e23ede82f3
Merge pull request #5408 from sphinx-doc/shibukawa-patch-1
Update EXAMPLES to add books
2018-09-10 23:42:54 +09:00
Yoshiki Shibukawa
e2544cfd34
Update EXAMPLES 2018-09-10 23:02:54 +09:00
Yoshiki Shibukawa
22c9e92019
Update EXAMPLES 2018-09-10 23:00:58 +09:00
Yoshiki Shibukawa
c9d6c4bca5
Update EXAMPLES
Add my books that were written by Sphinx
2018-09-10 21:50:06 +09:00
Takeshi KOMIYA
c57853923f
Merge pull request #5393 from tk0miya/refactor_app
refactor: Check primary_domain on config-inited event
2018-09-10 20:46:26 +09:00
Takeshi KOMIYA
d9c308a299
Merge pull request #5406 from jdufresne/bytes-type
Correct some unicode/str types to bytes
2018-09-10 20:45:34 +09:00
Takeshi KOMIYA
b2b833d39e Update CHANGES for PR #5403 2018-09-10 20:45:16 +09:00
Takeshi KOMIYA
908f3a2fcb
Merge pull request #5403 from jdufresne/unused-content
Remove unused argument, content, from guess_mimetype
2018-09-10 20:43:24 +09:00
Takeshi KOMIYA
4e48019b90
Merge pull request #5402 from jdufresne/getcwdu
Remove use of Python 2 os.getcwdu()
2018-09-10 20:42:08 +09:00
Takeshi KOMIYA
caeaea9028
Merge pull request #5401 from jdufresne/message
Fix AttributeError in ExtensionError
2018-09-10 20:40:47 +09:00
Jon Dufresne
38709af87b Correct some unicode/str types to bytes
More explicit and more forward compatible with Python 3.
2018-09-09 15:08:44 -07:00
Jon Dufresne
e6e6d91d55 Deprecate unused argument, content, from guess_mimetype
Unused since its introduction in
be261ed71e.
2018-09-09 12:23:36 -07:00
Jon Dufresne
9d6deec4ca Fix AttributeError in ExtensionError
In Python 3, the attribute BaseException.message doesn't exist.

$ python3
>>> from sphinx.errors import ExtensionError
>>> e = ExtensionError('foo')
>>> repr(e)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sphinx/sphinx/errors.py", line 65, in __repr__
    return '%s(%r)' % (self.__class__.__name__, self.message)
AttributeError: 'ExtensionError' object has no attribute 'message'
2018-09-09 11:50:56 -07:00
Jon Dufresne
1d11a297a3 Remove use of Python 2 os.getcwdu()
os.getcwdu() is Python 2 only. It was removed from Python 3. As Sphinx
is now Python 3 only, can remove the workaround.

$ python2 -c 'import os; print(os.getcwdu)'
<built-in function getcwdu>
$ python3 -c 'import os; print(os.getcwdu)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'os' has no attribute 'getcwdu'

sphinx.util.osutil.getcwd() is now deprecated for removal.
2018-09-09 11:36:34 -07:00
Takeshi KOMIYA
cf707ac46f Revert translations on zh_CN because of broken 2018-09-09 20:44:39 +09:00
Takeshi KOMIYA
eeba8f339f Update message catalogs (from transifex) 2018-09-09 20:40:33 +09:00
Takeshi KOMIYA
ffaa528c98
Merge pull request #5390 from tk0miya/4018_htmlhelp_file_suffix
Fix #4018: htmlhelp: Add htmlhelp_file_suffix and htmlhelp_link_suffix
2018-09-09 19:35:49 +09:00
Takeshi KOMIYA
02afc357ef Merge branch '1.8' 2018-09-09 19:26:48 +09:00
Takeshi KOMIYA
d1eecb1307 Merge branch '1.7' into 1.8 2018-09-09 19:22:35 +09:00
Takeshi KOMIYA
189072dbc9
Merge pull request #5404 from tk0miya/test_DO_EPUBCHECK
Add $DO_EPUBCHECK envvar as a workaround for #4611
2018-09-09 19:21:49 +09:00
Takeshi KOMIYA
973986cfdb Add $DO_EPUBCHECK envvar as a workaround for #4611 2018-09-09 19:09:56 +09:00
Takeshi KOMIYA
578adb887f
Merge pull request #5400 from tk0miya/5399_find_catalog_crashes
Fix #5399: Sphinx crashes if unknown po file exists
2018-09-09 18:38:21 +09:00
Takeshi KOMIYA
85d954cb96
Merge pull request #5396 from jdufresne/tox-pypy
Remove pypy from tox.ini
2018-09-09 17:18:55 +09:00
Takeshi KOMIYA
07fd1c0680 Fix #4018: htmlhelp: Add htmlhelp_file_suffix and htmlhelp_link_suffix 2018-09-08 23:11:14 +09:00
Takeshi KOMIYA
02b763bc71 refactor: Check primary_domain on config-inited event 2018-09-08 22:47:45 +09:00
Takeshi KOMIYA
8e729b419e Fix #5399: Sphinx crashes if unknown po file exists 2018-09-08 22:21:59 +09:00
Takeshi KOMIYA
0970619813
Merge pull request #5392 from tk0miya/5290_support_egged_source_code
Fix #5290: autodoc: failed to analyze source code in egg package
2018-09-08 22:15:14 +09:00
Jon Dufresne
b36cc52c7d Remove pypy from tox.ini
The pypy executable is Python 2 and Python 2 support was dropped in
commit 9412bd76b7.
2018-09-07 16:15:20 -07:00
Takeshi KOMIYA
35e1764025 Fix #5290: autodoc: failed to analyze source code in egg package 2018-09-06 22:22:01 +09:00
Takeshi KOMIYA
888eea2944
Merge pull request #5378 from tk0miya/5127_quickstart_should_not_overwrite_Makefiles
Fix #5127: quickstart: ``Makefile`` and ``make.bat`` are not overwritten if exists
2018-09-06 22:19:50 +09:00
Takeshi KOMIYA
d9694befae
Merge branch '1.8' into 5127_quickstart_should_not_overwrite_Makefiles 2018-09-06 21:35:55 +09:00
Takeshi KOMIYA
dfbf90a128
Merge pull request #5375 from tk0miya/5362_apidoc_toc
Fix #5362: apidoc: Add ``--toc`` option to change the filename of ToC
2018-09-06 21:33:19 +09:00
Takeshi KOMIYA
86abb57577 Fix #5362: apidoc: Add `--toc` option to change the filename of ToC 2018-09-06 18:29:44 +09:00
Takeshi KOMIYA
4abc55239a
Merge pull request #5377 from tk0miya/4034_fix_download_url2
Fix #2720, #4034: Incorrect links with ``:download:``, duplicate names, and parallel builds
2018-09-06 18:24:42 +09:00