Commit Graph

2646 Commits

Author SHA1 Message Date
Takeshi KOMIYA
e1a87ba073 Fix broken testcase by alabaster-0.711 2018-06-19 23:36:54 +09:00
Takeshi KOMIYA
b84240d871
Merge pull request #5108 from tk0miya/alabaster-0.711
Alabaster 0.711
2018-06-19 23:35:17 +09:00
Takeshi KOMIYA
87ddb6c68f Fix broken testcase by alabaster-0.711 2018-06-19 22:55:05 +09:00
Takeshi KOMIYA
b6904e69af
Merge branch '1.7' into 5091_latex_curlybrace_in_index 2018-06-19 09:46:20 +09:00
Takeshi KOMIYA
58e1067ccd
Merge branch 'master' into 4362_dont_overwrite_latex 2018-06-17 17:50:49 +09:00
Takeshi KOMIYA
af1502c32e
Merge pull request #5084 from tk0miya/3784_mathjax_integrity
Close #3784: mathjax: Add :confval:`mathjax_options`
2018-06-17 00:33:58 +09:00
Takeshi KOMIYA
fa3e0ca682 Close #5035: qthelp builder allows dashes in :confval:qthelp_namespace 2018-06-16 18:33:09 +09:00
Takeshi KOMIYA
71c0eb6b1a Merge branch '1.7' 2018-06-16 18:23:36 +09:00
Takeshi KOMIYA
2a9da1d031 Fix #5091: latex: curly braces in index entries are not handled correctly 2018-06-16 01:34:40 +09:00
Takeshi KOMIYA
285ae7e881 Fix #5066: html: "relations" sidebar is not shown by default 2018-06-16 00:51:21 +09:00
Takeshi KOMIYA
28fe6dadf4 Fix #4362: latex: Don't overwrite .tex file if document not changed 2018-06-14 02:14:33 +09:00
Takeshi KOMIYA
34126021d9 Close #3784: mathjax: Add :confval:mathjax_options 2018-06-13 23:24:21 +09:00
Takeshi KOMIYA
6c4d6c3b94 Fix #5032: autodoc loses the first staticmethod parameter for old styled classes 2018-06-13 22:30:14 +09:00
Jakob Lykke Andersen
dd711a7dc7 Search: make a difference between fullname and dispname 2018-06-10 17:16:58 +02:00
Takeshi KOMIYA
0edcae1ff8 Fix #5019: autodoc: crashed by Form Feed Character 2018-06-10 21:08:21 +09:00
Takeshi KOMIYA
72e60ce165 Merge branch '1.7' 2018-06-09 20:53:01 +09:00
Jakob Lykke Andersen
cc026946f7 C++, add support for anon entities.
Anonymous entities are specified with names starting with "@",
but are rendered as "[anonymous]".

Fixes sphinx-doc/sphinx#3593 and sphinx-doc/sphinx#2683.
2018-06-09 12:24:34 +02:00
Takeshi KOMIYA
fc7817b854
Merge pull request #5034 from tk0miya/add_html_js_files
Add :confval:`html_js_files`
2018-06-09 11:51:11 +09:00
Jean-François B
95a8099913
Merge branch 'master' into latex_remove_shorthandoff_variable 2018-06-08 19:53:46 +02:00
Takeshi KOMIYA
9fc2657d7e Add :confval:html_js_files 2018-06-09 02:38:36 +09:00
Takeshi KOMIYA
9617b138c7
Merge pull request #5049 from tk0miya/4193_canonical_url
html: Output ``canonical_url`` metadata if :confval:`html_baseurl` set
2018-06-09 02:35:56 +09:00
jfbu
45c63a8e2d LaTeX, follow-up to PR #5012, avoid label separated by pagebreak
PR #5012 took care of this for longtable, but the problem can also arise
with tabular/tabulary and is much easier to fix.
2018-06-08 18:46:15 +02:00
Takeshi KOMIYA
6d5e68b02e
Merge branch '1.7' into 5048_numbered_toctree 2018-06-08 21:41:48 +09:00
Takeshi KOMIYA
5843dcb868
Merge branch '1.7' into 5048_numbered_toctree 2018-06-08 20:52:43 +09:00
jfbu
7bebdd0f97 Add tests for non-captioned table with label in latex 2018-06-08 10:18:53 +02:00
jfbu
b41b1dac5c Deprecate sphinx.writers.latex.ExtBabel.get_shorthandoff()
This partially reverts d17f3955a5
2018-06-06 19:16:14 +02:00
Takeshi KOMIYA
fb41dcefab Fix sphinx.testing uses deprecated pytest API; Node.get_marker(name) 2018-06-07 01:22:55 +09:00
Takeshi KOMIYA
96b9b9a127 Fix #5048: crashed with numbered toctree 2018-06-07 00:54:02 +09:00
Takeshi KOMIYA
e30b10a57d html: Output `canonical_url metadata if :confval:html_baseurl` set 2018-06-06 21:18:17 +09:00
jfbu
a32c358342 Remove usage of internal shorthandoff variable from LaTeX writer 2018-06-05 18:38:59 +02:00
jfbu
f9e2a41a48 Merge branch '1.7' 2018-06-05 18:17:18 +02:00
jfbu
66741b1ee9 LaTeX: make deactivation of = and " systematic
This avoids maintaining list of languages making " (or worse =) active
TeX characters.
2018-06-05 10:20:17 +02:00
Takeshi KOMIYA
98f10216c7 Merge branch '1.7' 2018-05-29 02:13:54 +09:00
Takeshi KOMIYA
d9df3b4b47
Merge pull request #5005 from tk0miya/3606_load_mathjax_async
Fix #3606: MathJax should be loaded with async attribute
2018-05-29 01:04:34 +09:00
Takeshi KOMIYA
1deceda6da
Merge branch 'master' into 3606_load_mathjax_async 2018-05-28 23:04:13 +09:00
Takeshi KOMIYA
af32786af1
Merge branch 'master' into 4983_wrong_id_for_productionlist 2018-05-28 23:00:35 +09:00
Jakob Lykke Andersen
6d52b63eee C++, support for unions. 2018-05-26 20:03:25 +02:00
Jakob Lykke Andersen
f592483156 Add cpp:texpr role (style alternative to cpp:expr)
Simplified version of sphinx-doc/sphinx#4836,
thanks to mickk-on-cpp.
2018-05-26 17:25:41 +02:00
jfbu
a08321f962 Better replacement for LaTeX's enumerated list support macros 2018-05-26 15:14:57 +02:00
lucdanton
b839a7cf0e C++: parse pack expansions in function calls. 2018-05-26 13:28:21 +02:00
Takeshi KOMIYA
600c948ff9 Close #1431: latex: Add alphanumeric enumerated list support 2018-05-26 00:19:27 +09:00
shimizukawa
eacaaed1c7 Merge branch 1.7 2018-05-25 08:17:19 +09:00
Takeshi KOMIYA
f3168d9894 Rename app.add_javascript() to add_js_file() 2018-05-24 23:59:49 +09:00
Takeshi KOMIYA
adff7e89d4
Merge branch '1.7' into 4914_dataclasses 2018-05-23 22:37:43 +09:00
Takeshi KOMIYA
51962c715c Merge branch '1.7' 2018-05-23 21:41:45 +09:00
Takeshi KOMIYA
3019558a4f
Merge branch '1.7' into 4919_crashed_by_numbered_toctree 2018-05-23 21:41:38 +09:00
Takeshi KOMIYA
b6ba8cad10 Fix #4648: latex: Now "rubric" elements are rendered as unnumbered section title 2018-05-23 01:22:14 +09:00
Takeshi KOMIYA
0ba5c24f5e Close #4980: latex: Improve label handling of LaTeX builder (section) 2018-05-22 22:06:22 +09:00
Takeshi KOMIYA
1b5e910059 Close #4980: latex: Improve label handling of LaTeX builder (table) 2018-05-22 22:06:22 +09:00
Takeshi KOMIYA
fdc0697690 Close #4980: latex: Improve label handling of LaTeX builder (code-block) 2018-05-22 22:06:22 +09:00
Takeshi KOMIYA
f621fe8533 Close #4980: latex: Improve label handling of LaTeX builder (figure) 2018-05-22 22:06:22 +09:00
Takeshi KOMIYA
d62a274709 Fix #4983: productionlist directive generates invalid IDs for the tokens 2018-05-22 11:17:50 +09:00
jfbu
e7adae9799 Revert extra \relax after \phantomsection in LaTeXTranslator.hypertarget 2018-05-21 16:27:37 +02:00
jfbu
0f2dffb0c8 Avoid unneeded \relax after \phantomsection in glossary item labels 2018-05-21 16:17:58 +02:00
Takeshi KOMIYA
506d4c87ef Merge branch '1.7' 2018-05-21 23:07:54 +09:00
Takeshi KOMIYA
6b20bda67a
Merge branch '1.7' into 4919_crashed_by_numbered_toctree 2018-05-21 23:03:48 +09:00
Takeshi KOMIYA
ff3ac70c76 Fix #4973: latex: glossary directive adds whitespace to each item 2018-05-21 23:01:39 +09:00
Takeshi KOMIYA
3080d24330 Fix #4956: autodoc: Failed to extract document from a subclass of the class on mocked module 2018-05-21 21:53:20 +09:00
Takeshi KOMIYA
cda18f119f Fix #4919: node.asdom() crashes if toctree has :numbered: option 2018-05-21 21:31:34 +09:00
Takeshi KOMIYA
0261b76bcb
Merge branch '1.7' into 4979_latex_index_escaping 2018-05-21 10:40:38 +09:00
Takeshi KOMIYA
be8e2be47b Fix #4914: autodoc: Parsing error when using dataclasses without default values 2018-05-21 00:25:11 +09:00
Takeshi KOMIYA
c09f5e0f98
Merge pull request #4928 from JulienPalard/i18n-ignore-git-dir
i18n: Ignore dot-directories like .git/ in LC_MESSAGES/.
2018-05-19 16:44:11 +09:00
Takeshi KOMIYA
ac523c637a
Merge pull request #4975 from tk0miya/refactor_math
Fix #4333: Enable directives and roles for math by default
2018-05-19 15:15:38 +09:00
Takeshi KOMIYA
057152e9e7 Merge branch '1.7' 2018-05-19 14:25:23 +09:00
Takeshi KOMIYA
de6f3b252e Fix #4979: latex: Incorrect escaping of curly braces in index entries 2018-05-19 14:15:02 +09:00
Takeshi KOMIYA
4d68b4173b
Merge branch '1.7' into latex_deeply_nested_enumlist 2018-05-19 13:00:00 +09:00
Takeshi KOMIYA
b2abab1c45 Fix #4969: autodoc: constructor method should not have return annotation 2018-05-19 11:49:32 +09:00
Takeshi KOMIYA
adbda06eca Fix make_app() fixture fails to rollback registered roles on creating multiple apps 2018-05-17 00:42:48 +09:00
Takeshi KOMIYA
e675ad2ec9 Enable math_block node rendering by default (without HTML builders) 2018-05-17 00:42:22 +09:00
Takeshi KOMIYA
4e04bff4f5 Enable math node rendering by default (without HTML builders)
Nowadays, math elements (inline and block level equations) are
integrated into reST spec by default.  But, in Sphinx, they are
not enabled by default.  For this reason, users have to enable
one of math extensions even if target builder supports math
elements directly.

This change starts to enable them by default.  As a first step,
this replaces math node and its structure by docutils based one.
2018-05-15 22:27:49 +09:00
Takeshi KOMIYA
c6050a3d1e Fix latex: deeply nested enumerated list which is beginning with non-1 causes LaTeX engine crashed 2018-05-15 01:48:12 +09:00
Takeshi KOMIYA
bc19cf72c9 Merge branch '1.7' 2018-05-14 01:04:45 +09:00
Takeshi KOMIYA
e4410b6ab0
Merge branch '1.7' into 4913_literal_block_under_bullet_list 2018-05-12 22:35:55 +09:00
Takeshi KOMIYA
86f179e312
Merge pull request #4941 from tk0miya/4035_rename_viewcode_import
Rename viewcode_import to viewcode_follow_imported_members (refs: #4035)
2018-05-12 11:27:17 +09:00
Takayuki SHIMIZUKAWA
79650f5827
fix #4938: i18n doesn't handle node.title correctly (#4939) 2018-05-11 20:51:07 +09:00
Julien Palard
6dcdce685d i18n: Ignore dot-directories like .git/ in LC_MESSAGES/.
This avoids warnings when find_catalog_source_files returns files
found in .git/ like:

WARNING: Start of line didn't match any expected keyword./refs/heads/freezed-library/colorsys.mo
WARNING: Problem on line 1: 0000000000000000000000000000000000000000 032a00a7391ec8a155bbc54d66ba72fb1b7bdbf1 Julien Palard <julien@palard.fr> 1521582790 +0100 branch: Created from freezed/library/colorsys.po

`.po` files can typically reside in .git/refs/heads/ if some branches
name end with .po, in which case they contain a SHA1, not
translations, leading to warnings.
2018-05-08 11:02:14 +02:00
Takeshi KOMIYA
5c56c99dfd Fix #4913: i18n: literal blocks in bullet list are not translated 2018-05-07 22:25:42 +09:00
Takeshi KOMIYA
4c3e757ad7 refactor: Reduce DeprecationWarnings 2018-05-07 21:37:54 +09:00
Takeshi KOMIYA
fad03ea050 Rename viewcode_import to viewcode_follow_imported_members (refs: #4035) 2018-05-07 21:22:13 +09:00
Takeshi KOMIYA
f2af9ff97c
Merge branch 'master' into fix_4035_2 2018-05-06 23:27:51 +09:00
Takeshi KOMIYA
f6259c696b Adjust MAX_CITATION_LABEL_LENGTH 2018-05-03 23:46:25 +09:00
Takeshi KOMIYA
8bc136a9cb Use \sphinxcite instead of \cite 2018-05-03 20:58:30 +09:00
Takeshi KOMIYA
c1b87ff0d3 Suppress braces surround bibitem 2018-05-03 20:57:29 +09:00
Takeshi KOMIYA
92d8935df0 latex: Use `\cite for citation references instead \hyperref` 2018-05-03 20:57:29 +09:00
Takeshi KOMIYA
82a123f1d4 Add testcase for thebibliography 2018-05-03 20:50:24 +09:00
Takeshi KOMIYA
8febb09373
Merge branch 'master' into refactor_latex_footnotes 2018-05-03 11:40:44 +09:00
Takeshi KOMIYA
cbf4ee24f9 Fix #4811: The files under html_static_path are excluded from source 2018-05-03 11:07:14 +09:00
Takeshi KOMIYA
0ea06e40ca
Merge branch 'master' into 789_escape_braces_on_samp_role 2018-05-03 01:32:35 +09:00
Takeshi KOMIYA
d8f4e47fc8 Fix broken testcase caused by path separator 2018-05-02 02:13:00 +09:00
Takeshi KOMIYA
9d4b3ca0eb
Merge pull request #4879 from tk0miya/refactor_OptionParser
Let docutils know the location of ``docutils.conf`` for Sphinx
2018-05-01 00:32:19 +09:00
Takeshi KOMIYA
eba8792355
Merge pull request #4866 from goerz/ext_graphviz_css
Wrap graphviz diagrams in <div class="graphviz">
2018-04-29 22:22:29 +09:00
Takeshi KOMIYA
a31e7beee7 Merge branch 'master' into refactor_latex_footnotes 2018-04-29 21:09:46 +09:00
Takeshi KOMIYA
a68f772d7a Merge branch 'master' into refactor_config 2018-04-28 13:05:47 +09:00
Takeshi KOMIYA
b165ade6b0 Rename Config.read_from_py() to Config.read() 2018-04-28 13:05:28 +09:00
Takeshi KOMIYA
622119a9d4 Fix #789: `:samp:` role supports to escape curly braces with backslash 2018-04-28 12:56:01 +09:00
Ashley Whetter
44da51a564 Plugins can find source code for viewcode
Fixes #4035
2018-04-24 14:45:16 -07:00
Jean-François B
cb4da73412
Merge pull request #4868 from tesch1/feat-4830
proposed enhancement #4830
2018-04-24 14:00:16 +02:00
Takeshi KOMIYA
5897d45cc6 Merge branch 'master' into refactor_config 2018-04-22 18:56:04 +09:00
Takeshi KOMIYA
bafeb3eb18 Merge branch '1.7' 2018-04-22 18:19:29 +09:00
Takeshi KOMIYA
81946e423a Let docutils know the location of `docutils.conf` for Sphinx 2018-04-22 17:16:12 +09:00
Takeshi KOMIYA
61bf7c44df Fix #4717: latex: Compilation for German docs failed with LuaLaTeX and XeLaTeX 2018-04-21 18:47:11 +09:00
Michael Goerz
4a2b227376 Allow imgcls as class for SVG Graphviz <object>
For consistency, the `<object>` tag for the SVG output of a
inheritance-diagram should have the same `class="inheritance"` attribute
that the corresponding `<img>` tag for the PNG format has. This allows
to define the CSS attribute

    object.inheritance {
        max-width: 100%;
    }

which for SVG (unlike PNG) actually works and makes sense.

Added a test for inheritance-diagrams in SVG.
2018-04-21 00:59:27 -04:00
Michael Goerz
b689fb1c12 Wrap graphviz diagrams in <div class="graphviz">
The graphviz extension is modified to wrap the `<img>` and `<object>`
tags it creates for diagrams in the png and svg formats in an additional
`<div class="graphviz">...</div>` tag. This allows to apply additional
CSS styling to the the diagrams that cannot be applied to `<img>` and
`<object>` directly. Most notably,

    div.graphviz {
      overflow: auto;
    }

would be a useful style that the standard themes might consider.

In any case, it would allow users to add custom CSS code to their
project that gets around the problems with inheritance-diagrams
discussed in https://github.com/sphinx-doc/sphinx/issues/4865

The tests for the `grahviz` and `inheritance_diagram` have been modified
to test for the presence of the additional `<div>` tag.

Closes #4865
2018-04-20 12:43:12 -04:00
Takeshi KOMIYA
86df550c66 Fix short underline 2018-04-20 23:16:41 +09:00
Takeshi KOMIYA
6977270b66 Fix #4850: latex: footnote inside footnote was not rendered 2018-04-20 21:39:42 +09:00
Michael Tesch
e368ac21ef proposed enhancement #4830 2018-04-20 13:13:00 +02:00
Jon Dufresne
365c93f227 Update all pypi.python.org URLs to pypi.org
For details on the new PyPI, see the blog post:

https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-04-18 19:51:48 -07:00
Takeshi KOMIYA
96c5605374 Merge branch '1.7' 2018-04-18 11:35:10 +09:00
Takeshi KOMIYA
ef10ca11fc Fix toctree directive tries to glob for URL having query_string 2018-04-16 16:01:59 +09:00
Takeshi KOMIYA
9826d49cbd Add testcase for toctree directive 2018-04-15 13:38:58 +09:00
Takeshi KOMIYA
b1a0e8062f Fix #4767: html: search highlighting breaks mathjax equations 2018-04-15 00:30:53 +09:00
Takeshi KOMIYA
c0c9a41400
Merge pull request #4834 from lamby/895553-sphinx-please-make-the-set-object-description-reproducible
Ensure set object descriptions are reproducible.
2018-04-14 21:15:19 +09:00
Chris Lamb
0ffc27b7fa Ensure the set object description is reproducible.
Whilst working on the Reproducible Builds effort [0], we noticed
that sphinx could generate output that is not reproducible.

In particular, the rendering of `set` objects in default arguments
and elsewhere is currently non-determinstic. For example:

    class A_Class(object):
        a_set = {'a', 'b', 'c'}

Might be rendered as any of:

     {'a', 'b', 'c'}
     {'a', 'c', 'b'}
     {'b', 'a', 'c'}
     {'b', 'c', 'a'}
     {'c', 'a', 'b'}
     {'c', 'b', 'a'}

Patch attached that sorts the contents of sets whilst rendering.
This is parallel to the `dict` key sorting.

This was originally filed in Debian as #895553 [1].

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/895553

Signed-off-by: Chris Lamb <lamby@debian.org>
2018-04-14 10:30:54 +01:00
Takeshi KOMIYA
557514330f Merge branch '1.7' 2018-04-14 15:46:31 +09:00
Takeshi KOMIYA
af4647c492 Merge branch '1.7' 2018-04-14 15:43:38 +09:00
Takeshi KOMIYA
5ef8da518f Fix #4784: latex_show_urls assigns incorrect footnote numbers 2018-04-12 23:40:15 +09:00
Takeshi KOMIYA
31d6576871
Merge pull request #4822 from tk0miya/4543_fix_testcase_for_partialmethod
Fix #4543: testcase for partialmethod is failed with py3.6.5
2018-04-09 01:56:27 +09:00
Takeshi KOMIYA
245e7d7bab Fix #4812: autodoc ignores type annotated variables 2018-04-08 23:51:01 +09:00
Takeshi KOMIYA
aefb3bbaaa Fix #4543: testcase for partialmethod is failed with py3.6.5 2018-04-08 21:54:00 +09:00
Takeshi KOMIYA
bd2967f1d2 Add :confval:epub_css_files 2018-04-06 13:11:24 +09:00
Takeshi KOMIYA
5efecd2150 Add :confval:html_css_files 2018-04-06 13:11:24 +09:00
Takeshi KOMIYA
47918f365e Merge branch 'master' into refactor_config 2018-04-02 10:47:47 +09:00
Takeshi KOMIYA
bc63dc8450 Rename Config.read() to Config.from_conf_py() 2018-04-01 20:07:45 +09:00
jfbu
bfdf0d1e83 Merge branch '1.7' 2018-03-30 22:50:55 +02:00
jfbu
38dc048bce Fix broken LateX customization via templates (closes: #4795) 2018-03-29 14:58:32 +02:00
jfbu
c59a0ccae1 Fix autosummary latex table colspec (closes #4790) 2018-03-28 10:03:18 +02:00
Takeshi KOMIYA
181fb1093d Now Config.read() takes a filename instead (dirname, filename) 2018-03-28 00:58:40 +09:00
Takeshi KOMIYA
9e0089b252 Fix #4769: autodoc loses the first staticmethod parameter 2018-03-24 00:53:07 +09:00
Takeshi KOMIYA
42263a07a6
Merge branch 'master' into add_override_option 2018-03-24 00:44:11 +09:00
Takeshi KOMIYA
78cbf96158 Deprecate Config.check_types() 2018-03-24 00:29:11 +09:00
Takeshi KOMIYA
3d8cb12497 Raise ExtensionError from Config class instead application class 2018-03-24 00:27:03 +09:00
Takeshi KOMIYA
e4ecb97d5a refactor testcase for config 2018-03-23 23:41:09 +09:00
Takeshi KOMIYA
ba83214386 Refactor: Add Config.read() as a constructor
To simplify Config.__init__() method, this separates conf.py parsing
feature to Config.read() method.
This allows to instantiate config object simply.
2018-03-23 23:40:28 +09:00
Takeshi KOMIYA
f9753e30de Merge branch '1.7' 2018-03-21 20:55:30 +09:00
Christer Bystrom
a7aac6956d Closes #4520 - acidic: Subpackage not in toc. The rule of skipping folders with only an empty __init__.py has been removed. The reason for this is that it was never working consistently in the first place and made the code unnecessary hard to reason about. Tests for the TOC generation have been added, as well as tests for the exclude mechanism since they are coupled. One test (test_ext_apidoc.py::test_exclude) has also been modified to reflect the new behaviour. 2018-03-21 14:35:58 +09:00
Takeshi KOMIYA
1a43d47c33 Add a new keyword argument `override` to Application APIs 2018-03-21 00:23:44 +09:00
Takeshi KOMIYA
cd08872cc0 Fix existence check for JRE was broken 2018-03-20 23:35:42 +09:00
Takeshi KOMIYA
cf3de7d62b
Merge pull request #4758 from tk0miya/epub_escape_toc.ncx
epub: Fix docTitle elements of toc.ncx is not escaped
2018-03-20 23:08:10 +09:00
Takeshi KOMIYA
9891924485 epub: Fix docTitle elements of toc.ncx is not escaped 2018-03-20 20:28:02 +09:00
Takeshi KOMIYA
049df5d5e1 test: Suppress DeprecationWarning 2018-03-20 20:27:05 +09:00
Takeshi KOMIYA
2c7d08ee47 Merge branch '1.7' 2018-03-19 23:46:15 +09:00
Takeshi KOMIYA
c271cc4542 Use template for generating .qhp file 2018-03-18 12:33:03 +09:00
Takeshi KOMIYA
dc3faa57b4 Add testcase for qthelp (.qhp files) 2018-03-18 12:33:00 +09:00
Takeshi KOMIYA
dfd550eca6 builder: Use template for generating .qhcp file 2018-03-18 12:32:56 +09:00
Takeshi KOMIYA
f3b50ebef0 Add testcase for qthelp 2018-03-18 12:32:53 +09:00
Takeshi KOMIYA
39835bf885 Fix #4720: message when an image is mismatched for builder is not clear 2018-03-18 01:35:42 +09:00
Takeshi KOMIYA
9efaf18852 Merge branch '1.7' 2018-03-18 01:21:01 +09:00
Jean-François B
e1e46cdf8b
Merge pull request #4729 from jfbu/latex_equation_nophantom
Fix vertical space before equation in latex (closes: #4574)
2018-03-15 10:29:10 +01:00
Takeshi KOMIYA
4cebc4399c Merge commit '6694981dd6939ab876b27d4e20a8128561c307ac' 2018-03-15 02:02:21 +09:00
Takeshi KOMIYA
f2a23b761e Fix #4543: test for autodoc fails with python 3.5.3 2018-03-13 23:23:15 +09:00
jfbu
711b8ecf70 Fix vertical space before equation in latex (closes: #4574) 2018-03-11 11:36:16 +01:00
Takeshi KOMIYA
e4fd16af9f
Merge pull request #4719 from tk0miya/relax-numref-on-sections
Relax numref on sections
2018-03-08 20:39:08 +09:00
Takeshi KOMIYA
88abc67bf8 Merge branch '1.7' into relax-numref-on-sections 2018-03-08 01:11:12 +09:00
Takeshi KOMIYA
31db987d68 Update testcases 2018-03-08 01:11:07 +09:00
Takeshi KOMIYA
5c07c053e4
Merge pull request #4715 from tk0miya/4611_fix_epubfilename
Fix filename of epub (refs: #4611)
2018-03-08 00:59:58 +09:00
Takeshi KOMIYA
11fa47769b Fix filename of epub (refs: #4611) 2018-03-07 10:53:01 +09:00
Takeshi KOMIYA
9bd3aaf3dc
Merge branch '1.7' into 4701_viewcode 2018-03-07 10:34:46 +09:00
Takeshi KOMIYA
f1c6c22e84 Fix #4701: viewcode: Misplaced `<div>` in viewcode html output 2018-03-05 23:46:34 +09:00
Takeshi KOMIYA
fdefe987d5 Fix #4689: autosummary: unexpectedly strips docstrings containing "i.e." 2018-03-04 02:12:13 +09:00
Takeshi KOMIYA
e2f481c956 Merge branch '1.7' 2018-03-03 20:03:45 +09:00
Takeshi KOMIYA
278577c2ef
Merge branch 'master' into improve_i18n 2018-03-01 23:38:38 +09:00
Takeshi KOMIYA
c435bcf8dc Fix #4685: autosummary emits meaningless warnings 2018-03-01 22:29:50 +09:00
Takeshi KOMIYA
bc31485b10 Fix i18n: message catalogs were reset on each initialization 2018-02-25 23:44:38 +09:00
Takeshi KOMIYA
cf62badce9 Add namespace feature to sphinx.locale 2018-02-25 23:44:37 +09:00
Takeshi KOMIYA
f5bc9fd5dd Add testcases 2018-02-25 23:44:37 +09:00
Takeshi KOMIYA
d01d494119 Deprecate env.update()!
To make BuildEnvironment simple, the responsibility of converting
source files to doctrees is moved to Builder class.
2018-02-24 13:06:46 +09:00
Takeshi KOMIYA
a2bce15989 Merge branch '1.7' 2018-02-23 23:44:00 +09:00
Takeshi KOMIYA
cd08a6503c Fix #4664: Reading objects.inv fails again 2018-02-23 10:44:11 +09:00
Takeshi KOMIYA
30cab5c376
Merge branch 'master' into migrate_registry 2018-02-22 20:21:09 +09:00
Takeshi KOMIYA
f6b1abf254
Merge pull request #4594 from tk0miya/4564_rst_prolog_not_working
Change interface of add_source_parser() and add add_source_suffix()
2018-02-22 20:19:13 +09:00
Takeshi KOMIYA
5789b25847 Change interface of add_source_parser() and add add_source_suffix() 2018-02-21 10:54:49 +09:00
Takeshi KOMIYA
9c6d4f1308 Add simple wrapper to register nodes 2018-02-21 00:28:03 +09:00
Jakob Lykke Andersen
bde93246c6 C++, parse 'this' in expressions. 2018-02-19 20:58:55 +01:00
Jakob Lykke Andersen
7d49a5311f C++, parse explicit casts and typeid in expression 2018-02-19 20:58:10 +01:00
Takeshi KOMIYA
56fe1d0414
Merge pull request #4644 from tk0miya/4641_toctree_glob_and_url
Fix #4641: A external link in TOC cannot contain "?" with ``:glob:`` option
2018-02-20 01:50:54 +09:00
Takeshi KOMIYA
18efa1a63a refactor: Store enumerable_nodes to registry 2018-02-20 01:32:30 +09:00
Takeshi KOMIYA
4073d4e850 Fix flake8 violations 2018-02-20 00:08:44 +09:00
Takeshi KOMIYA
938ba386ed Merge branch '1.7' 2018-02-20 00:02:57 +09:00
Takeshi KOMIYA
63f6603297
Merge pull request #4651 from tk0miya/fix_flake8_violations
Fix flake8 violations
2018-02-19 23:57:00 +09:00
Takeshi KOMIYA
d2b2cefe69
Merge pull request #4642 from tk0miya/4611_epubcheck
test: Run epubcheck as a testing
2018-02-19 23:31:35 +09:00
Takeshi KOMIYA
07de0ed10b Fix #4641: A external link in TOC cannot contain "?" with `:glob:` option 2018-02-19 23:27:57 +09:00
Takeshi KOMIYA
f7027049b1 Fix flake8 violations 2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
e0a74a3f40
Merge branch '1.7' into 4577_nested_enumlist 2018-02-19 22:48:54 +09:00
Takeshi KOMIYA
d40db5efa2 Fix #4563: autosummary: Incorrect end of line punctuation detection 2018-02-19 14:42:19 +09:00
Takeshi KOMIYA
20613edc03 refactor: Add extract_summary() for easily testing 2018-02-19 14:40:39 +09:00
cocoatomo
f3d13d9ce7 Fix the dirname for testing files 2018-02-19 09:51:30 +09:00
cocoatomo
07d2cdd47b Add a testcase for deterministic msgid order 2018-02-19 08:57:19 +09:00
Takeshi KOMIYA
2523979d26 test: Run epubcheck as a testing 2018-02-19 00:27:45 +09:00
Takeshi KOMIYA
6beab9c5a4 Fix #4577: Enumerated sublists with explicit start with wrong number 2018-02-18 17:29:17 +09:00
Takeshi KOMIYA
f8bb40ab30 Merge branch '1.7' 2018-02-18 12:39:07 +09:00
Roman Kapl
675b8fe48f Fit graphviz images to page.
Use \sphinxincludegraphics, that's what the core image directives use
and it handles fitting properly.
2018-02-17 10:07:00 +09:00
Roman Kapl
4a913e5cee Fit graphviz images to page.
Use \sphinxincludegraphics, that's what the core image directives use
and it handles fitting properly.
2018-02-16 18:16:32 +01:00
Takeshi KOMIYA
ec8226daa7
Merge pull request #4612 from tk0miya/optimize_latex_testcase
Use roots/basic for test_latex_logo_if_not_found
2018-02-17 00:25:32 +09:00
Patrick Wingo
e505cbb3be Napoleon: custom section headers (#4387)
* Changes to allow for custom sections in google/numpy comments when parsing with napoleon

* fixed some formatting to pass flake8 tests
2018-02-15 16:16:23 -05:00
Martin Larralde
4d7c90d857 Implement missing napoleon admonitions 2018-02-13 18:02:02 +01:00
Takeshi KOMIYA
5b02d61a04 Use roots/basic for test_latex_logo_if_not_found 2018-02-14 01:35:00 +09:00
Takeshi KOMIYA
795ca7a0c9 Fix #4260: autodoc: keyword only argument separator is not disappeared 2018-02-13 02:13:38 +09:00
Takeshi KOMIYA
6cf0698b0c Merge branch '1.7' 2018-02-12 16:20:00 +09:00
Takeshi KOMIYA
e700f0ba99 Fix #4581: apidoc: Excluded modules still included 2018-02-11 22:10:33 +09:00
Takeshi KOMIYA
e5adf8ce91 Merge branch '1.7-release' 2018-02-11 19:35:48 +09:00
Takeshi KOMIYA
ae38d556b7 Combine tests for autosectionlabel 2018-02-11 13:54:47 +09:00
Kit La Touche
481b1ad535 Remove extraneous import 2018-02-11 13:53:29 +09:00
Kit La Touche
4beb4d0066 Fix unicode issues 2018-02-11 13:53:29 +09:00
Kit La Touche
29a3fd0acb Handle older docutils 2018-02-11 13:53:29 +09:00
Kit La Touche
f21b9d5892 Use rawsource in autosectionlabel
Fixes #4027.
2018-02-11 13:52:27 +09:00
Takeshi KOMIYA
e84ba569a2 Merge branch '1.7-release' 2018-02-10 15:46:48 +09:00
Takeshi KOMIYA
0f1168308b
Merge branch '1.7-release' into 4560_i18n_compilation_problem 2018-02-10 11:53:14 +09:00
Zac-HD
b62628f678 Avoid misreporting line number 2018-02-09 11:05:26 +11:00
Zac-HD
68bccb01ac Get correct filename for each doctest block
This is complicated because doctests may be included from other files,
eg. dosctrings in a Python module.
2018-02-09 11:05:25 +11:00
Zac-HD
973f2680d6 Add ext.autodoc + ext.doctest test root 2018-02-09 10:39:25 +11:00
Takeshi KOMIYA
a9f370bc12 test: Remove function based directives 2018-02-08 13:50:25 +09:00
Takeshi KOMIYA
afbd27f996 Fix i18n: message catalogs are not compiled when specific build (refs: #4560)
sphinx-build skips message catalog builds if specific filename are given
as arguments.
2018-02-08 12:44:15 +09:00
Stephen Finucane
05f851fa19 trivial: Remove 'tests/etree13'
This vendored code had no callers in modern Sphinx and has not been
needed since Python 2.5, which included the ElementTree API [1], was
released. It can be removed in its entirety.

[1] https://docs.python.org/2/library/xml.etree.elementtree.html

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-02-06 20:15:25 +00:00
cocoatomo
8969ae40de Make the log message more translation-friendly 2018-02-07 01:52:22 +09:00
Takeshi KOMIYA
51dfa73576 Fix #4543: test for autodoc fails with python 3.5.3 2018-02-05 14:38:35 +09:00
Takeshi KOMIYA
5558b63315 Merge branch '1.7-release' 2018-02-04 23:24:38 +09:00
Takeshi KOMIYA
656e3be754 Fix #4539: autodoc emits warnings for partialmethods 2018-02-04 23:23:43 +09:00
Takeshi KOMIYA
18c0b23797 Merge branch 'stable' into 1.7-release 2018-02-04 23:20:48 +09:00
Rob Ruana
eb39f5714a
Merge pull request #4047 from AWhetter/fix_2979_2
Properties can have types documented with :type:
2018-02-03 17:42:49 -05:00
Takeshi KOMIYA
498fa379ef
Merge pull request #4540 from tk0miya/4539_warnings_for_partialmethods
Fix #4539: autodoc emits warnings for partialmethods
2018-02-03 17:39:58 +09:00
Takeshi KOMIYA
758e051ed2 Fix #4539: autodoc emits warnings for partialmethods 2018-02-03 17:25:48 +09:00
Takeshi KOMIYA
929379d0ce Fix #2372: autosummary: invalid signatures are shown for type annotated functions 2018-02-03 16:53:26 +09:00
Takeshi KOMIYA
23796c35bf Merge branch '1.7-release' 2018-02-03 02:16:40 +09:00
Takeshi KOMIYA
39d4584248 Merge branch 'stable' into 1.7-release 2018-02-03 02:14:06 +09:00
Daniel Pizetta
d3d4d94970 Add test for fix #4019 2018-02-01 17:29:18 -02:00
Takeshi KOMIYA
4647fcee45 Merge branch '1.7-release' 2018-01-31 20:40:56 +09:00
Takeshi KOMIYA
43ee8d194d intersphinx: Add testcase for inventory fallbacks 2018-01-31 01:22:33 +09:00
Takeshi KOMIYA
a5fea73d0c Merge branch 'master' into integrate_source_suffix_and_source_parsers 2018-01-31 00:04:11 +09:00
Takeshi KOMIYA
2994014cf9
Merge pull request #4247 from jorisvandenbossche/autosummary-attributes
BUG: autosummary to list all class members
2018-01-30 10:44:18 +09:00
Takeshi KOMIYA
00a961a573
Merge pull request #4519 from tk0miya/4209_intersphinx_and_not_versioned_docs
Fix #4209: intersphinx: In link title, "v" should be optional if target has no version
2018-01-30 00:57:44 +09:00
Takeshi KOMIYA
cb5cf26c85 Merge branch 'stable' into 1.7-release 2018-01-30 00:20:45 +09:00
Takeshi KOMIYA
aa47e9decc Fix #4209: intersphinx: In link title, "v" should be optional if target has no version 2018-01-30 00:14:53 +09:00
Takeshi KOMIYA
8494638e45 Fix graphviz: workaround for wrong map ID which graphviz generates 2018-01-29 22:33:23 +09:00
Takeshi KOMIYA
2312a0a5bc Fix #4501: graphviz: epub3 validation error caused if graph is not clickable 2018-01-29 22:32:58 +09:00
Takeshi KOMIYA
3cdb3da2df
Merge branch '1.7-release' into 4275_update_strftime 2018-01-28 20:13:35 +09:00
Takeshi KOMIYA
321b3d49cb Fix #3952: apidoc: module header is too escaped 2018-01-28 18:58:58 +09:00
Takeshi KOMIYA
f3812b0d18 Fix #4275: Formats accepted by sphinx.util.i18n.format_date are limite 2018-01-28 17:22:41 +09:00
Takeshi KOMIYA
10ad257780
Merge branch '1.7-release' into 4490_format_annotation_for_py37 2018-01-28 02:09:57 +09:00
Takeshi KOMIYA
af25fa123d Merge branch 'stable' into 1.7-release 2018-01-28 00:18:33 +09:00
Takeshi KOMIYA
fd2425238e Fix #4490: autodoc: type annotation is broken with python 3.7.0a4+ 2018-01-27 12:26:53 +09:00
Takeshi KOMIYA
0cdd9ee72a Integrate source_suffix and source_parsers (refs: #4474) 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
bece0484e5 source_parsers should fill Parser.supported attribute to let Sphinx know supported formats 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
068bbb1b8a
Merge pull request #4449 from dhellmann/stable-fix-autodoc-for-empty-packages
fix ext.apidoc to include "empty" packages that contain modules
2018-01-25 01:15:36 +09:00
Takeshi KOMIYA
9340a45393 test: Don't use os.errno. Use errno directly 2018-01-25 00:48:37 +09:00
Takeshi KOMIYA
f779fa7ad6 Merge branch 'stable' into 1.7-release 2018-01-25 00:40:21 +09:00
Takeshi KOMIYA
ded638c82b test: Add workaround for python 3.7.0a4+
Since 3.7.0a+, the behavior of typing module has been changed.
As a result, format_annotation() also has been changed.
2018-01-25 00:02:49 +09:00
Doug Hellmann
83f30712b8 fix ext.apidoc to include "empty" packages that contain modules
Commit 2d99648e99 changed the apidoc
extension to ignore packages if the __init__.py file was empty. That
breaks the toctree structure if those packages do contain submodules
and subpackages. This patch adds a check to ensure that empty
__init__.py modules are only skipped if there are no other python
modules in the same directory.

Addresses bug #654

Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-01-23 14:21:03 -05:00
Takeshi KOMIYA
91873f09b8 Merge branch 'stable' into 1.7-release 2018-01-21 16:06:14 +09:00
Aaron Carlisle
e77ca75103 Update test file 2018-01-21 13:18:29 +09:00
Takeshi KOMIYA
896ab3a2f5 Fix #4434: pure numbers as link targets produce warning 2018-01-20 19:43:43 +09:00
jfbu
d2d31e2e7d Fix failed latex test after merge 2018-01-20 10:48:27 +01:00
jfbu
02ee4ec86b Merge branch 'stable' into 1.7-release 2018-01-20 10:38:03 +01:00
Jean-François B
d3058f462d
Merge pull request #4452 from jfbu/4431_fix
Fix "Undefined control sequence \\hlineSomeText" (#4431; refs: #3435)
2018-01-20 10:23:03 +01:00
Takeshi KOMIYA
a78f66a1d3
Merge branch 'stable' into fix-2437 2018-01-20 16:16:20 +09:00
Takeshi KOMIYA
d1d55eb35f Fix broken test 2018-01-20 10:54:53 +09:00
Takeshi KOMIYA
8b8c3d1736 Merge branch 'stable' into 1.7-release 2018-01-20 02:22:35 +09:00
Takeshi KOMIYA
295323d5aa Fix #4415: autodoc classifies inherited staticmethods as regular methods 2018-01-20 01:10:47 +09:00
Takeshi KOMIYA
cbb10d61f7 Fix #4415: autodoc classifies inherited classmethods as regular methods 2018-01-20 01:10:47 +09:00
Takeshi KOMIYA
f91c732749 Fix #4438: math: math with labels with whitespace cause html error 2018-01-19 23:13:21 +09:00
Takeshi KOMIYA
357fba4467 Fix #4412: Updated jQuery version from 3.1.0 to 3.2.1 2018-01-19 14:45:11 +09:00
jfbu
9aca29a781 Fix "Undefined control sequence \\hlineSomeText" (#4431; refs: #3435) 2018-01-18 15:35:59 +01:00
Takeshi KOMIYA
dc3d03da1b test: Fix broken testcases 2018-01-15 01:01:13 +09:00
Takeshi KOMIYA
b688941b09
Merge branch 'master' into feature-text-secnumbers 2018-01-15 00:21:50 +09:00
Robin Jarry
c24dffc5a8 autodoc: only mock specified modules with their descendants
Do not mock the ancestors of the specified modules in
autodoc_mock_imports. Only mock the modules themselves and their
descendants (as specified in the docs).

Fix the test configs accordingly.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2018-01-13 17:24:02 +01:00
Takeshi KOMIYA
4d040abafb Fix #4079: Add notranslate class to let Google Translate know they are not translatable 2018-01-13 20:25:49 +09:00
Takeshi KOMIYA
c50b21af0e
Merge branch 'master' into 3570_drop_typing_from_typehints 2018-01-13 14:43:31 +09:00
Takeshi KOMIYA
7e365d97ac
Merge pull request #4235 from anarcat/manpage-links
add link to manpages in HTML builder
2018-01-13 14:28:11 +09:00
Takeshi KOMIYA
f5b1aff2d1
Merge branch 'master' into 4183_follow_pep440 2018-01-13 13:12:32 +09:00
Takeshi KOMIYA
7292386a03 Fix #3570: autodoc: Do not display typing. module for type hints 2018-01-13 12:08:31 +09:00
Takeshi KOMIYA
76c5395c5b Merge remote-tracking branch 'atodorov/inheritance_top_class' 2018-01-13 11:08:31 +09:00
Sergey B Kirpichev
b1c100ca3b autodoc: make full reference for classes, aliased with "alias of"
We do this here only if class belongs to the different module.

Closes sphinx-doc/sphinx#2437
2018-01-13 00:19:19 +03:00
Antoine Beaupré
90f7c7ef3f
add link to manpages in HTML builder
It is useful to have the HTML documentation builder actually link to
real rendered versions of HTML manpages in its output. That way people
can click on manpages to get the full documentation. There are a few
services offering this online, so we do not explicitly enable one by
default, but the Debian manpages repository has a lot of the manpages
pre-rendered, so it is used as an example in the documentation.

The parsing work is done by a transformer class that parses manpage
objects and extract name/section elements. Those then can be used by
writers to cross-reference to actual sites. An implementation is done
in the two HTML writers, but could also apply to ePUB/PDF writers as
well in the future.

This is not enabled by default: the `manpages_url` configuration item
needs to be enabled to point to the chosen site. The `page`, `section`
and `path` parameters are expanded through Python string formatting in
the URL on output.

Unit tests are fairly limited, but should cover most common use-cases.
2018-01-11 13:20:34 -05:00
Takeshi KOMIYA
33fd1f446a latex: Do not display Release label if :confval:release is not set 2018-01-10 21:35:21 +09:00
Takeshi KOMIYA
161f269202
Merge pull request #4406 from sphinx-doc/stable
stable to master
2018-01-10 01:01:09 +09:00
Takeshi KOMIYA
e77267dd94 Add tests for smartquotes 2018-01-09 23:37:37 +09:00
Takeshi KOMIYA
326d7e64ce Merge branch 'master' into dont_emit_system_message_on_autodoc_warning 2018-01-08 20:19:36 +09:00
Takeshi KOMIYA
fb921c7457 Merge branch 'master' into refactor_autodoc 2018-01-08 15:10:43 +09:00
Takeshi KOMIYA
42000e0f00
Merge pull request #4382 from tk0miya/refactor_PYTHONWARNINGS
refactor warnings settings on testing
2018-01-08 14:24:37 +09:00
Takeshi KOMIYA
273f834157 Fix #4081: Warnings and errors colored the same when building 2018-01-08 12:29:06 +09:00
Takeshi KOMIYA
7ba54500fc Fix #4183: doctest: `:pyversion:` option also follows PEP-440 specification 2018-01-08 11:59:50 +09:00
Joel Nothman
db415ba05c Avoid duplicate calls to autodoc-process-docstring (#4198) 2018-01-08 11:09:29 +09:00
Takeshi KOMIYA
2ae7f26fe5 test: Adjust testcase for #3962 2018-01-07 12:09:41 +09:00
Takeshi KOMIYA
e18c49ec59 Merge commit '4277eb13315d5649401190df86874b3832ddfa3e' 2018-01-07 01:13:32 +09:00
Takeshi KOMIYA
e1d8615ce4 Don't use add_documenter() in sphinx-autogen 2018-01-07 00:05:48 +09:00
Takeshi KOMIYA
23533e48b2 Update PYTHONWARNINGS on tox.ini to reduce meaningless warnings 2018-01-06 20:14:20 +09:00
jfbu
309f38a91f Split out fancy LaTeX macros from `\sphinxcode into \sphinxupquote`
Since #2627 (1.4.4), `\code`, and then again at #3116 (1.5)
`\sphinxcode` which is the new name has become more complicated than the
original `\texttt{#1}`. This was to obtain straight quotes in PDF output,
and to allow long inline literals to break across lines.

This means though that users who want to customize `\sphinxcode`, for
example to not only do `\texttt` but to use some colour, have to copy
about 10 lines of complicated LaTeX macros which should be not modified
in any way. This commit moves all the code out of `\sphinxcode` into a
separate macro `\sphinxupquote`.

The LaTeX writer will output `\sphinxcode{\sphinxupquote{foo}}` in place
of former `\sphinxcode{foo}`. Moving the `\texttt` from innermost to
outermost level is with no consequence.
2018-01-03 08:46:19 +01:00
Takeshi KOMIYA
850e9a9c5c Fix links to external option docs with intersphinx (refs: #3769) 2018-01-02 01:01:29 +09:00
Takeshi KOMIYA
5d6413b712 Deprecate sphinx.ext.autodoc.add_documenter() and AutoDirective._register 2018-01-01 12:13:29 +09:00
Takeshi KOMIYA
023dad6c66
Merge pull request #4335 from zufallsgenerator/fix-4334-apidoc-toc-inconsistencies
Closes #4334: sphinx-apidoc: References to non-existing files in TOC
2018-01-01 12:03:32 +09:00
Takeshi KOMIYA
5562e76585 A happy new year! 2018-01-01 01:10:10 +09:00
Takeshi KOMIYA
f1f6ca8cc9 Merge branch 'happy_new_year' into master 2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b A happy new year! 2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
e8402bf0ee Merge branch 'stable' 2017-12-31 21:13:34 +09:00
Takeshi KOMIYA
1cae50f748
Merge branch 'stable' into 4a164170-33e9-4df3-aad2-a13af37b6b43 2017-12-31 20:43:16 +09:00
Takeshi KOMIYA
40186077d7
Merge pull request #4358 from tk0miya/ensure_parallelism
Ensure parallelism
2017-12-30 10:04:22 +09:00
Takeshi KOMIYA
1d3362425b Add app.is_parallel_allowed() 2017-12-30 00:54:55 +09:00
Stephen Finucane
9a3ebaaff5 Resolve warning filter issues
There's an issue with 'pkgutils' and namespace packages. This has been
reported against setuptools [1], but until this is resolved, we simply
need to live with it. Ensure said warnings are filtered from tox too and
remove some unnecessary ones.

[1] https://github.com/pypa/setuptools/issues/1111

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:32 +00:00
Stephen Finucane
7c0723fd46 tests: Remove 'tests/run.py'
This is no longer necessary. One test needs to be modified to deal with
how 'python -m pytest' modifies the PATH.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:31 +00:00
Stephen Finucane
529c96a3c9 tests: Use 'pytest_sessionstart'
This is the recommended way to do pre-session configuration in pytest if
not using session fixtures [1].

With this, we're able to remove the custom 'test/run.py' script in its
entirety and run 'pytest' like everyone else does. We'll do this
separately to keep things simple.

[1] https://stackoverflow.com/a/12600154/613428

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:26 +00:00
Stephen Finucane
c33ecd1f8f tests: Use 'pytest_report_header'
This is the recommended way to print extra headers [1].

[1] https://docs.pytest.org/en/latest/example/simple.html#adding-info-to-test-report-header

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:07 +00:00
Stephen Finucane
9348c4bea1 tests: Stop explicitly checking for modules
This will have already been handled by setuptools. If the user isn't
using this then they've dug their own grave.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:04 +00:00
Jakob Lykke Andersen
f3c05adebc C++, fix handling of (templated) operators 2017-12-28 16:50:32 +01:00
Jakob Lykke Andersen
9766c2f339 C++, support the template disambiguator for dependent names. 2017-12-24 16:31:10 +01:00
Takeshi KOMIYA
a9efb2517a Fix flake8 violations 2017-12-23 21:21:21 +09:00
Jean-François B
f5dfdfcfe2
Merge pull request #4332 from jfbu/latex_math_numfig
Let LaTeX obey :confval:`math_numfig` for equation numbering
2017-12-21 19:32:10 +01:00
Christer Bystrom
2d99648e99 Closes #4334: sphinx-apidoc: Don't generate references to non-existing files in TOC 2017-12-21 19:06:17 +01:00
Takeshi KOMIYA
e2e907b3ee Fix broken test_autodoc 2017-12-22 00:53:53 +09:00
Takeshi KOMIYA
ffa9d48d0e
Merge branch 'master' into ignore__all__ 2017-12-22 00:28:26 +09:00
Takeshi KOMIYA
389b6d2ec1
Merge pull request #4324 from tk0miya/refactor_test_autodoc2
test_autodoc: Separate testdata (python objects) and testcases
2017-12-22 00:25:44 +09:00
jfbu
3bb61e9094 Let LaTeX obey :confval:math_numfig for equation numbering 2017-12-21 12:23:20 +01:00
Takeshi KOMIYA
ec240614d9 test_autodoc: Separate testdata (python objects) and testcases 2017-12-21 12:12:13 +09:00
jfbu
43bed034cd Add test for latex obey numfig_secnum_depth feature 2017-12-20 23:28:24 +01:00
jfbu
0a66d51cbc Merge branch 'stable' 2017-12-20 21:52:45 +01:00
jfbu
1ee2c2fb95 Re-use some existing test with extras 2017-12-20 21:30:05 +01:00
Kevin Keating
e932ff5ad2 Closes #947: autodoc now supports ignore-module-all to ignore a module's __all__ 2017-12-20 15:07:33 -05:00
Takeshi KOMIYA
e2bf2ef11d
Merge pull request #4166 from jahn/math_numfig
Number equations across pages and by section (fix #3991, #4080)
2017-12-21 00:39:44 +09:00
Jakob Lykke Andersen
42f557d4b0 Merge branch 'master' of github.com:sphinx-doc/sphinx 2017-12-20 09:06:22 +01:00
Jakob Lykke Andersen
c7a145cc18 C++, handle defaulted constrained template type parameters 2017-12-20 09:05:34 +01:00
Takeshi KOMIYA
7a194f5296 autodoc: Use logging module to emit warnings 2017-12-20 01:40:45 +09:00
Stephen Finucane
c8d56236c9 tests: Ignore roots using 'collect_ignore'
This is slightly cleaner than how we're doing this at the moment.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
Stephen Finucane
e243e82723 tests: Ignore tests using 'collect_ignore'
Per the pytest docs [1], this is the preferred way to ignore tests. This
necessitates removing the 'test-async' target as it no longer makes any
sense.

[1] https://docs.pytest.org/en/latest/example/pythoncollection.html

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
Stephen Finucane
41c19ddf91 tests: Skip tests with missing binaries
While there are already some skips included here, they clearly aren't
doing their job and the test fail locally. Resolve this.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-18 20:10:18 +00:00
jfbu
245876c6e7 Add test for latex_toplevel_sectioning 2017-12-18 08:27:59 +01:00
Takeshi KOMIYA
464f94c238 deprecate formatargspec() and format_annotation() 2017-12-17 15:25:44 +09:00
Oliver Jahn
44708b03dc
Merge branch 'master' into math_numfig 2017-12-16 11:15:07 -05:00
Takeshi KOMIYA
5bc5b8f013 Merge branch 'stable' 2017-12-16 00:53:55 +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
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
acf5eaae84
Merge pull request #4294 from tk0miya/refactor_parser
Refactor docutils components of Sphinx (reader, parser, FileInput and so on).
2017-12-14 23:13:28 +09:00
Takeshi KOMIYA
a82a921d62
Merge pull request #4174 from stephenfin/argparse-integration-continued
Argparse integration (continued)
2017-12-14 22:07:28 +09:00
Takeshi KOMIYA
6dae5db9af Fix SphinxRSTFileInput should expand tabs 2017-12-13 20:49:50 +09:00
Takeshi KOMIYA
07c5348a56 Add test_io.py 2017-12-12 18:24:53 +09:00
jfbu
ad4481eb15 Merge branch 'stable' 2017-12-11 22:54:34 +01:00
jfbu
70f8d4ddfc Support `:emphasize-lines:` in PDF output (closes #1238) 2017-12-10 12:37:36 +01:00
Jakob Lykke Andersen
f3b440777b C++, support explicit member instantiations
See michaeljones/breathe#325
2017-12-04 22:38:37 +01:00
Stephen Finucane
d46273ca4a quickstart: Rework how we collect extensions
This is a little more flexible than the existing set up and makes
maximum use of argparse capabilities.

This has the side-effect of no longer including configuration for the
'sphinx.ext.todo' extension when said extension is not enabled.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-03 19:24:58 +00:00
Stephen Finucane
4c0f657ee6 quickstart: Rework 'do_prompt' function
The 'd' and 'key' values are used on a single line. Move these outside
the function to allow us to do other things with this function.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-03 19:24:58 +00:00
Jakob Lykke Andersen
0ff217e1b2 C++, fix hyperlinking of nested names 2017-12-01 20:07:35 +01:00
Matthew Fernandez
1b664248f4 update todo extension test to test multiple todolists
This tests for regression of previous bug #4214: Two todolist directives break
sphinx-1.6.5.
2017-11-26 20:54:32 -08:00
Matthew Fernandez
9158a5be1b remove todo_emit_warnings override from a test that doesn't need it 2017-11-26 20:54:06 -08:00
Jakob Lykke Andersen
d6ec677c61 C++, parse decltype(<expr>)
Fixes sphinx-doc/sphinx#4094
2017-11-26 21:41:15 +01:00
Jakob Lykke Andersen
6e721e98fe C++, parse more unary expressions
Last part, fixes sphinx-doc/sphinx#4114
2017-11-26 20:32:24 +01:00
Roman Bogorodskiy
6bbfa9ac45 Add autosectionlabel_max_depth config option
This option defines maximum section depth that labels will be
generated for by the autosectionlabel extension.

This is useful when there are a lot of sections of the similar
structure, for example:

 Releases
 ========
 Release 1
 ---------
 Changes
 ^^^^^^^

 Date
 ^^^^

 ...

 Release N
 ---------
 Changes
 ^^^^^^^

 Date
 ^^^^

This way there'll be warnings about duplicate labels. Setting
autosectionlabel_max_depth allows to skip sections deeper than
'Releases' in the example above.

By default it's None, so things will not change and labels will
be generated for all sections unless configured otherwise.
2017-11-26 18:20:31 +04:00
Jakob Lykke Andersen
0aa9d4c87e C++, parse more types of integer literals
Fixes case 0 of sphinx-doc/sphinx#4114
2017-11-26 12:45:27 +01:00
Jakob Lykke Andersen
697248aec7 Merge branch 'cxx2a-concepts' of git://github.com/mickk-on-cpp/sphinx into mickk-on-cpp-cxx2a-concepts 2017-11-20 22:31:37 +01:00
Joris Van den Bossche
098add17f6 BUG: autosummary to list all class members 2017-11-17 09:45:01 +01:00
Takeshi KOMIYA
a605f2b619
Merge pull request #4234 from pv/autosummary-importfix
Fix issue in usage of import_module in autosummary
2017-11-12 11:30:42 +09:00
Pauli Virtanen
189e25ac0e Fix issue in import_module returning wrong module 2017-11-11 18:00:03 +01:00
Takeshi KOMIYA
baaa0e3640 Merge branch 'stable' 2017-11-12 01:53:28 +09:00
Takeshi KOMIYA
c1555638ae
Merge pull request #2299 from scVENUS/fix_attribute_docstrings_of_imported_class
Fix #2298: automodule fails to document a class attribute.
2017-11-12 01:48:48 +09:00
Matthew Woodcraft
e99eb09429 Fix Python 2 problems in test_build_text 2017-11-07 23:51:45 +00:00
Matthew Woodcraft
604db47228 #3998: Toctree section numbering in plain text output 2017-11-07 23:10:11 +00:00
Matthew Woodcraft
6b15c9c1c7 #3998: Add optional section numbering in plain text output
Controlled by new config values: text_add_secnumbers and
text_secnumber_suffix.
2017-11-05 22:51:38 +00:00
Pauli Virtanen
d5bea6b85a autosummary: catch all exceptions when importing modules
Module imports may raise any exceptions, including SystemExit, which
need to be caught.
2017-11-02 23:04:43 +01:00
Takeshi KOMIYA
f46c91b652 Merge branch 'stable' 2017-11-02 00:49:10 +09:00
Takeshi KOMIYA
c4e364ee63 Rename tests directory; roots/test-doctest -> roots/test-ext-doctest 2017-11-02 00:03:29 +09:00
Takeshi KOMIYA
c3fffc521b Reduce warnings on testing 2017-10-31 22:57:28 +09:00
David Lechner
831f89a687 Closes #3160: Use <kbd> tag for :kbd: role in html writers 2017-10-30 10:23:55 -05:00
Takeshi KOMIYA
215be8e5bd
Merge pull request #4177 from tk0miya/improve_theme_sidebars
HTML themes can set up default sidebars through ``theme.conf``
2017-10-30 13:36:10 +09:00
Takeshi KOMIYA
d7d2e823fc sphinx.config.ENUM allows to validate items of lists or tuples 2017-10-29 22:23:15 +09:00
lucdanton
9aac2420d3 C++: remove function concepts. 2017-10-26 08:15:09 +02:00
Takeshi KOMIYA
47049ce5f6 Merge branch 'master' into improve_theme_sidebars 2017-10-25 23:53:44 +09:00
Dmitry Shachnev
eb934cb665 Add a test for the previous change 2017-10-23 23:12:10 +03:00
Takeshi KOMIYA
e3baf213f5 Merge branch 'stable' 2017-10-23 23:04:32 +09:00
Takeshi KOMIYA
47c869c89a Fix flake8 and style-check violations 2017-10-23 23:01:18 +09:00
Takeshi KOMIYA
7e7b389eed Merge branch 'stable' 2017-10-23 12:23:58 +09:00
Takeshi KOMIYA
b78f3090a0 HTML themes can set up default sidebars through `theme.conf` 2017-10-22 15:14:02 +09:00
Takeshi KOMIYA
ffad4f08c7 Fix #3739: `:module:` option is ignored at content of pyobjects 2017-10-21 21:37:44 +09:00
Takayuki SHIMIZUKAWA
101b289351 Merge pull request #4097 from stephenfin/argparse-integration
Fix #3259: Argparse integration
2017-10-21 18:58:55 +09:00
Takeshi KOMIYA
cd4964249f Merge branch 'stable' into 1086bfa6-fa4c-485f-bd17-6aa1ca49f851 2017-10-21 13:48:25 +09:00
Takeshi KOMIYA
f11cff555d Merge branch 'stable' 2017-10-21 13:45:56 +09:00
Takeshi KOMIYA
f224f3ca25 Merge pull request #4157 from tk0miya/4156_parse_class_comment
Fix #4156: failed to parse class comment
2017-10-21 13:45:33 +09:00
Takeshi KOMIYA
4448902977 Fix #4169: Chinese language doesn't trigger Chinese search automatically 2017-10-21 01:42:53 +09:00
Takeshi KOMIYA
7aab8c3b07 Fix #4156: failed to parse class comment 2017-10-19 22:24:40 +09:00
Matthew Fernandez
6553b2ed32 add a test that confirms #1020 2017-10-18 18:39:56 -07:00
Matthew Fernandez
08f6f7ba4d fix comment typo 2017-10-18 18:39:27 -07:00
Oliver Jahn
783cff44b3 add tests for math_numfig 2017-10-18 16:52:28 -04:00
Takeshi KOMIYA
1dfe978fcb Support more complex starred asssignment case 2017-10-19 00:10:46 +09:00
Takeshi KOMIYA
4fdcae0584 Fix #4158: pycode.parser failed to parse starred assignment 2017-10-18 21:37:09 +09:00
Takeshi KOMIYA
3369d9a03a Merge branch 'stable' 2017-10-16 21:03:38 +09:00
Peter Cock
11d84b7895 pycode tests for multiple assignment via tuple/list 2017-10-13 14:21:13 +01:00
Stephen Finucane
87630c8ae8 sphinx-apidoc: Convert to argparse
This is pretty self-explanatory, with most changes coming about as a
side-effect of argparse vs. optparse API differences.

Lowercase characters are used in help strings, per argparse conventions.
Some tests are converted because argparse natively supports unicode.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-10-09 16:28:39 +01:00
Takeshi KOMIYA
1292089255 Close #1448: qthelp: Add new config value; qthelp_namespace 2017-10-08 23:22:56 +09:00
cocoatomo
35d10033c2 Add (optional) u prefixes for Python 2.7 2017-10-08 01:55:53 +09:00
cocoatomo
73fd3f90bf Wrap the line too long 2017-10-08 01:29:07 +09:00
cocoatomo
ff88c8b730 Display reference texts of original and translated messages 2017-10-08 00:06:00 +09:00
cocoatomo
1f0c3ce875 Re-arrange WARNING messages about reference inconsistencies 2017-10-07 10:47:59 +09:00
Takeshi KOMIYA
c57cd9cb06 Merge branch 'stable' 2017-10-05 00:48:50 +09:00
Takeshi KOMIYA
50640b700b Fix #4070, #4111: crashes when the warning message contains format strings (again) 2017-10-05 00:00:48 +09:00
Jakob Lykke Andersen
6d61098058 C++, add test case for sphinx-doc/sphinx#4096 2017-10-03 14:35:10 +02:00
Stephen Finucane
1f5ed02225 sphinx-quickstart: Move code to 'sphinx.cmd'
We're going to move the executable's here (or at least those that part
of the core library). The 'sphinx-build' executable was already moved,
so lets do 'sphinx-quickstart' next.

To avoid breaking packages that are using this feature directly, aliases
for the old 'main' method are included. This is based on what Django
does [1] and, like Django, will allow us to safely remove the old
modules in Sphinx 2.0.

[1] https://github.com/django/django/blob/1.11/django/test/runner.py#L688-L695

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-10-02 15:42:23 +01:00
Takeshi KOMIYA
1892fc18b9 Merge branch 'stable' 2017-10-02 00:41:21 +09:00
Jakob Lykke Andersen
a3b66eb095 Merge pull request #4095 from Andne/cpp-tests
Cleanup the C++/Intersphinx test to avoid std namespace
2017-09-28 21:52:30 +02:00
Jakob Lykke Andersen
b85ea529b8 C++, allow empty template argument lists
See sphinx-doc/sphinx#4094
2017-09-28 20:46:34 +02:00
Andy Neebel
3a0c050af0 Some cleanup to avoid using the std:: namespace 2017-09-28 13:43:46 -05:00
Jakob Lykke Andersen
447c54ae92 C++, adapt sphinx-doc/sphinx#3894 after merge to master
Fixes sphinx-doc/sphinx#4082
2017-09-28 20:10:07 +02:00
jfbu
db36b42e55 Avoid extra space in PDF after image in parsed-literal (refs: Fix #4085) 2017-09-27 12:43:28 +02:00
jfbu
dc129e0532 Fix #4085 Failed PDF build from image in parsed-literal 2017-09-27 09:54:18 +02:00
Takeshi KOMIYA
1ef0351ec1 Merge pull request #3929 from stephenfin/move-sphinx-apidoc-to-ext
apidoc: Move apidoc to ext/apidoc
2017-09-26 15:42:25 +09:00
Takeshi KOMIYA
617bb43cae Comment out broken test cases temporarily 2017-09-24 23:46:31 +09:00
Takeshi KOMIYA
00169a07e6 Merge branch 'stable' 2017-09-24 22:51:23 +09:00
Takeshi KOMIYA
c32233b0e1 Merge commit '63c15998f66eeb42f3fcfef6087a7264645bee6b~1' 2017-09-24 21:36:04 +09:00
Oliver Sanders
261f74bc7a Add test for ext.graphviz alignment. 2017-09-24 17:04:25 +09:00
Takeshi KOMIYA
8f20132926 Merge pull request #4055 from oliver-sanders/fix-graphviz-svg-alignment
Fix ext.graphviz alignment.
2017-09-24 17:03:12 +09:00
Stephen Finucane
96cf498c9e apidoc: Move apidoc to ext/apidoc
The 'sphinx-apidoc' tool is no longer the only kid on the block when it
comes to automatic documentation of Python projects, with the likes of
'sphinx-autoapi' in development [1], and is not really maintained. Given
the fact that the tool is tangential to Sphinx's main goal, there isn't
really anything that warrants its continue existence as a core module.

Signify this by moving the feature to 'ext'. This allows the feature to
continue to exist in the package, but indicates that stability might be
worse than one would expect from the core library.

To avoid breaking packages that are using this feature directly, such as
pbr [3], aliases for the old 'main' method are included. This is based
on what Django does and, like Django, will allow us to safely remove the
old modules in Sphinx 2.0.

[1] https://github.com/rtfd/sphinx-autoapi
[2] https://github.com/sphinx-doc/sphinx/pull/3485#issuecomment-288081223
[3] https://github.com/django/django/blob/1.11/django/test/runner.py#L688-L695

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-09-20 13:42:57 +01:00
jfbu
d0418f9129 Add test for #4066 latex \index indent fix 2017-09-20 10:30:45 +02:00
Oliver Sanders
447582724d Add test for ext.graphviz alignment. 2017-09-18 11:10:19 +01:00
jfbu
f453fe7bf0 Fix #4044 (extra row height in PDF output from empty multicell) 2017-09-11 20:18:35 +02:00
Ashley Whetter
8797ff51b3 Properties can have types documented with :type: 2017-09-06 15:57:11 -07:00
Takeshi KOMIYA
a9b5fe3624 Merge branch 'stable' into 3969_allow_private_instance_vars 2017-09-06 23:52:33 +09:00
Jakob Lykke Andersen
29b1d2f906 Merge pull request #3894 from Andne/cpp-typeorconcept
Improve support for C++ references with intersphinx
2017-08-31 16:58:45 +02:00
Takeshi KOMIYA
8b76d5b064 Merge pull request #4012 from avalentino/docstring-inheritance
Docstring inheritance
2017-08-21 23:31:17 +09:00
Antonio Valentino
96ee24d7c1 Basic test for docstring inheritance 2017-08-19 21:52:30 +02:00
Takeshi KOMIYA
05b621a79a Merge pull request #3961 from gaborbernat/master
fixes #3959 alias/rename support for classes inside inheritence diagrams
2017-08-20 00:41:50 +09:00
Takeshi KOMIYA
feab97e293 Fix flake8 violation 2017-08-20 00:27:07 +09:00
Takeshi KOMIYA
c96b5b67b1 Fix flake8 violation 2017-08-10 10:36:19 +09:00
Bernat Gabor
0c3f9851b3 fixes #3959 alias/rename support for classes inside inheritence diagrams 2017-07-31 18:21:05 +01:00
Takeshi KOMIYA
13be8e03ba Fix #3969: private instance attributes causes AttributeError 2017-07-31 22:49:04 +09:00
Takeshi KOMIYA
d63a678228 Reduce DeprecationWarning 2017-07-31 22:30:48 +09:00
Takeshi KOMIYA
da0fda3b0b Add tests for default-role 2017-07-31 00:46:26 +09:00
Takeshi KOMIYA
56a47cd9b9 Fix #3962: sphinx-apidoc does not recognize implicit namespace packages correctly 2017-07-29 16:04:54 +09:00
Takeshi KOMIYA
abaf1cbb6b Merge branch 'stable' 2017-07-29 16:01:47 +09:00
Takeshi KOMIYA
8683823536 pycode: Replace pgen2 by own parser 2017-07-26 20:51:58 +09:00
Takeshi KOMIYA
6900d19b71 pycode: Add new parser! 2017-07-26 20:51:40 +09:00
Takeshi KOMIYA
b1f80427a7 Add testcase for sphinx.util.docstrings 2017-07-26 20:51:40 +09:00
Takeshi KOMIYA
57667b5766 Add testcase for oneliner 2017-07-26 20:51:40 +09:00
Takeshi KOMIYA
ae3b761184 Add testcase for pycode interface 2017-07-26 20:51:40 +09:00
Jean-François B
8d32f03a86 Merge pull request #3872 from jfbu/literalblock_cappos
Add latex key to configure literal blocks caption position in PDF output
2017-07-23 22:46:39 +02:00
Sam Park
7020f6b41d Add tests 2017-07-15 15:18:49 -07:00
Takeshi KOMIYA
bfd71cd77b Fix #3926: Add `autodoc_warningiserror to suppress the behavior of -W` option 2017-07-15 22:04:56 +09:00
Andy Freeland
7046d17631 Python parameter/variable types should match classes, not all objects
Parameter and variable types in the Python domain have the
counter-intuitive behavior of matching instance methods (or likely any
other objects) rather than classes, e.g.:

```python
class Foo(object):
    def list(self):
        """List some things."""

def bar(x):
    """
    :param x: x
    :type x: list
    """
```

`bar()` will link to `Foo.list()` rather than the standard library
`list` type.
2017-07-12 21:52:38 -07:00
Takeshi KOMIYA
007593fa81 Merge branch 'stable' 2017-07-02 20:28:50 +09:00
Takeshi KOMIYA
dc6a8a5457 test: Fix autosummary testcase 2017-07-02 18:41:03 +09:00
Takeshi KOMIYA
b3e0e29f4c Fix #3900: autosummary could not find methods 2017-07-02 18:26:41 +09:00
Yoshiki Shibukawa
f0766ce4cd fix #3840: epub_uid should be XML Name 2017-06-30 23:37:32 +09:00
Andy Neebel
5ebfd51672 Improve cpp intersphinx support
Now types called out in function declarations will be searched for in
the intersphinx inventory as well
2017-06-26 14:21:52 -05:00
daniel
aecb008213 Changed test case "test_theme_api" to check, if a not needed html_theme_option is not part of the returned, final configuration of theme.get_options().
PR #3893
2017-06-26 09:18:46 +02:00
Takeshi KOMIYA
e57fb74ee5 Merge branch 'stable' 2017-06-25 01:48:23 +09:00
Andy Neebel
bcea04a2f7 Move assignment of srcdir to the right place 2017-06-17 07:49:45 -05:00
Takeshi KOMIYA
8d34bc54dd Fix expected result 2017-06-17 19:45:38 +09:00
Takeshi KOMIYA
27637d73e1 Replace getargspec by Signature class in autodoc module 2017-06-17 18:16:41 +09:00
Takeshi KOMIYA
fd201666a2 Add bound_method hint to Signature class 2017-06-17 18:16:02 +09:00
jfbu
634d76faf1 latex: add option to put literal block captions before or after
According to ``literalblockcappos`` setting in ``'sphinxsetup'``, (t)op
or (b)ottom, the caption will be typeset before or after the literal
block. If typeset above, its distance to frame is now identical to the
setting used for captions of tables (one half of the baseline).

Further keys ``verbatimcontinuedalign`` and ``verbatimcontinuesalign``
allow to horizontally align the continuation hints relative to the
literal block contents: either (l)eft, (c)enter, or (r)ight.
2017-06-17 10:40:12 +02:00
Takeshi KOMIYA
4dcc35a649 Signature formats args of method correctly in py2 2017-06-17 15:07:31 +09:00
Takeshi KOMIYA
3be5eebd6b Add Signature class 2017-06-17 15:07:31 +09:00
Takeshi KOMIYA
66c957372d Add testcase for sphinx.util.inspect:getargspec() 2017-06-17 00:54:24 +09:00
Takeshi KOMIYA
94b31a2f07 Refactor test_util_inspect: Do not use unittest 2017-06-17 00:54:24 +09:00
Andy Neebel
e51b3c41ea Bad imports failed on travis and circle 2017-06-14 16:37:22 -05:00
Andy Neebel
db8663db06 Fix the warnings, need to handle the repr escaping 2017-06-14 13:29:49 -05:00
Andy Neebel
f68c108f10 Mark tests as xfail/skip to allow successful run 2017-06-14 13:27:31 -05:00
Andy Neebel
c1a6579eb6 XFAIL some tests, 2.7 and Win32 can't use unicode path 2017-06-14 13:27:30 -05:00
Takeshi KOMIYA
f6d0b07704 Merge branch 'stable' 2017-06-13 00:32:39 +09:00
Takeshi KOMIYA
a8c5141cc1 Update testcase for #3858 2017-06-10 12:05:18 +09:00
Mr. Senko
9486f0d8f7 Add top-classes option to sphinx.ext.inheritance_diagram
This will limit the scope of inheritance traversal
2017-06-05 21:52:21 +03:00
Mr. Senko
72e70b1b36 Add tests for sphinx.ext.inheritance_diagram 2017-06-05 21:52:21 +03:00
jfbu
5e2d4ca77b Merge branch 'stable' 2017-06-05 15:40:18 +02:00
Takeshi KOMIYA
2f61be8bb7 Fix Emit wrong warnings if citation label includes hyphens (refs: #3558) 2017-06-04 13:55:14 +09:00
Takeshi KOMIYA
de11e54955 Merge branch 'stable' 2017-05-28 23:26:16 +09:00
Takeshi KOMIYA
69cf328b8b Add Sphinx own parser (refs: #3816) 2017-05-28 22:34:53 +09:00
Takeshi KOMIYA
1ce051d4a4 Merge branch 'stable' 2017-05-28 10:39:26 +09:00
Takeshi KOMIYA
2817623500 Skip testing for websupport if sqlalchemy not installed 2017-05-28 10:05:41 +09:00
Takeshi KOMIYA
dd3b100925 Follow translations 2017-05-17 00:03:39 +09:00
Takeshi KOMIYA
e7ffa63463 Merge branch 'stable' 2017-05-16 23:53:46 +09:00
Takeshi KOMIYA
384839f37c Merge pull request #3718 from sphinx-doc/3458-sphinx-testing
refs #3458 sphinx.testing
2017-05-16 15:06:02 +09:00
Takeshi KOMIYA
05c205a77e Merge pull request #3736 from tk0miya/refactor_latex_table_testcase
Refactor test_latex_table
2017-05-16 13:19:00 +09:00
shimizukawa
d497d74370 refs #3458: add sphinx.testing that are moved from /tests directory. 2017-05-14 20:47:15 +09:00
Takeshi KOMIYA
7cca0b456e Merge pull request #3668 from adamjstewart/fixes/apidoc-main-argv
Don't ignore first argument passed to sphinx.apidoc.main
2017-05-14 01:11:49 +09:00
Takeshi KOMIYA
515e3ad13d Refactor test_latex_table 2017-05-13 17:01:34 +09:00
Takeshi KOMIYA
78a20617b5 Merge branch '1.6-release' 2017-05-13 15:42:28 +09:00
Takeshi KOMIYA
c07ed92a20 Merge branch 'stable' into 1.6-release 2017-05-13 15:42:03 +09:00
Takeshi KOMIYA
4104b93c6e Fix #3320: Warning about reference target not being found for container types 2017-05-13 15:03:11 +09:00
Adam J. Stewart
326ddd10d7 Fix failing unit tests 2017-05-11 12:53:15 -05:00
jfbu
e277cb7285 Merge branch '1.6-release'
Fixed conflicts:
	tests/test_build_html5.py

Also updated tests/test_build_latex.py
2017-05-11 11:45:14 +02:00
jfbu
75653d85ac Fix #3479: add latex support for docutils table stub columns
This implementation in latex writer allows arbitrary columns to be
declared "stub columns". But currently Docutils option
``:stub-columns:`` only allows a number telling the how many initial
columns are "stub columns".
2017-05-10 11:35:12 +02:00
Jean-François B
e9df41535d Merge pull request #3686 from jfbu/dropthreeparttable
Drop usage of `threeparttable` (LaTeX)
2017-05-09 22:00:41 +02:00
Takeshi KOMIYA
5e65316459 Skip testcase for sphinx.util.inspect on 3.4.3
The inspect library of python-3.4.3 also can't handle wrapped
functions.
2017-05-09 23:24:25 +09:00
Takeshi KOMIYA
56d3458584 Fix flake8 violations 2017-05-09 21:57:36 +09:00
jfbu
4fc77026a3 Remove deprecated `\sphinxstylethead` (latex) 2017-05-07 10:59:50 +02:00
jfbu
5ca651f220 Merge branch '1.6-release' 2017-05-07 10:49:45 +02:00
jfbu
e02f3f12b8 LaTeX: `\sphinxstyletheadfamily` to allow multiparagraph headers
Deprecate ``\sphinxstylethead`` at 1.6 with removal at 1.7.
2017-05-07 10:49:03 +02:00
Takeshi KOMIYA
af02bfa7b3 Merge branch 'master' into 3638_eqref_format 2017-05-07 16:20:51 +09:00
jfbu
cdc1dadd8e Rename `\sphinxcaptionof to \sphinxcaption`, only 2 args 2017-05-04 16:10:58 +02:00
jfbu
069b937513 Separate `\sphinxcapstartof` macro, to facilitate caption below table 2017-05-04 15:45:28 +02:00
Jakob Lykke Andersen
32788c4e81 C++, turn on version 3 mangling 2017-05-04 14:04:33 +09:00
Jakob Lykke Andersen
4bcaf13766 C++, expressions 2017-05-04 14:04:33 +09:00
Jakob Lykke Andersen
85a94b79ca C++, internal changes to id generation 2017-05-04 14:02:10 +09:00
Takeshi KOMIYA
354e360783 Merge pull request #3677 from tk0miya/remove_deprecated_features_in_1.7
Remove deprecated features in 1.7
2017-05-03 17:10:16 +09:00
Jakob Lykke Andersen
5cd0f235a8 C++, handle decltype(auto) 2017-05-02 19:51:04 +09:00
jfbu
e21a1702c2 Fix tests after dropping latex threeparttable 2017-05-01 16:22:04 +02:00
Takeshi KOMIYA
58bb4a7714 Fix testcase 2017-04-30 00:55:11 +09:00
Takeshi KOMIYA
8fda21099d Remove deprecated testing utilities 2017-04-27 23:38:42 +09:00
Takeshi KOMIYA
f2c93b3175 Remove deprecated feature: epub2 builder 2017-04-27 21:49:19 +09:00
Takeshi KOMIYA
b4eadba3a1 Remove deprecated feature: sphinx.util.nodes.process_only_nodes() 2017-04-27 21:49:19 +09:00
Takeshi KOMIYA
a252954ea3 Fix #3638: Allow to change a label of reference to equation 2017-04-27 21:47:20 +09:00
Takeshi KOMIYA
45a61843ec Make ImportWarning silent 2017-04-27 21:24:29 +09:00