Commit Graph
1248 Commits
Author SHA1 Message Date
Takeshi KOMIYA 52f54a6379 Fix #3164: Change search order of `sphinx.ext.inheritance_diagram` 2016-11-23 00:50:02 +09:00
Takeshi KOMIYA 9676e79c1c inheritance_diagram: Move _import_class_or_module() method to function 2016-11-23 00:49:46 +09:00
Takeshi KOMIYA 43197de299 Fix #3117: LaTeX writer crashes if admonition is placed before first section title 2016-11-23 00:42:34 +09:00
shimizukawa 8f79c11b04 #3093: fix test again 2016-11-20 18:35:12 +09:00
shimizukawa 6b0d3e7400 #3093: fix test again 2016-11-20 18:17:16 +09:00
shimizukawa e712401dd1 #3093: fix test 2016-11-20 18:00:23 +09:00
shimizukawa 3566352bdb refs #3093: add tests 2016-11-20 17:48:07 +09:00
Takeshi KOMIYA 4ca84aba45 Fix #3135: `sphinx.ext.autodoc` crashes with plain Callable 2016-11-13 00:01:41 +09:00
Takeshi KOMIYA 82c153ffd2 Fix #2931: code-block directive with same :caption: causes warning of duplicate target 2016-09-17 18:28:55 +09:00
Andrey Golovizin 584bb96a06 Fix relative paths in intersphinx links 2016-09-14 10:55:18 +09:00
Takeshi KOMIYA 8d96c90fc6 Fix #1462: autosummary warns for namedtuple with attribute with trailing underscore 2016-08-30 00:37:30 +09:00
Takeshi KOMIYA acd4d9f2ba #2902: jsdump.loads fails to load search index if keywords starts with underscore 2016-08-27 15:28:36 +09:00
Takeshi KOMIYA 52f4c07202 Add tests for sphinx.util.jsdump:loads() 2016-08-27 14:20:08 +09:00
Takeshi KOMIYA 1c9524dedd Add testcase for #2846 2016-08-17 13:58:05 +09:00
Takeshi KOMIYA bfcc2a159b Fix test has broken in py3 2016-08-11 13:58:21 +09:00
Takeshi KOMIYA 82b451df03 Remove debug print 2016-08-11 12:20:52 +09:00
Takeshi KOMIYA d5078a64d7 Fix #2789: sphinx.ext.intersphinx generates wrong hyperlinks if the inventory is given 2016-08-11 11:19:42 +09:00
Yoshiki Shibukawa 90b3c79895 fix html entity to fix epub error 2016-08-09 16:58:56 +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
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
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
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 7eca745b5c Fix #2667: latex crashes if resized images appeared in section title 2016-07-05 14:33:44 +09:00
Takeshi KOMIYA 211fd352ae Fix #2579: Could not refer a label including both spaces and colons via sphinx.ext.intersphinx
This fixes only the case the label including both spaces and colons as
ad-hoc. There is still a bug if a label having spaces, colons and
numbers like "foo bar:baz 1234".

Note: To support the case, we have to improve the inventory format.
2016-06-24 21:11:31 +09:00
Jean-François B 0802e5499a Merge pull request #2672 from jfbu/jfbu_fixincludegraphics
Fix #2671: image directive may lead to inconsistent spacing in pdf
2016-06-22 18:25:46 +02:00
jfbu beeeb56c27 latex `\noindent` for non-inline images, not only if top level 2016-06-19 11:04:45 +02:00
jfbu 664e24cf86 Fix #2671: image directive may lead to inconsistent spacing in pdf 2016-06-17 10:08:31 +02:00
Jakob Lykke Andersen 65dddfcd69 C++, fix parsing of function types in other types.
Let all kinds of function parameters be allowed to have a name.
Fixes michaeljones/breathe#267.
2016-06-16 10:54:16 +09:00
jfbu 5510653d6e Fix #2629. Add new config option `latex_keep_old_macro_names`
The cause of the issue was a clash about ``\titleref`` macro being already
defined in memoir class context. To avoid similar problems, this makes
the text styling macros

  ``\strong``, ``\code``, ``\bfcode``, ``\email``, ``\tablecontinued``,
  ``\titleref``, ``\menuselection``, ``\accelerator``, ``\crossref``,
  ``\termref``, ``\optional``,

also available with ``\sphinx`` prefix, with a conf.py boolean option to
let sphinx.sty only define ``\sphinx``-prefixed macros. As default value
is False, backwards compatibility is maintained.

On this occasion, some internal non-public macros have been renamed with
prefix ``\spx@``. The command

    find . -name '*.sty' -exec grep -l \\\\spx@ {} \;

has been executed in TeXLive 2015 and 2016 installations to check no
package defines macros starting with ``\spx@``.

Some internal macros having public names (because they are written by
latex.py into the body of the latex document) have been renamed to have
``\sphinx`` prefix. The macros in sphinx.sty starting with \py@, or \DU,
or \PYG have not been modified. Similarly ``\release``, ``\version``,
``\releasename``, etc... have not been renamed.
2016-06-15 08:53:24 +02:00
Takeshi KOMIYA 80921b2ab8 Fix flake8 violation under tests/ 2016-06-12 00:02:11 +09:00
jfbu 96e30b0d0e Fix #2593 (continued): allow figure captions in LaTeX tabulary tables 2016-06-05 14:21:21 +09:00
Takeshi KOMIYA bb6bb7ded6 Fix #2593: latex crashes if any figures in the table 2016-06-05 14:21:21 +09:00
Takeshi KOMIYA cdb621440c Merge pull request #2613 from shibukawa/feature/extension-blacklist-to-stable
add extension blacklist to avoid error when loading deprecated extensions
2016-06-03 21:40:40 +09:00
Takeshi KOMIYA 1b939042df Make testcases robust 2016-06-03 00:30:39 +09:00
Yoshiki Shibukawa 88bf4373c7 add extension blacklist to avoid error when loading deprecated extensions 2016-06-02 19:19:46 +09:00
Takeshi KOMIYA 24beece2a3 Fix combination of figure directive options; width, figwidth and align (ref: #2595) 2016-05-30 13:13:38 +09:00
Takeshi KOMIYA d7113586f1 Fix style-checker errors 2016-05-29 17:16:46 +09:00