Commit Graph

2646 Commits

Author SHA1 Message Date
Takeshi KOMIYA
b09c54e669
Merge branch 'master' into graphviz_width_of_svg 2018-08-07 23:16:37 +09:00
Takeshi KOMIYA
b01256dbaf
Merge pull request #5253 from tk0miya/enable_epub_by_default
Enable epub by default
2018-08-07 01:05:07 +09:00
Timotheus Kampik
97fd09177c #5258 add tests for highlightText() 2018-08-05 10:45:21 +02:00
Takeshi KOMIYA
7e546c0e0b refactor: Remove duplicated testcase 2018-08-05 08:18:21 +09:00
Takeshi KOMIYA
de73ee5902 refactor: test_autodoc 2018-08-05 08:18:21 +09:00
Takeshi KOMIYA
f591cba27f Fix #5002: graphviz: SVGs do not adapt to the column width 2018-08-05 08:16:46 +09:00
Takeshi KOMIYA
dc4f8d4836 conf.py: Drop epub_author, epub_publisher and epub_copyright
The default values of them are same as conf.py's. So it is not
needed to override the setting.
2018-08-05 08:16:00 +09:00
Takeshi KOMIYA
206395121d
Merge pull request #5250 from tk0miya/refactor_math4
Add :rst:role:`math:numref` role to refer equations (Same as :rst:role:`eq`)
2018-08-04 21:03:49 +09:00
Takeshi KOMIYA
ec7ee91dd3
Merge pull request #5230 from tk0miya/726_mathjax_config
#726, #969: Add mathjax_config
2018-08-04 19:21:01 +09:00
Takeshi KOMIYA
8e56f86383 Add :rst:role:math:numref role to refer equations (Same as :rst:role:eq) 2018-08-02 01:52:40 +09:00
Takeshi KOMIYA
5fd62810b9
Merge pull request #5229 from tk0miya/refactor_latex2
Check latex_elements at config-inited event
2018-07-30 23:16:02 +09:00
Takeshi KOMIYA
90246b82b5 Check latex_elements at config-inited event 2018-07-29 22:43:13 +09:00
Takeshi KOMIYA
da7a06b323 WIP: #726, #969: Add mathjax_config 2018-07-29 22:36:53 +09:00
Timotheus Kampik
33d09e1c33
Merge pull request #5207 from TimKam/5186-js-test-infrastructure
5186 set up JavaScript test infrastructure
2018-07-29 08:52:37 +02:00
Takeshi KOMIYA
104bd42f51
Merge branch 'master' into refactor_highlighter 2018-07-29 11:21:36 +09:00
Timotheus Kampik
afe46ef74c #5186 add tests for getQueryParameters()
and fix test description of `urldecode()`
2018-07-28 21:12:05 +02:00
Takeshi KOMIYA
7ee868fb18 Add testcases for autodoc_default_flags 2018-07-28 22:37:32 +09:00
Takeshi KOMIYA
f969edfaa8 Fix flake8 violations on tests 2018-07-28 20:19:30 +09:00
Takeshi KOMIYA
4165c8dd62
Merge pull request #4988 from tk0miya/refactor_math
Implement math_renderer framework
2018-07-28 19:27:55 +09:00
Takeshi KOMIYA
c657f1c1c2 test: Validate whole of generated docs by autodoc 2018-07-28 18:46:13 +09:00
Takeshi KOMIYA
7dad01d18f test: Add do_autodoc() helper 2018-07-28 18:30:27 +09:00
Takeshi KOMIYA
dd65d00f29 Implement math_renderer framework 2018-07-28 18:20:11 +09:00
Takeshi KOMIYA
9bb1e83668
Merge branch 'master' into refactor_highlighter 2018-07-24 01:11:57 +09:00
Takeshi KOMIYA
250e6dbc6c
Merge pull request #5203 from tk0miya/2820_autoclass_supports_nested_class
Close #2820: autoclass directive supports nested class
2018-07-23 23:18:31 +09:00
Timotheus Kampik
5fdf81fe2d #5186 configure karma
and add first karma test
2018-07-22 12:27:39 +02:00
Antony Lee
732ebb5d1e Capitalization: "Table Of Contents" -> "Table of Contents".
This is consistent with "Complete Table of Contents" (which is already
in the database), as well as e.g. "Indices and Tables" where "and" is
not capitalized.

This is also fairly standard title-case practice.
2018-07-22 12:12:48 +02:00
Takeshi KOMIYA
8c29801f27 Close #2820: autoclass directive supports nested class 2018-07-22 01:06:17 +09:00
Takeshi KOMIYA
f3019ee197 Apply :confval:trim_doctest_flags to all builders (cf. text, manpages) 2018-07-21 13:54:51 +09:00
Takeshi KOMIYA
2bafb53179 Add testcase for trim_doctest_flags 2018-07-21 11:46:08 +09:00
Timotheus Kampik
f605012617 #4886 remove obsolete * 2018-07-17 20:40:49 +02:00
Timotheus Kampik
c126067f4e #4886 add tests
to better cover the current link check ignore configuration
 behavior
2018-07-16 23:17:44 +02:00
Takeshi KOMIYA
3e57ea0a52 Merge branch '1.7' 2018-07-17 00:37:40 +09:00
Takeshi KOMIYA
922e218214 Fix #5158: autosummary: module summary has been broken when it starts with heading 2018-07-16 18:45:28 +09:00
Takeshi KOMIYA
d3cc565749
Merge branch 'master' into 4976_location_for_logger.info 2018-07-16 17:18:24 +09:00
Jean-François B
82a7a2235f
Merge branch 'master' into latex_xindy 2018-07-16 09:26:23 +02:00
Takeshi KOMIYA
6753b24877
Merge branch '1.7' into 3329_i18n_autosymbol_footnotes 2018-07-16 16:25:55 +09:00
Takeshi KOMIYA
9734bf5a77
Merge pull request #5167 from mitya57/long-tuples
Fix formatting type annotations for tuples with more than two arguments
2018-07-16 15:17:17 +09:00
jfbu
3c3dca8203 Fix failed test (changed \sphinxleftcurlybrace) 2018-07-16 01:06:27 +02:00
Takeshi KOMIYA
52bb8e7428
Merge branch '1.7' into 3329_i18n_autosymbol_footnotes 2018-07-15 23:43:09 +09:00
Takeshi KOMIYA
aad56c0361 Fix #3329: i18n: crashed by auto-symbol footnote references 2018-07-15 20:48:39 +09:00
Takeshi KOMIYA
b1acc54cf9 Fix #5139: autodoc: Enum argument missing if it shares value with another 2018-07-15 18:53:53 +09:00
Takeshi KOMIYA
bfe7bb819d Merge branch '1.7' 2018-07-15 14:55:15 +09:00
Dmitry Shachnev
1e11634d51 Add a failing test for formatting Tuple[int, str, int] 2018-07-13 21:21:49 +03:00
Takeshi KOMIYA
a2f6de88c1 Fix #5146: autosummary: warning is emitted when the first line of docstring ends with literal notation 2018-07-08 21:14:01 +09:00
Takeshi KOMIYA
910be1e2a2 Close #4976: `SphinxLoggerAdapter.info() now supports location` parameter 2018-06-26 01:02:37 +09:00
Takeshi KOMIYA
f518d26e45 Merge branch 'master' into 1431_latex_enumlist 2018-06-22 00:27:49 +09:00
Takeshi KOMIYA
3d180f9385 Merge branch '1.7' 2018-06-21 23:23:30 +09:00
jfbu
dbb04d0a33 Obide by Docutils `node['prefix'] and node['suffix']` 2018-06-20 18:11:11 +02:00
Takeshi KOMIYA
2f91a2c22e
Merge branch 'master' into 5035_qthelp_namespace_allows_dashes 2018-06-20 00:45:34 +09:00
Takeshi KOMIYA
d7bf78f3ff Fix #5070: epub: Wrong internal href fragment links 2018-06-19 23:37:37 +09:00
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