Commit Graph

1660 Commits

Author SHA1 Message Date
Takeshi KOMIYA
9fc53cecf7 Reduce deprecation warnings (refs: #3192) 2016-12-15 17:15:49 +09:00
Takeshi KOMIYA
ade2603767 Use docutils' Directive class instead compat module 2016-12-14 16:50:43 +09:00
Takeshi KOMIYA
e645ea59db Merge branch 'stable' 2016-12-14 00:12:23 +09:00
shimizukawa
5fc8d3db91 Fix: #2469: Ignore updates of catalog files for gettext builder. Thanks to Hiroshi Ohkubo. 2016-12-12 23:28:00 +09:00
Takeshi KOMIYA
92a9c653f7 Merge branch 'stable' 2016-12-12 22:35:55 +09:00
Jean-François B
0b1130a7cb Merge pull request #3206 from jfbu/fixlatexhyperlink
Fix #3200: 1.5 LaTeX: xref inside desc_name not allowed
2016-12-11 14:50:44 +01:00
shimizukawa
124938c9ae Merge branch '1.5-release' into stable 2016-12-10 11:56:22 +09:00
Rob Ruana
f4716ed3a3 [Napoleon] adds xref test data for pull request #3168 2016-12-09 14:13:29 -08:00
jfbu
9d1f95c9a0 fix 3 line too long style-check errors 2016-12-08 22:30:48 +01:00
jfbu
6dcf43c826 fix pattern string in test_inheritance_diagram_latex for CI testing 2016-12-08 22:14:48 +01:00
jfbu
18e01c8341 fix one more test failure and fix previous fix test (missing u) 2016-12-08 22:05:08 +01:00
jfbu
2e9ee59ee9 fix tests for latex build 2016-12-08 21:43:04 +01:00
shimizukawa
b1abd4629b Fix#3198: AttributeError is raised when toctree has 'self'.
this regression introduced at dc985ed4.
2016-12-08 00:34:19 +09:00
Jellby
6ce1bb1f00 Merge remote-tracking branch 'upstream/master'
Conflicts:
	sphinx/application.py
	sphinx/builders/html.py
2016-12-06 19:14:12 +01:00
shimizukawa
0a7d039df5 Merge branch '1.5-release' into master 2016-12-05 23:14:25 +09:00
Takeshi KOMIYA
7e066e6513 Fix broken tests 2016-12-04 23:34:57 +09:00
shimizukawa
eb0aa50536 fix 3 test failures that cause by translation changed 2016-12-04 23:03:46 +09:00
shimizukawa
9fb398e475 Merge branch 'stable' into 1.5-release 2016-12-04 21:44:16 +09:00
shimizukawa
6ae67f9f38 Fix #3024, refs #3037: In Python3, application.Sphinx._log crushed when the log message cannot be encoded into console encoding. 2016-12-04 13:54:11 +09:00
Takeshi KOMIYA
f43a02ca27 Merge branch 'stable' into 1.5-release 2016-12-03 21:05:18 +09:00
Takeshi KOMIYA
61a6ca5b37 Merge branch 'stable' into 1.5-release 2016-12-03 16:25:58 +09:00
Junpei Kawamoto
df37a05420 Update the regex in util.split_docinfo so that it parses multi-line field bodies.
Field Lists, which are used to define docinfo, allow multi-line field bodies,
but util.split_docinfo didn't consider it.
This commit updates the regex in that function so that it parses such multi-line field bodies.
2016-12-02 23:39:12 -05:00
shimizukawa
3284e89991 Merge branch 'fix-attr-documenter' into stable 2016-11-24 23:55:02 +09:00
Rob Ruana
f45fe6fc8c Fix #3174: [Napoleon] Defers autodoc-skip-member to other extensions if Napoleon doesn't care if the member is skipped 2016-11-23 10:45:39 -08:00
shimizukawa
76f2ed9215 Fix #3015: fix a broken test on Windows. 2016-11-24 00:26:36 +09:00
Takeshi KOMIYA
a413b857af Merge branch '1.5-release' 2016-11-23 14:45:05 +09:00
Takeshi KOMIYA
98f7818101 Fix merging 2016-11-23 13:38:20 +09:00
Takeshi KOMIYA
e63afbc60e Merge branch '1.5-release' 2016-11-23 13:31:02 +09:00
Takeshi KOMIYA
0ee524e392 Merge branch 'stable' into 1.5-release 2016-11-23 13:22:38 +09:00
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
Rob Ruana
407a525ac8 [Napoleon] adds xref test data for pull request #3168 2016-11-21 16:12:23 -08: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
b84035416f Revert "Add `config-inited` event"
This reverts commit 9569c6dbff.
2016-11-20 12:46:30 +09:00
Takeshi KOMIYA
9569c6dbff Add `config-inited` event 2016-11-18 20:55:51 +09:00
Takeshi KOMIYA
4ca84aba45 Fix #3135: `sphinx.ext.autodoc` crashes with plain Callable 2016-11-13 00:01:41 +09:00
Takeshi KOMIYA
ceb4e9a805 Use sphinx-doc.org for testing 2016-11-06 17:52:15 +09:00
jfbu
53d202440f add `@skip_if_stylefiles_notfound` to maxlistdepth test 2016-11-05 11:50:12 +01:00
jfbu
0473e438dc add unit test for maxlistdepth (latex) 2016-11-04 23:57:00 +01:00
Takeshi KOMIYA
a503849ac1 Merge pull request #2495 from electrofelix/linkcheck-skip-anchors
Allow skipping anchor checking using regex
2016-11-04 23:53:46 +09:00
Takeshi KOMIYA
56958227c8 Refactor test_bulid_latex: add skip_if_stylefiles_notfound() 2016-11-04 15:14:41 +09:00
Takeshi KOMIYA
3f4721e140 Refactore test_build_latex: add compile_latex_document() 2016-11-04 12:06:19 +09:00
Alex Grönholm
a1f6baaa81 Fix annotations formatting for plain typing.Callable
The typing.Callable class may be used without generic arguments, in which case it is equivalent to collections.abc.Callable.
2016-11-02 21:43:33 +02:00
Takeshi KOMIYA
b32d9a9bc7 Merge pull request #3071 from mleinart/autodoc/pass_through_decorators
Autodoc: Allow mocked module decorators to pass-through functions unchanged
2016-11-02 23:01:16 +09:00
Takeshi KOMIYA
ae1f523d52 Add `--extensions to sphinx-quickstart` to support enable arbitary extensions from command line (ref: #2904) 2016-11-02 11:11:15 +09:00
shimizukawa
a5bdf1fdae Closes #3060: autodoc supports documentation for attributes of Enum class. Now autodoc render just the value of Enum attributes instead of Enum attribute representation. 2016-10-28 00:02:09 +09:00
Darragh Bailey
22765990f0 Allow skipping anchor checking by regex
To avoid needing to turn off anchor checking across the entire
documentation allow skipping based on matching the anchor against a
regex.

Some sites/pages use JavaScript to perform anchor assignment in a
webpage, which would require rendering the page to determine whether
the anchor exists. Allow fine grain control of whether the anchor is
checked based on pattern matching, until such stage as the retrieved
URLs can be passed through an engine for deeper checking on the HTML
doctree.
2016-10-27 10:52:04 +01:00
jfbu
4d3f5b3c1c update style files checklist for latex tests 2016-10-27 11:43:20 +02:00
Jakub Wilk
43cab26ece Fix typos 2016-10-22 18:12:34 +02:00
Michael Leinartas
7943da9408 Add tests for mocked modules 2016-10-21 09:53:25 -05:00
shimizukawa
021974ed94 refs #2432 update for latest master 2016-10-19 01:08:07 +09:00
Takayuki SHIMIZUKAWA
340c6fb9f4 Merge pull request #2432 from agronholm/kwonlyargs
#2432 Fix unwanted * between varargs and keyword only args
2016-10-19 00:54:38 +09:00
Takeshi KOMIYA
e04fe845c7 Fix #3039: English stemmer returns wrong word if the word is capitalized 2016-10-17 21:09:58 +09:00
Takeshi KOMIYA
53ea1cb280 Fix #3045: HTML search index creator should ignore "raw" content if now html 2016-10-17 16:08:37 +09:00
Jean-François B
b8e0e935e4 Improve LaTeX footnotes (#3022)
Allow code-blocks in footnotes for LaTeX PDF output.

This is done via using a ``footnote environment``, provided by LaTeX
package footnotehyper which replaces old problematic package footnote.
No need to ship a custom tabulary anymore.

The footnote markers are silently removed from the table of contents and
do not end in the PDF bookmarks (the old code in ``sphinx.sty`` copying
``footmisc.sty`` was not satisfactory and has been deleted and replaced
by use of better ``\sphinxfootnotemark``.) Footnotes can be used also in
captions of literal blocks.
2016-10-15 12:09:58 +02:00
shimizukawa
487f3db5f6 To simplify, sphinx uses external mock package even if unittest.mock exists. 2016-10-15 16:22:27 +09:00
Jonathan Harker
59ba8c1dee Fix #3028: figure_language_filename format tokens, document tokens. 2016-10-13 16:41:57 +13:00
Takeshi KOMIYA
d87ba0d1da Merge branch '2527_reversed_toctree' 2016-10-13 00:13:04 +09:00
Takeshi KOMIYA
111b7f4c72 Merge pull request #2843 from rthardin/issue_625_start_at_end_at
Add :start-at: and :end-at: parameters for literalinclude
2016-10-12 19:54:33 +09:00
Takeshi KOMIYA
c8fe4a1848 Rename :reverse: option of toctree directive to :reversed: 2016-10-12 19:36:49 +09:00
Takeshi KOMIYA
f22bbf668d Add testcase for reversed toctree 2016-10-12 19:32:48 +09:00
Takeshi KOMIYA
c5e56969ed Add testcase for indexentries 2016-10-11 18:59:21 +09:00
Takeshi KOMIYA
6027bb75a5 Refactor: move process_only_nodes() to sphinx.util.nodes 2016-10-11 18:59:21 +09:00
Takeshi KOMIYA
dd3f12a7fc Fix style-check violation 2016-10-11 18:59:12 +09:00
jfbu
e43a31da12 Re-insert check for LaTeX macro filename which got suppressed in merge 2016-10-10 21:15:53 +02:00
jfbu
861973bfbb Merge branch 'usegeometrypackage' 2016-10-10 20:55:44 +02:00
Jean-François B
89ccf9e103 Merge pull request #3017 from jfbu/fixuseofncychap
Fix #147 and fix #1986: Problem with latex chapter style
2016-10-10 20:49:05 +02:00
Timotheus Kampik
de7c93756c allow search hits in body text that are in title of other doc #2891 (#2971)
* allow search hits in body text that are in title of other doc #2891

* shorten lines/add line breaks #2891

* remove out-commented LoC, simplify check #2891
2016-10-11 00:42:41 +09:00
jfbu
34f1ce17fd Fix #3018: LaTeX problem with page dimensions and chapter titles
New key ``'geometry'`` to ``latex_elements``.
2016-10-07 23:40:39 +02:00
jfbu
5b78aa28fe Fix #147 and fix #1986: Problem with latex chapter style
Notice that as an after effect ``Contents`` or ``Python Module Index``
will appear (by default) in bold, and larger than formerly (it was a
bug of Sphinx that they were not styled).

I am leaving the `\py@HeaderFamily` in the `sphinx.sty` patch to the
Bjarne `fncychap.sty` style for backwards compatibility. And as it does
`\bfseries` by default I left only the size changing commands in the
`fncychap` customization of Bjarne style.

Also, the `\@makechapterhead` re-definition obeys `\mainmatter` etc...
2016-10-07 11:55:43 +02:00
Takeshi KOMIYA
4c3c128e9b Fix #3000: `option` directive generates invalid HTML anchors
fix
2016-10-07 12:11:28 +09:00
Hiroaki Itoh
42604a1ff6 Fix #2990: linkcheck raises "Can't convert 'bytes' object to str implicitly" error if linkcheck_anchors enabled 2016-10-06 18:59:24 +09:00
Takeshi KOMIYA
ce7fea9a35 Fix #2988: linkcheck: retry with GET request if denied HEAD request 2016-10-04 12:47:59 +09:00
Takeshi KOMIYA
bc6b4bf70e Remove unused LaTeX macro filename from tests 2016-10-02 06:58:55 +09:00
Takeshi KOMIYA
9358ea239b Add testcase for toctree 2016-09-30 10:42:18 +09:00
Jellby
f105b737ed Let's see now 2016-09-29 20:43:43 +02:00
Jellby
fbc8802dc3 Remove trailing whitespaces 2016-09-29 20:27:35 +02:00
Jellby
9bef597a2f Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/test_build_html.py
2016-09-29 20:21:50 +02:00
Takeshi KOMIYA
50bf7960bd Uninstall sphinx directives and roles of domains after build 2016-09-21 10:48:52 +09:00
Takeshi KOMIYA
090e357969 Merge pull request #2963 from tk0miya/326_numref_section
make section numref-able and allow to refer the captions in linktext
2016-09-21 10:45:57 +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
Takeshi KOMIYA
cfddf17d35 Fix #2931: code-block directive with same :caption: causes warning of duplicate target 2016-09-17 18:13:17 +09:00
Takeshi KOMIYA
2b10fc0188 Fix #2916: numref role can also refer caption as an its linktext 2016-09-17 15:51:18 +09:00
Takeshi KOMIYA
1aafc7e2e5 Fix #326: numref role can also refer sections 2016-09-17 15:51:18 +09:00
Takeshi KOMIYA
98886d3e07 Merge pull request #2951 from arcivanov/issue_2949
Sphinx apidoc does not process PEP-0420 implicit namespaces
2016-09-17 14:49:28 +09:00
Arcadiy Ivanov
e34b6823c7
Sphinx apidoc does not process PEP-0420 implicit namespaces
fixes #2949, connected to #2949
2016-09-15 11:49:34 -04:00
Takeshi KOMIYA
f8c1c65c21 Refactor sphinx.environment: Reimplemnt process_refonly_bullet_lists() as a transform 2016-09-15 02:29:50 +09:00
Takeshi KOMIYA
d281a32b3b Refactor sphinx.environment: Reimplement filter_messages() as a transform 2016-09-15 02:29:50 +09:00
Andrey Golovizin
584bb96a06 Fix relative paths in intersphinx links 2016-09-14 10:55:18 +09:00
Takeshi KOMIYA
c832d36d19 Merge pull request #2056 from erosennin/intersphinx-fix-relative-path
Fix relative paths in intersphinx links
2016-09-14 10:54:18 +09:00
Takeshi KOMIYA
fae9eb7784 Fix tests are crashed under unstable network 2016-09-10 16:49:17 +09:00
Takeshi KOMIYA
15518bad12 Fix could not translate the content of meta directive (ref: #1734) 2016-09-01 23:35:23 +09:00
Takeshi KOMIYA
97c6cc4e10 Merge pull request #2880 from tk0miya/1734_translate_caption_of_toctree
Fix #1734: Could not translate the caption of toctree directive
2016-09-01 23:30:49 +09:00
Takeshi KOMIYA
691fd15839 Fix broken testcase 2016-09-01 23:30:04 +09:00
Takeshi KOMIYA
9b00c31ee2 Fix #1734: Could not translate the caption of toctree directive 2016-09-01 17:58:24 +09:00
Takeshi KOMIYA
c6e102999f Merge branch 'stable' 2016-09-01 02:25:14 +09:00
Takeshi KOMIYA
b7628484ee Fix style-check violation 2016-08-31 00:43:12 +09:00
Takeshi KOMIYA
f2d044bb73 Merge pull request #2878 from tk0miya/2874_gettext_builder_should_ignore_only_directive
Fix #2874: gettext builder could not extract all text under the ``only`` directives
2016-08-31 00:17:37 +09:00
Takeshi KOMIYA
c7f299b86f Fix #646: `option` directive support . character as a part of options 2016-08-31 00:04:41 +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
e96e627d59 Fix #2874: gettext builder could not extract all text under the `only` directives 2016-08-27 23:57:49 +09:00
Takeshi KOMIYA
e64ee7e330 Merge branch 'stable' 2016-08-27 23:42:40 +09:00
Takeshi KOMIYA
07e30b279b Merge pull request #2884 from tk0miya/refactor_intersphinx
Refactor intersphinx: Use requests package
2016-08-27 16:43:54 +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
a61d90f674 Merge pull request #2854 from tk0miya/use_epub3_builder_by_default
Use epub3 builder by default.  And the old epub builder is renamed to epub2.
2016-08-22 22:50:01 +09:00
Takeshi KOMIYA
69d1dfaade Use epub3 builder by default. And the old epub builder is renamed to epub2. 2016-08-22 21:39:44 +09:00
Takeshi KOMIYA
e7ff996d13 intersphinx: _strip_basic_auth() only removes credentials from URL 2016-08-22 20:58:46 +09:00
Takeshi KOMIYA
35232a3dd6 intersphinx: Use requests package 2016-08-22 20:58:45 +09:00
Takeshi KOMIYA
609ae03947 intersphinx: Refactor _get_safe_url() 2016-08-22 20:35:10 +09:00
Takeshi KOMIYA
dcdd401d65 intersphinx: Add read_inventory() 2016-08-22 20:35:10 +09:00
Takeshi KOMIYA
bd22d09f48 Add domain support to support equation cross references (ref: #1210, #2851) 2016-08-22 19:58:46 +09:00
Takeshi KOMIYA
3639231cec Merge pull request #2857 from tk0miya/std_domain_handles_citations
std domain handles citations
2016-08-20 13:22:27 +09:00
Takeshi KOMIYA
372e83f0c7 Merge pull request #2853 from shibukawa/fix/genindex
Fix genindex.html to satisfy xhtml standard
2016-08-20 12:52:23 +09:00
Takeshi KOMIYA
a1d6be6a54 Fix #1797: text builder inserts blank line on top 2016-08-19 23:46:54 +09:00
Takeshi KOMIYA
05caa0f037 Fix #1953: `Sphinx.add_node does not add handlers the translator installed by html_translator_class` 2016-08-19 00:45:45 +09:00
Yoshiki Shibukawa
8e0bf12f5f Fix genindex.html to satisfy xhtml standard 2016-08-18 21:17:12 +09:00
Takeshi KOMIYA
6911611f8d Fix broken test 2016-08-18 12:48:13 +09:00
Takeshi KOMIYA
1cfde018d2 Merge branch 'stable' 2016-08-18 12:12:15 +09:00
Takeshi KOMIYA
1c9524dedd Add testcase for #2846 2016-08-17 13:58:05 +09:00
Andrew Lyjak
47a3e3dfd3 Pass command args into nose unit test runner from tests/run.py
This allows developers to selectively run tests, to enable debugging
on test failures, etc. See
http://nose.readthedocs.io/en/latest/usage.html for usage
instructions.
2016-08-16 01:49:07 -07:00
Takeshi KOMIYA
d5a770b592 std domain handles citations 2016-08-16 01:38:20 +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
Ryan Hardin
560b5725c9 Added :start-at: and :end-at: parameters for literalinclude
This feature is discussed as part of issue #625.
2016-08-10 11:15:10 -04:00
Takeshi KOMIYA
8a9459b308 Merge branch 'stable' 2016-08-09 23:19:11 +09:00
Yoshiki Shibukawa
90b3c79895 fix html entity to fix epub error 2016-08-09 16:58:56 +09:00
Takeshi KOMIYA
e15216c568 Fix sphinx.ext.autodoc crashes if target code imports * from mock modules by autodoc_mock_imports 2016-08-09 12:20:11 +09:00
Jakob Lykke Andersen
54dd5c5fd1 C++, add proper template introduction mangling 2016-08-07 21:55:58 +02:00
Jakob Lykke Andersen
1b251797bb Merge branch 'master' into cpp-concepts 2016-08-07 18:37:31 +02:00
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
Takeshi KOMIYA
7eca745b5c Fix #2667: latex crashes if resized images appeared in section title 2016-07-05 14:33:44 +09:00
Tadej Janež
a9ffcf0d60 Add `--warning-is-error` option to setup.py command 2016-06-30 10:18:49 +02:00
Takeshi KOMIYA
cd093fb0ca latex writer considers unitless dimensions as px based 2016-06-26 22:56:20 +09:00
Takeshi KOMIYA
fe3f2a4a3f latex: Do not convert px to float 2016-06-26 22:55:57 +09:00
Takeshi KOMIYA
cb00f51328 latex: Raise error if invalid dimension value 2016-06-26 22:55:54 +09:00
Takeshi KOMIYA
4bc5a242ce Show warnings if invalid dimension units found 2016-06-26 22:32:34 +09:00
Jakob Lykke Andersen
f64ec1349a C++, initial support for attributes.
Only simple GNU style supported, and only in the decl-specifier-list.
See sphinx-doc/sphinx#2682.
2016-06-26 10:02:15 +02:00
Takeshi KOMIYA
efd74a9e14 latex, replace `pt by TeX equivalent bp if found in width or height` attribute of an image (ref: #2714) 2016-06-26 12:03:55 +09:00
Takeshi KOMIYA
7a81169e4c Fix warning in CHANGES 2016-06-25 10:31:30 +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
Takeshi KOMIYA
51937f8089 #2597: Show warning messages as darkred 2016-06-24 14:23:19 +09:00
jfbu
9002966085 Merge branch 'stable' 2016-06-22 18:42:13 +02: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
01f1696d9b Remove usage by sphinx.sty of latex package newfloat.sty 2016-06-19 16:22:49 +02:00
jfbu
beeeb56c27 latex `\noindent` for non-inline images, not only if top level 2016-06-19 11:04:45 +02:00
jfbu
4be797ccd3 Merge branch 'stable' 2016-06-18 12:23:20 +02:00
jfbu
b3d8961ca8 Enhance latex text styling customizability 2016-06-17 19:48:52 +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
c2d417a032 Rename SphinxVerbatim to sphinxVerbatim for latex output 2016-06-15 18:34:00 +02:00
jfbu
2cec5a25b2 Merge branch 'stable'
Conflicts:
	sphinx/domains/cpp.py
	sphinx/texinputs/sphinx.sty
	tests/test_build_latex.py
2016-06-15 18:29:58 +02: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
Jakob Lykke Andersen
5728e5e837 C++, add test for initialized variable concepts 2016-06-14 16:23:57 +09:00
Rob Ruana
8dde1eb02d Fix #2541: [Napoleon] Adds a blank line before parameter descriptions that start with a literal block 2016-06-11 23:55:55 -06:00
Takeshi KOMIYA
e41a6340da '%' is no needed after \sphinxAtStartFootnote 2016-06-12 00:43:29 +09:00
Takeshi KOMIYA
88c026d0bd Merge branch 'stable' 2016-06-12 00:42:47 +09:00
Takeshi KOMIYA
80921b2ab8 Fix flake8 violation under tests/ 2016-06-12 00:02:11 +09:00
jfbu
f9880bfcc8 latex: keep original Verbatim under same name, use SphinxVerbatim for own 2016-06-10 18:48:33 +02:00
Matthias Geier
d27386cc95 Updates related to new feed() signature 2016-06-08 15:53:18 +02:00
Matthias Geier
3ecb08c5a9 TESTS: Add missing docname in test_search.py 2016-06-07 15:17:12 +02:00
Matthias Geier
5559150578 Change html_sourcelink_txt -> html_sourcelink_suffix 2016-06-07 15:17:12 +02:00
Matthias Geier
86615e1f09 Add option html_sourcelink_txt 2016-06-07 15:15:39 +02:00
Matthias Geier
7886ecc994 Add test cases for HTML source links 2016-06-07 15:15:39 +02:00
Takeshi KOMIYA
368277f10a Merge pull request #2586 from avylove/html5lib
Use html5lib to parse HTML in tests instead of XMLParser
2016-06-05 22:20:00 +09:00
Takeshi KOMIYA
f6ebd372d4 Merge branch 'stable' 2016-06-05 17:24:41 +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
Timotheus Kampik
475ebf6c36 Merge branch 'master' into fix-stemming-removes-short-words-from-search-results 2016-06-04 17:35:16 +02:00
Timotheus Kampik
ba64f54e4e search index: don't stemm words that would be excluded from search index only after stemming #1529 2016-06-04 17:21:11 +02: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
Jakob Lykke Andersen
8a64cfdd91 C++, add support for template introductions.
Thanks to mickk-on-cpp.
2016-05-30 23:18:10 +09:00
Jakob Lykke Andersen
74191207db C++, add support for concept declarations.
Concept placeholders are automatically linked.
Thanks to mickk-on-cpp.
2016-05-30 19:45:17 +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
f11128879a Merge branch 'stable' 2016-05-29 19:44:13 +09:00
Takeshi KOMIYA
d7113586f1 Fix style-checker errors 2016-05-29 17:16:46 +09:00
Takeshi KOMIYA
1d17475a08 #2575: Now `sphinx.ext.graphviz allows :align:` option 2016-05-28 18:29:10 +09:00
Takeshi KOMIYA
e3be266be3 Merge branch 'stable' 2016-05-28 17:29:43 +09:00
Avram Lubkin
76b92ad24f Use html5lib to parse HTML in tests instead of XMLParser 2016-05-28 02:51:21 -04:00
Takeshi KOMIYA
b74b9cb585 Fix #2383: The generated footnote by latex_show_urls overflows lines 2016-05-28 14:46:13 +09:00
Takeshi KOMIYA
5cdf7a9a33 Adjust spacing in numref role (ref: #2382) 2016-05-28 13:23:37 +09:00
Takeshi KOMIYA
c64a23f3c6 Add testcase for #2382 2016-05-28 12:57:46 +09:00
Takeshi KOMIYA
771e715f50 `:maxdepth: option of toctree affects secnumdepth` (ref: #2547) 2016-05-26 23:23:07 +09:00
Takeshi KOMIYA
2578f47664 Merge branch 'stable' 2016-05-26 20:55:26 +09:00
Takeshi KOMIYA
9cd5ba994c Fix #2445: rst_prolog and rst_epilog affect to non reST sources 2016-05-25 21:25:04 +09:00
Takeshi KOMIYA
89360dd3f1 Add testcase for rst_prolog and rst_epilog 2016-05-25 21:24:31 +09:00
Takeshi KOMIYA
c028cfc5d3 Refactor testcases for #2516 2016-05-24 11:14:17 +09:00
Takeshi KOMIYA
82ef3b0aeb Merge pull request #2516 from TimKam/meta-keywords-to-search-index
Meta keywords to search index
2016-05-24 11:10:07 +09:00
Takeshi KOMIYA
37882b9c77 Fix #2518: intersphinx_mapping disallows non alphanumeric keys 2016-05-23 12:14:56 +09:00
Takeshi KOMIYA
9546fdaf5e Fix `sphinx.ext.intersphinx crashes if non-string value is used for key of intersphinx_mapping` 2016-05-23 12:11:10 +09:00
Jakub Wilk
74b15cc64c Fix format string in assert_in()/assert_not_in() 2016-05-16 17:19:53 +02:00
Takeshi KOMIYA
c9296ba467 Merge branch 'stable' 2016-05-09 10:11:13 +09:00
Timotheus Kampik
01797faede refactor code/tests: keyword support for search index #2516 2016-05-05 18:09:22 +02:00
Takeshi KOMIYA
20719f0b00 Merge pull request #2503 from JojoBoulix/stable
Extend SOURCE_DATE_EPOCH support
2016-05-05 22:15:19 +09:00