Commit Graph

991 Commits

Author SHA1 Message Date
Georg Brandl
105122be43 Fix up default labels for figures and listings. 2014-10-06 15:19:42 +02:00
Takayuki Shimizukawa
6c0b4f1933 Merged in tk0miya/sphinx (pull request #304)
numfig feature improvement
2014-10-06 21:45:25 +09:00
Jeppe Pihl
0b0cf82a75 fixed bugs, and extended unit test to catch them again if they reappear 2014-10-06 10:58:03 +02:00
Jeppe Pihl
a3745cfb5e merge 2014-10-06 10:35:33 +02:00
tk0miya
a5606976b6 Fix flake8 violations 2014-10-06 13:56:51 +09:00
Takayuki Shimizukawa
b6b6f8ad79 Fix test for previous change.
Fix. <caption> node should not include <paragraph> block element as a result of nested_parse.
2014-10-06 07:10:52 +09:00
tk0miya
777218580a Surround fignum and caption with <span> tag 2014-10-05 20:55:46 +09:00
tk0miya
a875e8f377 Set permanent links to every captions and titles 2014-10-05 16:27:38 +09:00
Jeppe Pihl
dc3d0b6ca1 added test .rst files 2014-10-04 17:49:37 +02:00
Jeppe Pihl
22c8382880 added tests for linenos, lineno-start, lineno-match 2014-10-04 17:48:55 +02:00
tk0miya
8270575a9c Update testcases for :numref: 2014-10-02 11:17:34 +09:00
Jeppe Pihl
bbfe4d3bb9 fixed issues with line numbering not being showed correctly. 2014-10-02 00:41:30 +02:00
Jeppe Pihl
de8f428528 #1583: Allow the line numbering of the directive literalinclude to match that of the included file, using a new `lineno-match` option. 2014-09-30 00:11:28 +02:00
tk0miya
7e59c5385e Merge with default 2014-09-28 21:56:20 +09:00
Takayuki Shimizukawa
9d1225a35b add :confval:gettext_enables to enable extracting 'index' to gettext catalog output / applying translation catalog to generated documentation. Closes #1344 2014-09-28 21:19:54 +09:00
tk0miya
16529c5604 Add options argument to Sphinx.add_latex_package() 2014-09-28 21:10:26 +09:00
Takayuki Shimizukawa
39c843106f fix testing on Windows. 2014-09-28 21:00:51 +09:00
Takayuki Shimizukawa
a75d863290 Merged in tk0miya/sphinx (pull request #298)
Add new API: Sphinx.add_latex_package()
2014-09-28 12:59:59 +09:00
tk0miya
0c5b460dc6 Separate numfig testcase from toctree's 2014-09-27 16:49:28 +09:00
tk0miya
c04ad2908e Add new API: Sphinx.add_latex_package()
Sphinx.add_latex_package() allows sphinx extensions to add latex packages.
It helps creating extensions for latex (for example, latex-theming)
2014-09-27 12:47:27 +09:00
tk0miya
7cd470f59a Assign fignum to tables and code-blocks 2014-09-27 00:47:44 +09:00
Takayuki Shimizukawa
7984f81a5e Merged in tk0miya/sphinx (pull request #292)
do nested_parse() :caption: of code-block directive
2014-09-26 20:29:38 +09:00
tk0miya
7c7a563426 Fix by review comment 2014-09-26 20:15:17 +09:00
tk0miya
cffec13355 Add testcases for numfig 2014-09-26 00:36:38 +09:00
Takayuki Shimizukawa
88540e9a3b workaround for testing: \xbb will be replaced with /xbb by replace(os.sep, '/') process on Windows environment. 2014-09-24 01:41:01 +09:00
tk0miya
3ad1f1c164 Merge with default 2014-09-24 00:43:47 +09:00
tk0miya
5f96826ffc Merge with default 2014-09-23 17:58:02 +09:00
Takayuki Shimizukawa
a820a73442 Merged in tk0miya/sphinx (pull request #291)
Fix cannot capture title of literal_block node by xref
2014-09-23 12:21:15 +09:00
Georg Brandl
7bbaa4c73f Test suite fixes after env.update() change. 2014-09-22 15:08:15 +02:00
Georg Brandl
e7ed7cd627 Rename env-read-docs to env-before-read-docs, add changelog entry and fixup tests. 2014-09-22 09:13:44 +02:00
Georg Brandl
3c5cda97d1 Merged in guillemNaN/sphinx (pull request #261)
Add env-read-docs event to allow modify docnames list before processing
2014-09-22 09:05:00 +02:00
Georg Brandl
cdaf4b0a52 remove a few unused imports 2014-09-21 20:28:37 +02:00
Georg Brandl
24d303706f Fixup windows newlines. 2014-09-21 20:23:24 +02:00
Guillem Barba
fe077ea18b Don't multiply docnames list size per each listener of env-read-docs
The env-read-docs listener function doesn't return the modified docnames list
but change the list received as parameter.
Updated the tests
2014-09-21 19:50:46 +02:00
Georg Brandl
c5cc2a8cf9 flush stdout after printing messages, might fix output ordering on drone.io 2014-09-21 19:01:03 +02:00
Georg Brandl
ac690b4b07 move new assertion helpers to util.py 2014-09-21 18:54:01 +02:00
Georg Brandl
fa91f19e55 Reimplement assert_in and assert_not_in, they are not in nose in Py2.6. 2014-09-21 18:48:21 +02:00
Georg Brandl
70cf797c10 fix incompatibility in doctree between gettext and the rest 2014-09-21 18:46:15 +02:00
Georg Brandl
b637f0a728 No need to insist on fresh builds with test_build_* 2014-09-21 18:41:08 +02:00
Georg Brandl
b335e03b02 Speed up test_theming using a minimal project. 2014-09-21 18:37:44 +02:00
Georg Brandl
2661c1060d Refactor/speed up test_build_gettext using generators 2014-09-21 18:36:27 +02:00
Georg Brandl
be72ed6dc7 Refactor/speed up test_intl by combining all tests with a certain builder into a generator. 2014-09-21 18:26:50 +02:00
Georg Brandl
a73ab32bc5 Split viewcode and linkcode tests out of main test root. 2014-09-21 17:34:16 +02:00
Georg Brandl
78af37370c mock is builtin in Py3. 2014-09-21 17:32:52 +02:00
Georg Brandl
d47a7587f9 Complete test suite overhaul.
* rename a few test modules to make the names more consistent

* do not copy/use Sphinx from build/ (unnecessary without 2to3)

* use a temporary dir for *all* test projects, the source tree
  will stay pristine that way  (default is tests/build)

* speed up tests by ~3x by splitting up test projects and avoiding
  rebuilds
2014-09-21 17:17:02 +02:00
Georg Brandl
e21d669089 Test suite adapted after :option: changes. 2014-09-20 20:54:23 +02:00
Georg Brandl
a555bda5eb Closes #1284: Program options documented with :rst:dir:option can now start with `+`. 2014-09-20 19:58:11 +02:00
Georg Brandl
2c396601bf Move env.temp_data content that might be used to resolve references to a new env.ref_context dictionary. 2014-09-20 19:15:41 +02:00
Georg Brandl
6c3789a353 Add tests for "any" role and default-role setting. Fix some minor bugs with "any". 2014-09-19 14:17:36 +02:00
tk0miya
d076452199 do nested_parse() :caption: of code-block directive 2014-09-19 12:04:25 +09:00
tk0miya
447c8c1d37 Wrap float environment on writing literal_block to latex 2014-09-19 11:08:07 +09:00
tk0miya
873efc5358 Fix #1512 env.record_dependency crashes on multibyte directories 2014-09-15 22:10:13 +09:00
Georg Brandl
90c7adba6d rename "literal.inc.orig", too easy to delete together with other merge backup files 2014-09-07 15:28:58 +02:00
Guillem Barba
24c5eb6e9c Add unit test for new env-read-docs event 2014-09-01 09:19:43 +02:00
Takayuki Shimizukawa
d11267b205 Merge with stable 2014-08-30 20:20:19 +09:00
Takayuki Shimizukawa
ad69dadd14 Now Sphinx exits with non-zero status code if builder status is not success. Closes #508. 2014-08-29 01:14:54 +09:00
Takayuki Shimizukawa
438f9fe3de make text generate wrong table when it has empty table cells. Closes #1544 2014-08-26 20:52:02 +09:00
Takayuki Shimizukawa
8f7936d75c * gettext does not extract nodes.line in a table or list. Closes #1477 2014-08-26 01:39:26 +09:00
tk0miya
b17320ee1e Fix cannot capture title of literal_block node by xref 2014-08-24 14:33:56 +09:00
Takayuki Shimizukawa
8536b4844e Merged in tk0miya/sphinx (pull request #266)
Rename :filename: option of code-block directive to :caption:
2014-08-24 11:02:36 +09:00
Takayuki Shimizukawa
799ae87ce0 fix fc1901d for py3, again. and add 2 assertions 2014-08-22 13:01:11 +09:00
Takayuki Shimizukawa
2987330a11 fix fc1901d for py3 2014-08-22 12:39:42 +09:00
Takayuki Shimizukawa
e8b870de0c :mod:~sphinx.ext.viewcode support imported function/class aliases. Closes #623 2014-08-22 11:38:56 +09:00
tk0miya
dd8a02d5e1 Fix #1381 :rfc: and :pep: roles support custom link text 2014-08-20 12:27:08 +09:00
tk0miya
95fc3ce888 Backed out changeset 177fce4ba59c 2014-08-20 12:21:18 +09:00
tk0miya
3c1067c038 Fix #1381 :rfc: and :pep: roles support custom link text 2014-08-20 12:19:12 +09:00
tk0miya
3c8bc8f5fd Merge upstream changes 2014-08-20 10:05:58 +09:00
Takayuki Shimizukawa
4be8071639 Merged in tk0miya/sphinx (pull request #269)
Fix #1476 replace <tt> tag by <code>
2014-08-20 06:45:18 +09:00
Takayuki Shimizukawa
f68c3b1caf Merged in tk0miya/sphinx (pull request #274)
Set its URL as a default title value if URL appears in toctree
2014-08-20 06:14:15 +09:00
tk0miya
7db168416b Set its URL as a default title value if URL appears in toctree 2014-08-20 01:00:29 +09:00
tk0miya
57cc7dfa05 Fix RuntimeError with numbered circular toctree 2014-08-19 10:44:09 +09:00
Takayuki Shimizukawa
60911efe05 Merge with tip 2014-08-18 23:20:42 +09:00
Takayuki Shimizukawa
4046c5f0e2 Merged in tk0miya/sphinx (pull request #268)
Fix numbering section does not work at singlehtml mode (adhoc)
2014-08-18 23:10:59 +09:00
tk0miya
14107fd5de Fix numbering section at singlehtml mode does not work for nested toctree 2014-08-18 22:06:30 +09:00
Shoji KUMAGAI
b71508d6fa Add theme contents for 'bizstyle' 2014-08-15 13:38:02 +09:00
Takayuki Shimizukawa
b8c2619858 Merged in r_rudi/sphinx (pull request #267)
add 'diff' parameter to literalinclude.
2014-08-13 13:17:47 +09:00
shirou
4e70d364ba add test and document about diff params in literalinclude. 2014-08-12 14:11:54 +09:00
tk0miya
0943375069 Fix #1476 replace <tt> tag by <code> 2014-08-12 12:12:10 +09:00
tk0miya
5725ee0e82 Fix numbering section does not work at singlehtml mode (adhoc) 2014-08-12 11:22:34 +09:00
Takayuki Shimizukawa
954869df26 merge with stable 2014-08-12 06:42:57 +09:00
Takayuki Shimizukawa
e984e381e8 * On Python3 environment, docutils.conf with 'source_link=true' in the general section cause type error. Closes #1531 2014-08-12 00:11:23 +09:00
tk0miya
3e1667290b Rename :filename: option of code-block directive to :caption: 2014-08-11 22:36:31 +09:00
Takayuki Shimizukawa
e5cb460d8b * update old XPath notation 2014-08-11 14:19:14 +09:00
Takayuki Shimizukawa
1d65d9cdc6 rename test files 2014-08-10 23:47:27 +09:00
Takayuki Shimizukawa
d39327d539 * for pull request #258: update CHANGES, add tests, add a document and refactoring. 2014-08-10 23:03:02 +09:00
Takayuki Shimizukawa
ed9de1c9e8 * provide _copy_to_temp option for TestApp() 2014-08-10 22:23:52 +09:00
Takayuki Shimizukawa
8dcd094a30 Merged in jakobla/sphinx (pull request #263)
Rewrite of C++ domain (also fixes #1013, #1103)
2014-08-10 20:02:37 +09:00
Jakob Lykke Andersen
e43fcfa1f4 C++, test now also work with Python 3. 2014-08-10 11:59:22 +02:00
Takayuki Shimizukawa
c3fdd2a9c3 * refactoring 2014-08-10 16:31:28 +09:00
Takayuki Shimizukawa
68949656b2 * for PR#264: update CHANGES, add tests, small refactoring. 2014-08-10 16:28:31 +09:00
Jakob Lykke Andersen
640dfc1951 Merged birkenfeld/sphinx into default 2014-08-06 18:54:23 +02:00
Jakob Lykke Andersen
14e6affa7d C++, update id generation to use name mangling 2014-08-06 17:41:51 +02:00
Takayuki Shimizukawa
3efd230a0e fix test caused by previious commit: 989c16e04371c 2014-08-05 01:54:56 +09:00
Takayuki Shimizukawa
f7399a261a Add app.set_translator() API to register or override a Docutils translator class like :confval:html_translator_class. 2014-08-05 00:18:54 +09:00
Takayuki Shimizukawa
6580b23b90 Merged in lennart0901/sphinx (pull request #260)
Encode underscore in citation labels for latex export
2014-08-03 17:43:40 +09:00
Takayuki Shimizukawa
eaed3ca9f1 Automatically compile `*.mo files from *.po` files. 2014-08-03 16:22:08 +09:00
Takayuki Shimizukawa
eb8dbf4631 Fix malformed po files in the test-intl directory 2014-08-03 14:34:40 +09:00
Takayuki Shimizukawa
da4c67e2a3 When specifying toctree :numbered: option and :tocdepth: metadata, sub section number that is larger depth than :tocdepth: is shrinked. Closes #1251. 2014-08-02 18:10:41 +09:00
Takayuki Shimizukawa
24280fd90d * refactoring: metadata (docinfo) type normalization and add test. 2014-08-02 16:39:07 +09:00
Lennart Fricke
7a9cc9f95b Escape underscore in citation labels for latex export 2014-07-31 08:55:29 +02:00
Takayuki Shimizukawa
6630255a10 * Fix: Undecodable source reading cause UnicodeDecodeError instead of emitting warnings. Thanks to anatoly techtonik. Closes #1524 2014-07-30 02:47:22 +09:00
Jakob Lykke Andersen
23df17b404 C++, change parsing context to explicit arguments, fixes some casting operators. 2014-07-27 02:57:41 +02:00
Jakob Lykke Andersen
caad958de4 C++, fix namespacing of elements and xrefs. 2014-07-24 11:09:28 +02:00
Jakob Lykke Andersen
967ca06545 Revamp of C++ domain. 2014-07-24 01:40:48 +02:00
Lars Buitinck
5a13bce2e2 compress static PNG images with optipng -o10
Average reduction in file size of 20%.
2014-07-22 13:42:00 +02:00
Jakob Lykke Andersen
b293be1fc9 C++ domain, add support for virtual functions. 2014-07-18 18:09:25 +02:00
Takayuki Shimizukawa
da20c3713b merge with stable 2014-07-13 11:43:12 +09:00
Takayuki Shimizukawa
269421bc58 * Fix: Non-ASCII filename raise exception on make singlehtml, latex, man, texinfo and changes. Closes #1508 2014-07-13 10:44:48 +09:00
Takayuki Shimizukawa
e2ed97031d use test generator nosetests feature. 2014-07-12 22:14:14 +09:00
Takayuki Shimizukawa
91709946d6 * Fix: py:function directive generate incorrectly signature when specifying a default parameter with an empty list []. Closes #1503 2014-07-12 20:50:15 +09:00
Takayuki Shimizukawa
b3aa4aa81b * In autodoc, fix display of parameter defaults containing backslashes. Closes #1502 2014-07-02 00:09:11 +09:00
Takayuki Shimizukawa
f781f55b28 * With non-callable setup in a conf.py, now sphinx-build emits user-friendly error message. Closes #1499 2014-06-30 22:54:28 +09:00
Takayuki Shimizukawa
ff8ce91f77 * Fix: autosummary can't handle nested classes correctly. Closes #1441 2014-06-21 17:05:31 +09:00
Takayuki Shimizukawa
0fb938ad38 * add test and code comment for pull request #157 2014-06-14 17:03:57 +09:00
Rob Ruana
71b8fe8854 Closes #1489: Removes use of ":annotation:" for attribute types in napoleon, as inline markup is not allowed 2014-06-13 14:06:39 -06:00
Takayuki Shimizukawa
74fbd611ab merge with stable 2014-06-09 22:45:05 +09:00
Takayuki Shimizukawa
1d742bdcf5 * Fix exception on Python3 if nonexistent method is specified by automethod. Closes #1467 2014-06-09 01:43:34 +09:00
Takayuki Shimizukawa
52331a04c3 * Provide non-minified JS files for jquery.js and underscore.js to clarify the source of the minified files. refs #1434. 2014-06-07 18:32:56 +09:00
Takayuki Shimizukawa
9ebee01d19 * update CHANGES and fix for py3-compat for pull request #241. Closes #1466 2014-05-28 00:14:50 +09:00
Takayuki Shimizukawa
a8c2bd4f1f Merged in vitaut/sphinx/cpp-variadic (pull request #241)
Add support for variadic templates in C++ domain
2014-05-28 00:08:48 +09:00
Takayuki Shimizukawa
6746c83a18 * Drop Python-3.2. And now, removing 2to3 mechanism procedure has been completed. Closes #1350.
Pygments-2.0 will drop Python-3.2.
The snowballstemmer package that is referred from sphinx-1.3 (that is merged at pull request #214) has not supported Python-3.2.

We decided to drop the Python-3.2.

see also https://bitbucket.org/birkenfeld/sphinx/pull-request/243/native-py2-py3-support-without-2to3-refs
2014-05-27 23:17:36 +09:00
Takayuki Shimizukawa
6beeeeb827 remove unnecessary list() wrappers. In some places, I replaced iterable.sort() with sorted(iterable). 2014-05-25 09:25:02 +09:00
Victor Zverovich
6e56a12d4a Add support for variadic templates in C++ domain 2014-05-12 08:12:37 -07:00
Takayuki Shimizukawa
ba4dcaa8dd use b prefix for bytes instead of sphinx.pycompat.b function. 2014-05-01 22:54:09 +09:00
Takayuki Shimizukawa
75e22ba522 delegate '__nonzero__' to '__bool__' for py2/py3 compatibility in one source. #1350 2014-05-01 20:14:19 +09:00
Takayuki Shimizukawa
956d6286bf remove 2to3. #1350. 2014-05-01 17:27:27 +09:00
Takayuki Shimizukawa
5fd8dc885f fix py2/py3 compat for 'iter.next()/next(iter)' and 'dict.values()/list(dict.values())'. refs #1350. 2014-05-01 13:08:36 +09:00
Takayuki Shimizukawa
071fb45a54 use 'next(iter)' instead of 'iter.next()' to support py2/py3 compatibiity. refs #1350. 2014-05-01 12:49:47 +09:00
Takayuki Shimizukawa
2d1549b35a wrap py3 iterators with list() for each places that expect a list object. refs #1350. 2014-04-30 23:25:44 +09:00
Takayuki Shimizukawa
6ae3b68859 replace ur'' prefix with r'' to support py2/py3 in one source. refs #1350 2014-04-30 23:04:21 +09:00
Takayuki Shimizukawa
1e58062692 remove 'six' name except importing line. 2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
f31d9113ff use six privided functions/classes to support py2/py3 in one source. refs #1350 2014-04-30 20:39:26 +09:00
Takayuki Shimizukawa
00eff0b7f6 use six privided text_type() to replace with unicode() to support py2/py3 in one source. refs #1350. 2014-04-29 23:44:12 +09:00
Takayuki Shimizukawa
91b9d75ac8 provide __next__() and use native next() to support py2/py3 in one source. refs #1350. 2014-04-29 21:54:25 +09:00
Takayuki Shimizukawa
ce4d342e20 use six privided iteritems(),itervalues() to support py2/py3 in one source. refs #1350. 2014-04-29 21:20:56 +09:00
Takayuki Shimizukawa
c3c879f2c6 use six privided functions/classes to support py2/py3 in one source. refs #1350. 2014-04-29 19:59:58 +09:00
Takayuki Shimizukawa
68290a266c introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350. 2014-04-29 11:46:47 +09:00
Takayuki Shimizukawa
1e4b390b22 remove tests.util.write_file duplicated implementation. 2014-04-28 19:58:26 +09:00
Rob Ruana
bbfd0d058a Closes 1455: Adds better handling of namedtuples in napoleon's skipmember function 2014-04-19 03:58:11 -04:00
Takayuki Shimizukawa
ecaeff1689 refactoring the test_autosummary.py 2014-04-12 00:24:53 +09:00
Takayuki Shimizukawa
8f69e25c85 * Fix: autosummary does not create the description from attributes docstring. Closes #1444 2014-04-11 23:38:37 +09:00
Georg Brandl
18755458a1 merge with stable 2014-03-25 09:31:44 +01:00
Takayuki Shimizukawa
43a9881c4b Fix i18n: missing python domain's cross-references with currentmodule directive or currentclass directive. refs #1363
* node attributes 'py:module', 'py:class' is provided from environment (e.x. currentmodule directive is provided on previous line, not on node)
* Because translation nodes are parsed in independently, 'provided attributes by environment' are not exist.
* For a pending_xref nodes, all attributes of a translated xref node should be same as original xref node in current test cases.
* For the above reasons, I overwrite all attributes from origonal node to new translated xref node.
2014-03-23 23:01:15 +09:00
Rob Ruana
c430f7f4c6 Closes #1429: Adds smarter Args parsing for Google style docstrings. 2014-03-21 19:21:18 -04:00
Rob Ruana
3e7ce5d3a1 Closes #1418: Private and special members are properly skipped on Python 3.3 2014-03-11 03:50:49 -04:00
Rob Ruana
191e0b4c12 Closes #1384: Parse and interpret See Also section the way NumpyDoc does
The NumpyDoc extension that is developed by the Numpy folks does a lot
of extra work interpreting See Also sections. It assumes that the contents
of the See Also will always be references to other functions/classes and
it tries to deduce what is being referenced.

I've ported their implementation for See Also sections written in the
Numpy style. There is NO extra interpretation done for See Also sections
that are written using the Google style.
2014-03-09 22:07:21 -04:00
Rob Ruana
18df6421bf Closes #1396: Param types with inline markup no longer italicized
Napoleon was attempting to render nested inline markup
( [a big no-no!](http://sphinx-doc.org/rest.html) ) for
parameter types. Now, if Napoleon sees any backquotes
in the parameter type, it is rendered without italics.
2014-03-09 01:56:56 -05:00
Rob Ruana
5564012306 Closes #1410: imports Mock from unittest.mock when available (Python >=3.3) 2014-03-06 03:49:11 -05:00
Georg Brandl
f8096e3fa0 merge with stable 2014-03-01 08:42:58 +01:00
Georg Brandl
55e2f29170 fix windows newlines 2014-03-01 08:42:35 +01:00
Georg Brandl
1f4016d679 Merged in barnabas79/sphinx (pull request #218)
Closes #1374: Autosummary generates overly-long summaries if first line doesn't end with a period
2014-03-01 08:28:28 +01:00
Georg Brandl
ac92719ac3 Update copyright year. 2014-03-01 08:18:23 +01:00
Georg Brandl
e030031321 Update copyright year. 2014-03-01 08:18:16 +01:00
Paul Molodowitch
d4a0a14aa5 Closes #1374: Autosummary generates overly-long summaries if first line doesn't end with a period 2014-02-03 19:35:04 -08:00
Paul Molodowitch
05f1049b3e Closes #1374: Autosummary generates overly-long summaries if first line doesn't end with a period 2014-02-03 19:35:04 -08:00
Georg Brandl
b1a9f7548b consistency nits 2014-01-22 18:15:42 +01:00
Dmitry Shachnev
953b33d3f7 Merge 2014-01-22 18:34:51 +04:00
Ben Darnell
3ed243de54 Fix an exception introduced by b69b59480cba for __init__ with no docstring. 2014-01-20 11:54:51 -05:00
Ben Darnell
b0ca105c36 Fix an exception introduced by b69b59480cba for __init__ with no docstring. 2014-01-20 11:54:51 -05:00
Dmitry Shachnev
c2eaf2af81 Merge 2014-01-20 18:32:47 +04:00
Rob Ruana
63fbb819c7 Makes suggested changes before adding napoleon to sphinx 2014-01-19 13:43:54 -05:00
Rob Ruana
4c782604ed Merged birkenfeld/sphinx into default 2014-01-19 12:31:07 -05:00
Georg Brandl
8c2fabe117 The deprecated config values `exclude_trees, exclude_dirnames and unused_docs` have been removed. 2014-01-19 17:46:06 +01:00
Dmitry Shachnev
ce2185ce27 Modernize the code now that Python 2.5 is no longer supported
- Use print function instead of print statement;
- Use new exception handling;
- Use in operator instead of has_key();
- Do not use tuple arguments in functions;
- Other miscellaneous improvements.

This is based on output of `futurize --stage1`, with some
manual corrections.
2014-01-19 14:17:10 +04:00
Georg Brandl
91cd11be3c Merged in guibog/sphinx2 (pull request #184)
autodoc extension: add autodoc_mock_imports config value
2014-01-19 10:31:15 +01:00
Rob Ruana
d11cb7325e Merge conflicts 2014-01-18 14:23:23 -05:00
Rob Ruana
a00a096069 Merges napoleon extension into mainline sphinx 2014-01-18 13:56:23 -05:00
Takayuki Shimizukawa
dd41adf0a0 merge heads 2014-01-18 16:34:47 +09:00
Georg Brandl
e5f58d686e merge with stable 2014-01-17 07:25:31 +01:00
Georg Brandl
24a8b516bf Remove sphinx.ext.oldcmarkup compatibility extension. 2014-01-17 07:24:23 +01:00
Georg Brandl
de92e3b026 Closes #1285: Avoid name clashes between C domain objects and section titles. 2014-01-17 07:08:32 +01:00
Takayuki Shimizukawa
cc7509966c merge heads 2014-01-15 05:25:56 +00:00
Georg Brandl
336ae30edb Prompt for the document language in sphinx-quickstart. 2014-01-11 15:05:45 +01:00
Georg Brandl
1d564ace28 merge stable into default 2014-01-11 14:53:07 +01:00
Georg Brandl
c5b4ff0adc * add a test for the parsed-literal directive
* adapt test to pygments output versus Sphinx-emulated nohighlighting output
2014-01-11 10:25:34 +01:00
Georg Brandl
269ef714f3 Closes #668: Allow line numbering of `code-block and literalinclude` directives
#to start at an arbitrary line number, with a new ``lineno-start`` option.
2014-01-11 08:44:45 +01:00
Georg Brandl
5394fbb82b merge stable into default 2014-01-11 08:14:55 +01:00
Georg Brandl
8fdcb803cf d98e70c13eff followup: only do type conversion of confoverrides if the values are strings and add a test 2014-01-10 22:10:29 +01:00
Georg Brandl
195050c6c4 Closes #933: Do not crash if an `:option:` value is malformed (contains spaces
but no option name).
2014-01-10 22:04:03 +01:00
Georg Brandl
865d677eb8 merge stable into default 2014-01-10 21:26:12 +01:00
Georg Brandl
82e294ec0f Closes #1312: use non-deprecated unittest-like names 2014-01-10 15:11:27 +01:00
Georg Brandl
ac48fa83d9 Merged in hsoft/sphinx (pull request #202)
Allow "." and "~" prefixes in inline :param: typedefs.
2014-01-10 14:56:40 +01:00
Virgil Dupras
ea02a07562 Allow "." and "~" prefixes in inline :param: typedefs. 2014-01-04 21:40:52 -05:00
Takayuki Shimizukawa
f7cb510ebd Drop python-3.1 and remove support codes 2013-12-15 16:04:23 +09:00
Takayuki Shimizukawa
a8fc938d1b Drop python-2.5 and remove 2.4,2.5 support codes 2013-12-15 14:16:53 +09:00
Georg Brandl
04bc952dd9 fix trailing space 2013-12-10 10:23:45 +01:00
Takayuki Shimizukawa
1d5c7d1f20 Fix: autodoc class __init__ override not removed from docstring. Closes #1138 2013-12-09 10:55:51 +00:00
Takayuki Shimizukawa
6432f65347 fix test error; can't remove empty directory problem on Windows. 2013-12-08 16:58:34 +09:00
Takayuki Shimizukawa
d96de9d128 Fix test_linkcode.test_html fails with C locale and Python 3. Closes #1311 2013-11-17 03:39:27 +00:00
Takayuki Shimizukawa
8e507f54a5 Merged in mitya57/sphinx (pull request #176)
Make sure setup_command test can always import Sphinx
2013-11-16 17:44:22 +09:00
Takayuki Shimizukawa
63d34cca47 Add tests and code refine for pull request #190. 2013-11-12 15:17:09 +00:00
Takayuki Shimizukawa
e61f316c74 Fix autodoc with `autoclass_content="both" uses useless object.__init__ docstring when class does not have __init__`. Closes #1337
This caused by a change for #1138.
2014-01-02 12:42:12 +09:00
Takayuki Shimizukawa
3d67be3dce Fix autosummary template overloading cause infinite recursive function call. Closes #1335 2013-12-27 05:23:47 +00:00
guibog
a8f65e9d3c autodoc extension: add autodoc_mock_imports config value 2013-10-23 16:36:45 +08:00
Georg Brandl
424ca5c28a test_intl fix-up after versionmodified change. 2013-10-12 22:57:09 +02:00
Dmitry Shachnev
c7002b90b8 Make sure setup_command test can always import Sphinx 2013-10-05 19:36:12 +04:00
Takayuki Shimizukawa
313559116d Backed out changeset cfe9e2d11003 refs #1265 2013-10-04 08:12:20 +00:00
Takayuki Shimizukawa
603a75d8d3 Now gettext translates label target name. Fix i18n: crash when using a indirect target and translating a target section name. Closes #1265 2013-10-04 05:07:09 +09:00
Takayuki Shimizukawa
be65b99879 grammar fix: 'multibyte filename' is ambiguous. They are replaced with 'non-ASCII filename'. refs #703 2013-10-03 06:43:22 +00:00
Takayuki Shimizukawa
b37f385810 Add test refs #1265 (comment-6264794) to validate translated label link shifting. 2013-10-03 02:53:53 +00:00