Commit Graph

1311 Commits

Author SHA1 Message Date
Takeshi KOMIYA
a9da999d71 Merge branch 'stable' 2016-08-08 00:40:42 +09:00
Joost van Zwieten
099b58f7fe ext.autodoc: fix formatting instance annotations
Currently `format_annotation` fails on instances, because instances don't have
`__module__` and `__qualname__` attributes.  Defer building the
`qualified_name` of an annotation until we have established that the annotation
is a type.
2016-08-07 16:18:22 +02:00
Jakob Lykke Andersen
c85e60a5ac C++, increase support for attributes.
User-defined attributes and simple C++11 style attributes.
Closes sphinx-doc/sphinx#2682.
2016-08-06 00:08:02 +02:00
Jakob Lykke Andersen
86f3e5aabb Merge branch 'master' into cpp-attributes 2016-08-05 08:11:47 +02:00
Ashley Whetter
cfd4e51802 Python domain can now link container types automatically
Google types now greedily match the closing parenthesis.

Also removed name from returns section in Google docstrings.
Instead, everything before the colon is treated as the type.
2016-08-03 17:09:40 +01:00
Takeshi KOMIYA
99c9f60373 Merge branch 'stable' 2016-07-26 14:26:11 +09:00
Takeshi KOMIYA
ed70c71126 Merge pull request #2778 from LeoHuckvale/fix-abstractproperty-part2
fix inspect: return defargs[0] if obj.__dict__ is a property and raises exception
2016-07-21 11:12:34 +09:00
Takeshi KOMIYA
f2a7eeca60 Merge pull request #2774 from tk0miya/latex_engine
Add `latex_engine` to switch the LaTeX engine by conf.py
2016-07-21 01:05:51 +09:00
Takeshi KOMIYA
0e829c845e sphinx.ext.math: Update the label of permalink 2016-07-19 11:16:57 +09:00
Takeshi KOMIYA
6399f8703b Invoke latex building tests using latex_engine 2016-07-19 11:03:38 +09:00
Glenn Matthews
8c1a8153ca Create PyGroupedField and use it for 'exceptions' 2016-07-15 22:01:06 -04:00
Takeshi KOMIYA
253eef9e6a #2680: sphinx.ext.todo now emits warnings if todo_emit_warnings enabled 2016-07-16 00:59:02 +09:00
Takeshi KOMIYA
947a457444 Merge pull request #2776 from shibukawa/fix/qthelpbuilder
fix #2352 (qthelp builder should have ) and improve qthelp readability
2016-07-15 01:56:39 +09:00
Takeshi KOMIYA
a692009808 Merge branch 'stable' 2016-07-15 00:51:29 +09:00
Leo Huckvale
fa89582d57 Fix tests for Python 2.6 2016-07-14 16:41:33 +01:00
Takeshi KOMIYA
736615c18c Optimized tests: remove markups for warnings 2016-07-15 00:30:44 +09:00
Takeshi KOMIYA
6686ebf158 Optimized tests: Add test-warnings 2016-07-14 23:12:57 +09:00
Leo Huckvale
670049c262 inspect: return defargs[0] if obj.__dict__ raises exception
The fallback implemented in #2731 cannot return `obj.__dict__[name]`
if the `__dict__` method has been redefined in such a way that it
raises an exception when trying to access it.

This commit adds a try-except block to work around this.
2016-07-14 14:13:06 +01:00
Takeshi KOMIYA
13c63cb173 Optimize tests: test_get_items_summary 2016-07-14 21:07:33 +09:00
Takeshi KOMIYA
41f77d8152 Use applehelp_disable_external_tools on testing (for non MacOS) 2016-07-14 20:25:10 +09:00
Takeshi KOMIYA
47b33e93e5 Optimize tests: test_applehelp_output 2016-07-14 09:41:46 +09:00
Takeshi KOMIYA
b035094067 Optimize tests: test_ifconfig 2016-07-14 09:16:51 +09:00
Takeshi KOMIYA
c23a59b70c Optimize tests: test_searchadapters 2016-07-14 02:02:25 +09:00
Takeshi KOMIYA
5492b9ebc7 Optimize tests: Remove test_i18n (duplicated with test_intl) 2016-07-14 01:45:55 +09:00
Takeshi KOMIYA
b95f450452 Optimize tests: test_jsmath 2016-07-14 01:43:25 +09:00
Takeshi KOMIYA
3fb439c476 Optimize tests: test_imgmath_png, test_imgmath_svg 2016-07-14 01:36:40 +09:00
Takeshi KOMIYA
edacbd56d1 Optimize tests: test_master_doc_not_found 2016-07-14 01:20:55 +09:00
Yoshiki Shibukawa
b600eb64b0 fix #2352 (qthelp builder should have ) and improve qthelp readability
by using new ``nonav`` theme.
2016-07-13 22:56:58 +09:00
Takeshi KOMIYA
1dd249dd8d Merge branch 'stable' 2016-07-13 21:29:47 +09:00
Yoshiki Shibukawa
3cbd84346e Fix #2634 (Update jquery to latest from 1.x) 2016-07-13 14:58:52 +09:00
Timotheus Kampik
05ad82ffa8 Merge branch 'master' into fix-stemming-removes-short-words-from-search-results 2016-07-10 11:44:35 +02:00
Takeshi KOMIYA
bd715c8155 Remove debug print 2016-07-09 01:05:37 +09:00
Takeshi KOMIYA
4fbcb5bfd6 math: Add hyperlink marker to each equations in HTML output 2016-07-09 00:22:03 +09:00
Takeshi KOMIYA
3807eda6df Merge pull request #2766 from silviot/stable
Make javascript search work in python 3
2016-07-08 23:08:35 +09:00
Silvio Tomatis
45473b3334 Make javascript search work in more contexts
The meaning of `\w` changed from python 2 to python 3.

> $ python3.5 -c "import re; print(re.compile(r'[a-zA-Z]\w*$').match(u'a\xe8'));"
> <_sre.SRE_Match object; span=(0, 2), match='aè'>

> python -c "import re; print(re.compile(r'[a-zA-Z]\w*$').match(u'a\xe8'));"
> None

but the definition of what's an acceptable javascript identifier should not vary from case to case.
2016-07-08 15:27:48 +02:00
Takeshi KOMIYA
b21ba65873 Merge pull request #2759 from scop/optimize-images
Optimize images
2016-07-08 22:00:19 +09:00
Takeshi KOMIYA
234955a3ff Merge pull request #2746 from tk0miya/check_config_value_as_enum
Add sphinx.config.ENUM to check the config values is in candidates
2016-07-08 21:55:30 +09:00
Takeshi KOMIYA
e3a17ce125 Merge pull request #2761 from scop/with
Handle more file closing with "with"
2016-07-08 10:10:30 +09:00
Takeshi KOMIYA
d1a427c51e Merge branch 'stable' 2016-07-08 01:09:28 +09:00
Ville Skyttä
e8a8be5788 Handle more file closing with "with" 2016-07-07 18:53:34 +03:00
Ville Skyttä
302c695048 Run *.png through zopflipng -m
Before: 2334583 bytes
After:  2136324 bytes
2016-07-07 18:34:18 +03:00
Takeshi KOMIYA
5991bbe4ac Add sphinx.config.ENUM to check the config values is in candidates 2016-07-07 23:42:49 +09:00
Ville Skyttä
7cfbc2a702 Fix style checks 2016-07-07 16:48:12 +03:00
Takeshi KOMIYA
02dbf860c2 Refactor: Use copy_asset() to copy html_static_path 2016-07-07 00:06:54 +09:00
Takeshi KOMIYA
bb1e6f9044 Refactor: Replace copy_extra_entry() with copy_asset() 2016-07-07 00:02:57 +09:00
Takeshi KOMIYA
829b5631a3 Add testcase for compile_matchers() 2016-07-06 23:58:46 +09:00
Takeshi KOMIYA
db23797c57 copy_asset_file() does not expand if context not given 2016-07-06 23:58:46 +09:00
Takeshi KOMIYA
07ddff9933 Add sphinx.util.fileutil.copy_asset() 2016-07-06 23:58:46 +09:00
Takeshi KOMIYA
17cd06f237 Add sphinx.util.fileutil.copy_asset_file() 2016-07-06 23:58:46 +09:00
Takeshi KOMIYA
31c6beb578 Merge pull request #2454 from mgeier/html-sourcelink-txt
Add option html_sourcelink_suffix
2016-07-06 01:43:18 +09:00