Commit Graph

9745 Commits

Author SHA1 Message Date
jfbu
af46ed16b0 Fixes #4315: latex_toplevel_sectioning induced \chapter in article class 2017-12-18 08:09:47 +01:00
Oliver Jahn
56d4e0c80d make math_numfig default to True 2017-12-17 14:02:32 -05:00
Oliver Jahn
27285dfeed use :rst:role: markup 2017-12-17 13:56:06 -05:00
jfbu
46b1896228 Again rewording docs about numfig_secnum_depth 2017-12-17 17:56:03 +01:00
Takeshi KOMIYA
cb5ceeaf99 Merge branch 'master' into refactor_AutoDirective 2017-12-18 00:59:21 +09:00
Takeshi KOMIYA
109e01d94b Fix mypy violations 2017-12-18 00:59:00 +09:00
Takeshi KOMIYA
4173a0bfe1
Merge pull request #4312 from tk0miya/deprecate_formatargspec
deprecate formatargspec() and format_annotation()
2017-12-18 00:25:20 +09:00
Takeshi KOMIYA
41f9cb200a Fix doc: now eq role works whole of project 2017-12-17 23:44:28 +09:00
Takeshi KOMIYA
b0178fb5d4
Merge pull request #4222 from vedranmiletic/documentation-fixes
Add more EXAMPLES
2017-12-17 21:59:14 +09:00
Takeshi KOMIYA
464f94c238 deprecate formatargspec() and format_annotation() 2017-12-17 15:25:44 +09:00
Vedran Miletić
c6775bce07 Add more EXAMPLES 2017-12-16 18:21:37 +01:00
Takeshi KOMIYA
8bb6a01210 Fix mark up 2017-12-17 02:21:10 +09:00
Takeshi KOMIYA
9b18e83e32 Make AutoDirective as a simple object (not directive) 2017-12-17 02:13:38 +09:00
Takeshi KOMIYA
1ab0d96a5f Update docstrings 2017-12-17 02:13:36 +09:00
Takeshi KOMIYA
299b11f26f Replace AutodocReporter by switch_source_input() 2017-12-17 02:13:11 +09:00
Takeshi KOMIYA
cac965cf77 autodoc: refactor option_spec of autodirectives 2017-12-17 02:13:09 +09:00
Takeshi KOMIYA
832914423e autodoc: refactor AutoDirective 2017-12-17 02:07:34 +09:00
Oliver Jahn
44708b03dc
Merge branch 'master' into math_numfig 2017-12-16 11:15:07 -05:00
Oliver Jahn
53a84de822 make math_numfig work with singlehtml writer 2017-12-16 10:37:02 -05:00
Oliver Jahn
04f2929f59 mention limitation to html-like targets 2017-12-16 10:37:02 -05:00
jfbu
ba1368072f Typo place holder --> placeholder 2017-12-16 11:51:00 +01:00
jfbu
a9602e4597 Improve numref docs 2017-12-16 11:46:33 +01:00
Takeshi KOMIYA
02d3f071d3
Merge pull request #4282 from mgorny/makedirs-race2
Use ensuredir() instead of os.makedirs() to fix race conditions
2017-12-16 19:33:51 +09:00
jfbu
f780f92d1b Mention `:numbered:` needed in numfig_secnum_depth docs 2017-12-16 11:32:40 +01:00
jfbu
070fbb97e5 Add markup and clarify numfig_secnum_depth docs 2017-12-16 11:05:33 +01:00
Michał Górny
14af6b429e Use ensuredir() instead of os.makedirs() to fix race conditions
Use the ensuredir() function consistently across Sphinx code to avoid
race conditions e.g. when multiple Sphinx instances attempt to create
the same output directory. The ensuredir() function that was already
present in sphinx.util.osutil correctly catches EEXIST exception that
occurs if the specified directory already exists (i.e. it was created
between the call to os.path.isdir() and os.makedirs() that follows it).

While at it, remove redundant os.path.isdir() calls when they only
guarded the os.makedirs() call, and replace mkdir_p() which had pretty
much the same purpose, except for being prone to race conditions.

I did not modify testing-related code as race conditions mostly affect
real applications and not the test environment.

Fix #4281: Race conditions when creating output directory
2017-12-16 09:50:09 +01:00
Takeshi KOMIYA
f07b080331 Fix mypy violations 2017-12-16 15:01:23 +09:00
Takeshi KOMIYA
d003707f71 Merge branch 'stable' 2017-12-16 14:54:58 +09:00
Takeshi KOMIYA
7cabd6cbb0 Fix mypy violations 2017-12-16 14:52:20 +09:00
jfbu
b131c33af5 Fix markup in doc/ext/math.rst 2017-12-15 22:54:52 +01:00
Takeshi KOMIYA
f79373d797
Merge pull request #4306 from tk0miya/use_make_mode_default_again
quickstart: Fix make_mode should be chosen by default
2017-12-16 02:01:23 +09:00
Takeshi KOMIYA
facce1fb02 quickstart: Fix make_mode should be chosen by default 2017-12-16 01:27:18 +09:00
Takeshi KOMIYA
5bc5b8f013 Merge branch 'stable' 2017-12-16 00:53:55 +09:00
Takeshi KOMIYA
698a0c7741
Merge pull request #4302 from tk0miya/diet_test-root
Diet testcases
2017-12-15 22:28:30 +09:00
Takeshi KOMIYA
fe07365a8c Fix mypy violations 2017-12-15 22:17:03 +09:00
Takeshi KOMIYA
5c1a810fe7
Merge pull request #4304 from tk0miya/fix_ResourceWarning
Fix ResourceWarning on pycode
2017-12-15 21:48:35 +09:00
Takeshi KOMIYA
c250c63daa test: Skip some builders on test_build_all 2017-12-15 21:15:04 +09:00
Takeshi KOMIYA
2a2ed8915a diet test-root: Move .mo files to new testroot (for test_html_rebuild_mo) 2017-12-15 21:15:02 +09:00
Takeshi KOMIYA
451ba5e76a Fix ResourceWarning on pycode 2017-12-15 21:11:48 +09:00
Takeshi KOMIYA
e3bbffc36e test: Add test_html_copy_source 2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a3f04c3397 Refactor test_build_html: Use basic project instead roots 2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a5b64c98af diet test-root: Remove html_static_path and html_extra_path (duplicated with test-html_assets) 2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a8ab1f164b diet test-root: Move testtheme to test-theming 2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
60f3968ef7 diet test-root: Move ziptheme to test-theming 2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
b2837eee0c Transplant object_types on instantiate domain 2017-12-14 23:55:40 +09:00
Takeshi KOMIYA
a7d4fd1a50 Transplant indices on instantiate domain 2017-12-14 23:55:40 +09:00
Takeshi KOMIYA
a2880dffe6 Transplant roles on instantiate domain 2017-12-14 23:55:40 +09:00
Takeshi KOMIYA
c09f3e7767 Transplant directives on instantiate domain 2017-12-14 23:55:40 +09:00
Takeshi KOMIYA
2a26656ce6 Move post-transform manager to registry 2017-12-14 23:55:39 +09:00
Takeshi KOMIYA
27ea988f6e Move Transform manager to registry 2017-12-14 23:55:39 +09:00