Commit Graph

5523 Commits

Author SHA1 Message Date
Gregory Szorc
c9aae7210b Introduce FileAvoidWrite class
Sphinx relies on file mtimes to determine whether operations such as
source reading need to occur.

When tools like sphinx-apidoc run, they blindly write files, updating the
mtime of files, even if the final file content does not change.

In this patch, we introduce a FileAvoidWrite class that can be used to
only write files if content has changed. This opens the door to less
cache invalidation via mtime changes and thus better performance. This
will be realized in a subsequent commit.
2015-06-02 10:00:12 -07:00
Jakob Lykke Andersen
6b8f29bb45 C++, fixes sphinx-doc/sphinx#1913 2015-05-30 09:56:32 +02:00
Rob Ruana
048f54f2b0 Closes #1904: [Napoleon] parses restructuredtext references in fields/params BEFORE splitting on colon 2015-05-27 10:58:26 -07:00
Georg Brandl
2710d8e5b2 Merge branch 'stable' 2015-05-18 14:48:06 +02:00
Georg Brandl
4dc132f1ea special exception for rst2pdf.pdfbuilder, we know it is safe 2015-05-18 14:47:49 +02:00
Georg Brandl
c25eb6ecd1 Merge branch 'stable' 2015-05-18 14:34:52 +02:00
Georg Brandl
16e309f489 Add compatibility default.css. 2015-05-18 14:32:00 +02:00
Georg Brandl
c6b99be46c fix some over-broad except: clauses 2015-05-18 14:29:02 +02:00
Georg Brandl
55368daa91 merge with stable 2015-05-18 14:26:44 +02:00
Georg Brandl
034c4e9424 theming: do not warn if theme is "default"
To be compatible with old Sphinx versions we have to use "default".
2015-05-18 14:25:20 +02:00
Takeshi KOMIYA
c475b1eb6b Set version number as "unknwon" for extensions which do not support metadata 2015-05-17 16:37:58 +09:00
Takeshi KOMIYA
ccd393734e Fix a crash when setting up extensions which do not support metadata 2015-05-17 15:56:10 +09:00
Georg Brandl
be444beddf Merge pull request #1890 from jean/master
Some language edits while reading
2015-05-15 08:52:24 +02:00
Jean Jordaan
56c51ff4b0 Some language edits while reading 2015-05-15 13:18:19 +08:00
Robert Lehmann
32b0a0da2b Merge pull request #1889 from tacaswell/fix_syntax_error_onpy35
FIX : fix syntax error in python 3.5
2015-05-14 12:37:16 +02:00
Thomas A Caswell
ae62e226c8 FIX : fix syntax error in python 3.5
Be explicit about grouping between `**` in call and the
`or` expression.
2015-05-12 23:39:24 -04:00
Rob Ruana
42f2b30579 Closes #1831: [Napoleon] Makes google type regex greedy to consume entire type, even if it contains colons 2015-05-03 16:30:40 -07:00
Rob Ruana
568f91d1bf Closes #1831: [Napoleon] Makes google type regex greedy to consume entire type, even if it contains colons 2015-05-03 16:28:39 -07:00
shimizukawa
2ee54dfd0b add make.bat for sphinx/doc 2015-04-06 14:18:28 +09:00
shimizukawa
1f65b8354e refactoring. path.abspath will call path.normpath. 2015-04-05 19:11:38 +09:00
shimizukawa
5a3fcea4b6 Fixes #1823: '.' as <module_path> for sphinx-apidoc cause an unfriendly error. Now '.' is converted to absolute path automatically. 2015-04-05 19:05:26 +09:00
shimizukawa
6c1ba34614 Fixes #1834: compatibility for docutils-0.13: handle_io_errors keyword argument for docutils.io.FileInput cause TypeError.
The argument is already deprecated and no effects from docutils-0.10.
2015-04-05 18:22:15 +09:00
shimizukawa
ccd7e73c19 Fix #1794: custom theme extended from alabaster or sphinx_rtd_theme can't find base theme. 2015-04-05 15:28:35 +09:00
Rob Ruana
80eb821ec8 Closes #1831: [Napoleon] If name is not found in NumPy Doc Returns section, regard the whole line as the type 2015-04-03 21:34:23 -04:00
Rob Ruana
9d2ec40d8b Closes #1831: [Napoleon] If name is not found in NumPy Doc Returns section, regard the whole line as the type 2015-04-03 21:32:05 -04:00
Takeshi KOMIYA
64d2f22eb4 Fix #1790 literalinclude strips empty lines at the head and tail 2015-04-02 14:48:14 +09:00
Takeshi KOMIYA
aa66e7860b Fix #1789 :pyobject: option of literalinclude directive includes following lines after definitions 2015-04-02 14:47:51 +09:00
Takeshi KOMIYA
0b60eafe0e Fix #1790 literalinclude strips empty lines at the head and tail 2015-03-31 11:32:01 +09:00
Takeshi KOMIYA
0215b1fb10 Fix #1789 :pyobject: option of literalinclude directive includes following lines after definitions 2015-03-31 10:21:36 +09:00
Takayuki SHIMIZUKAWA
629961ebfe Merge pull request #1802 from pjxiao/feature-1794
include builtin thmemes automatically #1794
2015-03-23 22:09:08 +09:00
Takayuki Hirai
974585d4d6 include builtin thmemes automatically #1794 2015-03-23 19:09:40 +09:00
Jakob Lykke Andersen
f6bcb6e414 Merge pull request #1795 from meisterluk/meisterluk/typo
Doc typo: speicifer -> specifier
2015-03-22 12:14:47 +01:00
Lukas Prokop
82345f5c11 speicifer -> specifier 2015-03-22 11:28:25 +01:00
shimizukawa
11f9b5ff20 Fix #1788: graphviz extension raises exception when caption option is present 2015-03-21 11:53:24 +09:00
shimizukawa
1c32a0fc3e Bump version 2015-03-17 18:28:24 +09:00
shimizukawa
e2da583be8 Merge branch 'stable'
Conflicts:
	CHANGES
	sphinx/__init__.py
2015-03-17 18:26:27 +09:00
shimizukawa
a4083dde29 Bump to 1.3.1 final v1.3.1 2015-03-17 14:30:11 +09:00
shimizukawa
085bcfa518 refs #1781: Setting html_domain_indices to a list raises a type check warnings. 2015-03-17 07:34:26 +09:00
shimizukawa
8fb6516256 fix typo. 2015-03-17 07:32:31 +09:00
shimizukawa
bd22185cf9 update CHANGES refs #1783 2015-03-17 07:32:30 +09:00
Takayuki SHIMIZUKAWA
3c32e43985 Merge pull request #1783 from jenshnielsen/unicode_all
Autodoc: Python2 Allow unicode string in __all__
2015-03-17 07:29:36 +09:00
Jens Hedegaard Nielsen
efd1fefc0b Autodoc: Python2 Allow unicode string in __all__ 2015-03-16 19:34:55 +00:00
shimizukawa
dbfc72a451 refactoring: move i18n related function from osutil into i18n 2015-03-16 23:11:23 +09:00
shimizukawa
d699b1d326 rename function name to avoid ambiguous 2015-03-16 23:06:54 +09:00
shimizukawa
30d6d72f47 Fixed #1771: automated .mo building doesn't work properly with template translation: sphinx-build will load sphinx.mo file to initialize template-bridge before compiling sphinx.po file. 2015-03-16 23:01:16 +09:00
shimizukawa
ef3a1f7b2e Fixed #1771: automated .mo building doesn't work properly with:
* `gettext_compact=True` in conf.py
* `sphinx-build -a` to rebuild all files.
* `sphinx-build ... <docnames>` to specify docnames.
2015-03-16 22:03:21 +09:00
shimizukawa
a94c40cbcf ref #1776: test fixed. 2015-03-16 00:27:12 +09:00
shimizukawa
36d47a2193 Close #1776: `source_suffix = ['.rst']` cause unfriendly error on prior version. 2015-03-16 00:20:33 +09:00
shimizukawa
e8e5bae15f remove test that is not works correctly on travis.ci (+1 squashed commits) 2015-03-15 02:18:00 +09:00
shimizukawa
6b7a2c8b6a refs #1777: fix testing. first time testing always failed it means testing on travis.ci will never be succeeded. 2015-03-15 01:13:57 +09:00