Commit Graph

991 Commits

Author SHA1 Message Date
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
Georg Brandl
895899b7bb small grammar fix in multibyte filename messages 2013-10-01 19:50:32 +02:00
Takayuki Shimizukawa
58be2f19b3 When Sphinx couldn't decode multibyte filename, now Sphinx notices UnicodeError and continuing if possible instead of raise exception. Closes #703 2013-09-28 12:51:20 +00:00
Takayuki Shimizukawa
7682f477dc Fix i18n: crash when translating section name that is pointed from named target. Closes #1265 2013-09-23 19:53:22 +09:00
Takayuki Shimizukawa
53810ae607 fix: test_build_latex and test_build_texinfo raise SkipTest if command missing. Closes #1184. 2013-09-23 09:57:36 +09:00
Takayuki Shimizukawa
99008f5b78 Fix again: NFC/NFD normalizing problem. Closes #1142 2013-09-18 08:51:20 +00:00
Georg Brandl
ae8782178e Test suite quickfix. 2013-09-16 09:45:56 +02:00
Georg Brandl
1a99c74e4b Merged in RelentlessIdiot/sphinx (pull request #149)
Fix #1203: Do not append space to unknown field names.
2013-09-16 09:18:47 +02:00
Georg Brandl
8b85355a22 Fix new html_extra_path option for singlehtml builder. 2013-09-16 04:33:02 +02:00
Georg Brandl
7c7c5af02a Merged in mcmtroffaes/sphinx-html-extra-path (pull request #158)
Add html_extra_path option to copy additional files ad verbatim to the output root folder.
2013-09-16 04:28:22 +02:00
Georg Brandl
e732807869 Merged in JonnyJD/sphinx/autodoc_novalue (pull request #109)
feature: autodoc: add :annotation: option for autodata and autoattribute
2013-09-16 04:25:53 +02:00
Matthias C. M. Troffaes
e20c82a277 Test that extra entries are in outdir. 2013-08-22 09:24:00 +01:00
Matthias C. M. Troffaes
28873bfa6a Set up initial test. 2013-08-22 09:20:47 +01:00
Tres Walsh
829a5150da Add support for C++11 member function ref-qualifiers and C++03 volatile member function ref-qualifier
Specifically, support for the following has been added:

 * rvalue reference for *this
 * volatile
 * override keyword support

Additionally support for '= default' and '= delete' has been added.

Several tests have also been added to test_cpp_domain.py to insure that these features actually work.
2013-08-07 09:24:32 -07:00
Takayuki Shimizukawa
04d22a53d5 support parallel testing with detox 2013-07-27 16:15:36 +09:00
Takayuki Shimizukawa
91ef671ea9 Add test for docutils.conf and prevent 'html4css1.css' missing warning.
Now --embed-stylesheet option default become false.
2013-07-27 14:13:15 +09:00
Takayuki Shimizukawa
33c9e1fb28 Fix i18n: gettext did not translate admonition directive's title. Closes #1206 2013-07-03 08:19:10 +00:00
Rob Ruana
718f4a6f8c Fix #1203: Does not append space to unknown field names.
If an unknown field name is encountered, a space is only
appended if the field arguments are not empty. Also,
only the first character of the field name is upper cased,
and the case of the rest of the string remains unchanged.
2013-06-23 16:06:45 -04:00
Takayuki Shimizukawa
7904b0678a Fix i18n: footnote reference number missing for auto numbered named footnote and auto symbol footnote. Closes #1176 2013-06-21 03:28:32 +00:00
Takayuki Shimizukawa
2cdb6b03c9 test improvement 2013-06-21 01:09:13 +00:00
Takayuki Shimizukawa
4579bb6e85 fix: translation mechanism break label target if label and section name are same. refs #1193 2013-06-19 06:07:47 +00:00
Takayuki Shimizukawa
f9b733fc47 test_intl:external_link test case correction to fit to reST syntax. 2013-06-18 11:14:27 +00:00
Takayuki Shimizukawa
a997f98333 fix: keep reference if link refname was translated. refs #1193
case1::

   Keep link to ExternalSite_.

   It will translated with ``\`SomeOtherString\`_``.

   .. _ExternalSite: http://example.com

case2::

   Keep link to `title string`_ before appearing.

   title string
   =============

case3::

   Keep link to glossary 'term string'.

   .. glossary::

      term string
         description...
2013-06-19 10:42:26 +00:00
Takayuki Shimizukawa
afc6b6d1f8 Fix: Multiple references in the same line return the same link with i18n. Closes #1193 2013-06-17 00:12:02 +09:00
Takayuki Shimizukawa
bd4da7df55 add tests for "multiple cross references in the same line return the same link". refs #1090, #1193 2013-06-16 14:25:29 +09:00
Takayuki Shimizukawa
deb01d8e30 Fix multiple cross references (term, ref, doc) in the same line return the same link with i18n. refs #1090, #1193 2013-06-16 23:57:08 +09:00
Takayuki Shimizukawa
dbe60b4e02 refactoring: 'tmpdir' rename to 'tempdir' that is same name in other places. 2013-06-13 03:24:20 +00:00
Takayuki Shimizukawa
8c543c11cc Fix: Output TeX/texinfo/man filename has no basename (only extention) when using multibyte characters to "Project name" on quickstart. Closes #1190 2013-06-13 03:22:23 +00:00
Takayuki Shimizukawa
f24eb8c47d fix typo ;) 2013-06-13 03:08:57 +00:00
Takayuki Shimizukawa
f2de6cdb6d fix for unicode object syntax. ur'' is meaningless. 2013-06-13 02:51:17 +00:00
Takayuki Shimizukawa
8ec83f963b Fix "Title underline is short" WARNING is given when using fullwidth characters to "Project name" on quickstart. Closes #1189 2013-06-09 09:48:43 +09:00
Takayuki Shimizukawa
573d8433b9 Fix sphinx-quickstart raises UnicodeEncodeError if "Project version" includes non-ASCII characters. Closes #1188 2013-06-09 09:06:21 +09:00
Takayuki Shimizukawa
9d3bac3b8e Fix: Citation target missing cause AssertionError. Closes #1160 2013-05-02 10:37:12 +09:00
Takayuki Shimizukawa
59d655c435 Fix: Combination of 'globaltoc.html' and hidden toctree cause exception. Closes #1157 2013-04-30 23:36:27 +09:00
Takayuki Shimizukawa
c8ebb875de Rebuild i18n target document when catalog updated 2013-04-15 00:56:13 +09:00
Takayuki Shimizukawa
b91f70be6e Fix: 'make gettext' cause UnicodeDecodeError when templates contain utf-8 encoded string. 2013-04-13 22:44:37 +09:00
Georg Brandl
56ac8a19ee test suite fixes 2013-04-01 15:11:18 +02:00
Georg Brandl
52515eeb86 Copyright header update. 2013-04-01 11:41:48 +02:00
Georg Brandl
1af3e3ea71 tests: replace "from util import *" by explicit imports 2013-04-01 11:39:32 +02:00
Georg Brandl
21f0ca8197 Closes #896: use SkipTest in build_latex test if latex is not installed 2013-04-01 11:26:21 +02:00
Georg Brandl
9abf39f912 Fix overlong lines. 2013-03-31 15:44:04 +02:00
Takayuki Shimizukawa
b8850502d2 merge heads 2013-03-17 10:58:28 +09:00
Takayuki Shimizukawa
2c409959ac Add i18n capabilities for custom templates.
For example: The Sphinx reference documentation in doc directory provides
sphinx.pot file from ``doc/_templates/*.html`` by ``make gettext``.
2013-03-10 22:07:31 +09:00
Takayuki Shimizukawa
e2087189ea Add regression test for #1109. Issue was corrected at previous commit 62b0a5f17f62. Closes #1109 2013-03-09 23:14:31 +09:00
Takayuki Shimizukawa
f6fca7a8ac Fix: text builder breach max-witdh specificatoin if paragraph have prefixed text. ex: 'See also:' 2013-03-09 22:58:47 +09:00
Johannes Dewender
649ab8030c autodoc: change :novalue: to :annoation: option
The :novalue: option is now called :annotation: and has an additional feature:
When given with an argument, you can specify what the annotation
of the object will be.
2013-02-27 16:38:55 +01:00
Takayuki Shimizukawa
fffde7817d Merged in knzm/sphinx-fix-docfields-fork (pull request #96)
make docfield translatable
2013-02-24 19:05:15 +09:00
Jonathan Waltman
66d799bb00 Closes #1108: [text] Correctly number enumerated lists with non-default start values (based on patch by Ewan Edwards). 2013-02-20 13:50:40 -06:00
Takayuki Shimizukawa
a462284f95 fix: make.bat is always saved with 'LF' instead of 'CRLF' for both Win/Unix. 2013-02-10 11:51:36 +09:00
Takayuki Shimizukawa
05718e4a1a conf.py now accept CRLF end-of-line. 2013-02-10 15:25:45 +09:00
Takayuki Shimizukawa
00fa1b2505 Fix text builder did not respect wide/fullwidth characters for textwrap. 2013-02-07 03:34:51 +00:00
Nozomu Kaneko
1bd7aaed7f merge 2013-02-06 13:28:26 +09:00
Takayuki Shimizukawa
b8296ad11e Fix text builder did not respect wide/fullwidth charactors for table layout. 2013-02-06 00:29:59 +09:00
Takayuki Shimizukawa
529e45a980 Fix text builder did not respect wide/fullwidth charactors for title line. 2013-02-05 23:57:26 +09:00
Takayuki Shimizukawa
6667a7cbdf fix toctree entry missing for testing. 2013-02-05 03:54:35 +00:00
Takayuki Shimizukawa
7ebd7ab2a9 fix: roles' reftarget ware swapped if there are some roles in 1 line and translation exchange rthat roles position. refs #1090 2013-02-05 12:47:08 +09:00
Takayuki Shimizukawa
d6f31f3fa1 remove unusable 'SEVERE: Duplicate ID' message for footnote that the translation node has been recognized as a duplicate. 2013-02-04 23:06:44 +09:00
Takayuki Shimizukawa
c1c0a03895 fix: reporting correct line number when translations have wrong reST syntax or else. 2013-02-04 22:23:03 +09:00
Nozomu Kaneko
81d21a7714 make versionmodified translatable 2013-02-04 09:03:34 +09:00
Nozomu Kaneko
6aa8d4b373 Merged in knzm/sphinx-fix-docfields-fork (pull request #96) 2013-02-04 05:59:15 +09:00
Takayuki Shimizukawa
70f3f889d1 Fix autodoc crash if :members: and :special-members: ware both set (by d7ac5e4). 2013-02-03 22:27:20 +09:00
Takayuki Shimizukawa
e70a43a9c5 Closes #1062: sphinx.ext.autodoc use __init__ method signature for class signature. 2013-02-03 20:27:34 +09:00
Takayuki Shimizukawa
4d4dad3610 test refactoring: use with_setup for all test_autodoc.py's tests 2013-02-03 13:53:10 +09:00
Takayuki Shimizukawa
e47f434c32 add test for pull request #111: Respect add_autodoc_attrgetter() even when inherited-members is set 2013-02-03 12:48:39 +09:00
Takayuki Shimizukawa
a86ea846e2 Fix :term: doesn't link to glossary if term text translated. refs #1090 2013-01-30 23:41:37 +09:00
Takayuki Shimizukawa
6f4764f77b Fix gettext does not extract glossary terms. Closes #1090 2013-01-30 00:13:58 +09:00
Johannes Dewender
ffb825d733 fix tests for autodoc novalue option
In the tests for autodoc the Options are of type struct,
while in the code there is a special autodoc.Options class,
which is a dict.

So "novalue" in self.options doesn't work,
but self.options.novalue does work for both.

Additionally the logic for autoattribute was wrong and is fixed now.
2013-01-24 18:17:53 +01:00
Takayuki Shimizukawa
60f6fc4805 fix debug2 UnicodeEncodeError issue with multibyte names node 2013-01-21 08:09:43 +09:00
Georg Brandl
7d68f0e4a2 Fix long lines reported by "make check". 2013-01-13 10:22:38 +01:00
Takayuki Shimizukawa
3a5277c14c fix: autodoc documented descriptor class as attribute 2013-01-12 18:12:55 +09:00
Takayuki Shimizukawa
9f8f93e5e1 fix test_seealso failed with python3 2013-01-12 22:26:38 +09:00
Jonathan Waltman
bba6104b84 Issue #1069: Add failing test for signature formatting of "partial" functions without kwargs. 2013-01-09 08:37:53 -06:00
Jonathan Waltman
b98123cd12 Add man_pages config to tests/root/conf.py. 2013-01-06 23:42:25 -06:00
Jonathan Waltman
f4a346760c Fix test_man which didn't test if docs were being built. It now successfully fails. 2013-01-06 23:36:33 -06:00
Nozomu Kaneko
d2a087e88d fix tests correspond to 6c70ca26a841 (Divide test_intl target ...) 2013-01-06 20:33:43 +09:00
Robert Lehmann
32b87e258b merge birkenfeld/sphinx 2013-01-06 12:14:57 +01:00
Nozomu Kaneko
f01d1358f8 resolve conflicts 2013-01-06 20:12:54 +09:00
Robert Lehmann
2b3fb57cc5 merge knzm/sphinx-fix-seealso-fork 2013-01-06 11:44:58 +01:00
Nozomu Kaneko
919ba75483 versionlabels are handled entirely in the versionmodified directive, instead of the writers.
Now it returns a versionmodified node with the versionlabel already inserted.
2013-01-06 18:37:21 +09:00
Nozomu Kaneko
7630467f84 fix: paragraphs in versionmodified are ignored when it has no dangling paragraphs. 2013-01-06 18:05:49 +09:00
Takayuki Shimizukawa
9b9c69042e Divide test_intl target source files for speed-up. 2013-01-06 16:15:49 +09:00
Jonathan Waltman
268b009017 Move "only" directive tests to a seperate test root. 2013-01-05 20:14:48 -06:00
Takayuki Shimizukawa
b17c588b0d Closes #976: Fix gettext does not extract index entries. 2013-01-05 23:38:21 +09:00
Jonathan Waltman
42c90ee178 Add basic debugging support for autodoc. 2013-01-05 08:28:54 -06:00
Nozomu Kaneko
a56a8f87c8 merge 2013-01-05 20:43:45 +09:00
Takayuki Shimizukawa
ab6706e6ed Closes #940: Fix gettext does not extract figure caption.
This is docutils issue.
see also: https://sourceforge.net/tracker/?func=detail&aid=3599485&group_id=38414&atid=422032
2013-01-05 01:06:42 +09:00
Takayuki Shimizukawa
263d5b376f Fix text writer can not handle visit_legend for figure directive contents. 2013-01-04 18:18:43 +09:00
Takayuki Shimizukawa
19a8c9e2e5 fix problems with py25,py3x for search index generation 2013-01-04 21:46:17 +09:00
Jonathan Waltman
cf4166fa58 Fix `test_i18n_literalblock_warning` which would sometimes fail due to the text wrapping of error messages. 2013-01-03 13:55:26 -06:00
Robert Lehmann
0725cb608a merge with birkenfeld/sphinx 2013-01-02 17:45:33 +01:00
Georg Brandl
151856819c Copyright update. 2013-01-01 22:13:15 +01:00
Takayuki Shimizukawa
7022b6f251 Add regression test for gettext does not extract definition terms. Closes #975 2013-01-01 14:17:53 +09:00
Georg Brandl
998d567d5c Closes #1065: in Makefiles, ignore errors in "rm" using the -f flag, not a "-" prefix. 2012-12-31 09:39:02 +01:00
Nozomu Kaneko
023a53c609 stop calling rmtree in a test 2012-12-24 04:04:39 +09:00
Nozomu Kaneko
ba50c00a0e merge heads 2012-12-24 03:39:37 +09:00
Nozomu Kaneko
40b5167657 remove useless comments 2012-12-19 08:02:21 +09:00
Nozomu Kaneko
ccd8067ee5 fix #1058: footnote backlinks with i18n 2012-12-19 07:49:17 +09:00
Nozomu Kaneko
da008da569 fix #1058 Footnote backlinks do not work 2012-12-19 06:13:20 +09:00
Nozomu Kaneko
a1e9f2d675 make docfield translatable 2012-12-18 06:08:25 +09:00
Robert Lehmann
cbca1bdc97 Verify seealso directives end up in gettext catalogs. 2012-12-16 21:21:37 +01:00
Takayuki Shimizukawa
6e044aedbc Avoid unusable warning in using i18n translation. Closes #1057.
And there is related information at pull request #86
2012-12-16 22:56:38 +09:00
Nozomu Kaneko
13850c478d make seealso translatable 2012-12-16 13:20:01 +09:00
Jonathan Waltman
29f768e48f Fix minor bugs in test_intl.py causing tests to fail under python 2.5
os.path.relpath not defined in Python 2.5, use equivalent from
sphinx.util.pycompat

Also avoid trying to create an existing directory when remnants exist
of an earlier failed build
2012-12-11 01:36:50 -06:00
Takayuki Shimizukawa
3f9598394b merge heads 2012-12-10 10:18:32 +09:00
Takayuki Shimizukawa
54a0f2a1c5 Merged in shimizukawa/sphinx-fix-i18n-fork/#955 (pull request #86) 2012-12-07 17:24:46 +09:00
Takayuki Shimizukawa
21355d3249 Update warnings for inconsistency reference translations. Thanks @jonwaltman! 2012-12-07 16:38:21 +09:00
Takayuki Shimizukawa
bfe96c14a7 fix: rescue extra named-reference that appeared in same translation message. 2012-12-05 20:52:19 +09:00
Takayuki Shimizukawa
e9275d3f0c change: Make readable-text a priority.
If the number of reference does not match then some links will be broken.
2012-12-05 19:35:07 +09:00
Takayuki Shimizukawa
e9f3ad438b move i18n test documents to i18n subdir. 2012-12-05 13:38:04 +09:00
Takayuki Shimizukawa
8a1cb70354 refactoring 2012-12-05 13:11:30 +09:00
Takayuki Shimizukawa
2472dcec39 checking whether the number of references is equal in both the translated form and the untranslated form? If they're not equal, emit a warning and don't bother trying to transfer the references. 2012-12-05 13:11:16 +09:00
Jonathan Waltman
8ac4aa6282 Add Docutils-native XML and pseudo-XML builders 2012-12-04 21:10:15 -06:00
Takayuki Shimizukawa
087c9b2bd8 Merged in shimizukawa/sphinx-fix-fork/#1041 (pull request #87) 2012-11-30 12:46:52 +09:00
Takayuki Shimizukawa
e9c0582713 fix: sphinx-quickstart asks again and again Y|N because input() return value with extra '\r' on Python-3.2.0 + Windows. closes #1043 2012-11-28 23:21:02 +09:00
Takayuki Shimizukawa
f24b1998f2 fix: cpp domain parser cannot parse 'static constexpr' declarations. closes #1038 2012-11-28 15:49:06 +09:00
Takayuki Shimizukawa
96779ffed8 fix: cpp domain parser cannot parse a const type with a modifier. closes #1041 2012-11-28 15:26:44 +09:00
Takayuki Shimizukawa
c347b50330 fix #1044 refs #955: fix external/inline links with localization 2012-11-27 17:30:08 +09:00
Takayuki Shimizukawa
f50091b643 fix #955: consider the numbered-footnote. update test and code 2012-11-22 12:12:41 +09:00
Takayuki Shimizukawa
30c3fff6d7 fixed #955: footnote i18n translation cause KeyError and 'Only update text nodes in translation' change at b7b808e46851 break translation. 2012-11-22 11:43:09 +09:00
Jonathan Waltman
c134b218b7 Closes #681: Allow nested parentheses in C++ signatures (patch by Vadim and Jim Naslund) 2012-11-10 23:37:42 -06:00
Jonathan Waltman
6f9e541ab5 autodoc: Handle explicit instance attributes in :members: (re #904) 2012-11-08 21:19:47 -06:00
Jonathan Waltman
34cbd684a9 Update sys.path to avoid autodoc warnings when building docs in tests/root. 2012-11-08 21:16:41 -06:00
Georg Brandl
4763419db1 Update Sphinx URL to new sphinx-doc.org domain. 2012-11-04 11:28:12 +01:00
Takayuki Shimizukawa
f9b1f7d2f2 fix: ziptheme.zip block removing test temporary directory on Windows. 2012-11-04 09:30:19 +09:00
Georg Brandl
00b3433b0d merge with Takayuki's sphinx-fix-testing-fork 2012-11-01 17:56:16 +01:00
Georg Brandl
21d57d3125 Fix running tests under Python 3 without tox. 2012-11-01 17:38:22 +01:00
Takayuki Shimizukawa
bee7f8bc39 fix test_linkcode str/bytes incompatibility at py3 2012-10-29 13:07:21 +09:00
Georg Brandl
201883d209 Merged in pv/sphinx-work/ext-linkcode (pull request #47) 2012-10-28 18:21:57 +01:00
Georg Brandl
2b2bb4122d Merged in shimizukawa/sphinx-fix-testing-fork (pull request #62) 2012-10-28 18:10:19 +01:00
Georg Brandl
33828e4777 merge with stable 2012-10-28 18:01:57 +01:00
Franck Michea
5521b8da2e domain override: fix issue #1009. 2012-10-11 20:58:54 +02:00
Jonathan Waltman
bf362e9ccb Closes #617: Fix docstring preparation without included signature: only ignore indentation of one line, not two. 2012-09-16 01:08:47 -05:00
Jonathan Waltman
c5405184ba Add failing tests for nested sections in only directives. 2012-09-12 15:34:00 -05:00
Georg Brandl
d5f4e1592a merge with stable 2012-07-29 19:27:36 +02:00
Georg Brandl
9814097315 Fix test_env by supplying a dummy imgpath to the HTML builder. 2012-07-29 19:27:28 +02:00
Takayuki Shimizukawa
b948dfc7e0 fix for Python3: Python3 open() use 'rt' mode by default, and decoding by locale.getpreferredencoding(). In sphinx test, html output encoded by 'utf-8' but reading with syste-locale-setting-encode that cause UnicodeDecodeError. 2012-05-02 15:55:11 +09:00
Takayuki Shimizukawa
48128c7b9b * fix test for Windows: test failed by test-code problem depends on os.sep. 2012-05-02 12:05:41 +09:00
Takayuki Shimizukawa
4713ca78ba fix some testing.
* Python3 test support
* Specify depended library version for Python2.4, 2.5
2012-05-01 15:21:12 +09:00
Takayuki Shimizukawa
1bb4923da1 support multibyte filename handling.
https://bitbucket.org/birkenfeld/sphinx/issue/703
2012-05-01 15:13:06 +09:00
Pauli Virtanen
135bb6f6c8 ENH: add a linkcode extension 2012-03-11 17:48:51 +01:00
Jeff Dairiki
01167a8af5 Intersphinx: parse inventories correctly when object names contain embedded spaces.
This is an issue, e.g., for (multi-word) glossary terms.
2012-02-26 07:49:07 -08:00
Georg Brandl
75ec8f27d5 Fixes #875 and #876: use the right file mode to successfully read config files under 2.x and 3.x. 2012-03-10 18:45:14 +01:00
Georg Brandl
219905a3be Fixes #874: do not use __file__ anymore after changing cwd. 2012-03-10 18:29:23 +01:00
Georg Brandl
4ff9c71c91 Closes #810: fix deprecation warnings with Python 3. What is left over is from nose or docutils. 2012-01-29 12:23:17 +01:00
Georg Brandl
fa100632c3 Closes #695: When the highlight language "python" is specified explicitly, do not try to parse the code to recognize non-Python snippets.
Thanks to Jonas Haag for the patch.
2012-01-29 10:21:01 +01:00
Georg Brandl
9a4a3c9afa Satisfy "make check". 2011-10-09 23:09:57 +02:00
Robert Lehmann
1a287bb7e2 Change default visibility for C++ superclasses. 2011-10-08 14:55:18 +02:00
Robert Lehmann
9904596da8 Fixes #678: Support superclass declarations in C++ domain. 2011-10-08 14:02:13 +02:00
Georg Brandl
ba95709f87 Remove unused import. 2011-10-07 11:55:37 +02:00
Georg Brandl
827cdb6266 Split user queries and file generation in quickstart into two functions. 2011-10-07 11:52:12 +02:00
Georg Brandl
d07fe37744 Update the websupport tests to API changes. 2011-10-06 14:28:18 +02:00
Georg Brandl
411f82d9b9 Fix markup test with latest pygments-related updates. 2011-10-02 19:39:42 +02:00
Georg Brandl
4abbe95a9c Merge with 1.0 2011-09-23 11:03:23 +02:00
Georg Brandl
db87ed440c Fix #648: Fix line numbers reported in warnings about undefined references. 2011-09-23 09:46:24 +02:00
Armin Ronacher
f6711a6209 Added more tests to the basic parsing of C++ signatures 2011-09-23 00:51:43 +02:00
Armin Ronacher
2a021f1cf9 merged 2011-09-23 00:49:08 +02:00
Armin Ronacher
9325a16c6f Added support for strings with commas in template definitions. 2011-09-22 11:17:18 +02:00
Armin Ronacher
49f1425da3 Added support for strings with commas in template definitions. 2011-09-22 11:17:18 +02:00
Armin Ronacher
48ca7f47f9 Added support for noexcept specifiers 2011-09-22 11:15:46 +02:00
Armin Ronacher
794e241ba5 Added support for noexcept specifiers 2011-09-22 11:15:46 +02:00
Armin Ronacher
9753d743fc Added support for constexpr in function signatures 2011-09-22 10:43:24 +02:00
Armin Ronacher
9e43f54600 Added support for constexpr in function signatures 2011-09-22 10:43:24 +02:00
Georg Brandl
20f3b8d95c Merge with 1.0 2011-09-22 10:42:09 +02:00
Armin Ronacher
6b96b10220 Be explicit about rvalue references. 2011-09-22 10:33:15 +02:00
Armin Ronacher
55935bdd04 Be explicit about rvalue references. 2011-09-22 10:33:15 +02:00
Georg Brandl
b3108306cd Fix #677: allow multiple signatures in C++ domain directives. 2011-09-22 10:23:54 +02:00
Armin Ronacher
bdf5816437 Added support for non-name template arguments. This fixes #696 2011-09-22 10:23:46 +02:00
Armin Ronacher
860b410fbc Added support for non-name template arguments. This fixes #696 2011-09-22 10:23:46 +02:00
Georg Brandl
5d936d5ff1 Fix :samp: latex tests. 2011-09-21 10:05:37 +02:00
Georg Brandl
bc3eeddb35 Fix #728: escape root dir when putting it into a regex in latex/texinfo tests. 2011-09-21 09:15:11 +02:00
Georg Brandl
9d5215c1c9 Fix #728: escape root dir when putting it into a regex in latex/texinfo tests. 2011-09-21 09:15:11 +02:00
Georg Brandl
19adf65faa Skip all websupport tests for now. 2011-09-21 09:09:50 +02:00
Georg Brandl
ffa14ec448 Fix dupicate autodocumentation leading to test failures. 2011-09-19 09:21:48 +02:00
Georg Brandl
7cc2b0e46b Adapt test to removal of <object> tags for SVG images. 2011-09-19 09:19:35 +02:00
Georg Brandl
28609cc9b9 Only test spanning cells for latex. 2011-09-19 09:02:00 +02:00
Georg Brandl
896b575cdc Code style fixes. 2011-09-17 21:05:12 +02:00
Lucas Taylor
ade940d1f6 [intersphinx] [Fixes #622] env.warn called with incorrect number of arguments 2011-09-03 12:41:26 -07:00
Chris Pickel
b863ecbf98 Support varargs in C++ function signatures. 2011-04-19 22:22:33 -04:00
Georg Brandl
45b38933a6 Add missing label. 2011-01-08 22:18:10 +01:00
Georg Brandl
b44e894125 Fix test_autodoc. 2011-01-07 19:03:44 +01:00
Georg Brandl
8621526045 #568: Fix lookup of class attribute documentation on descriptors so that comment documentation now works.
Needed to port assignment of ``self.parent`` from trunk.
2011-01-06 13:03:17 +01:00
Georg Brandl
81ecbc19b0 Fix tracebacks occurring for duplicate C++ domain objects. 2011-01-06 12:28:55 +01:00
Georg Brandl
7e3151dd73 #581: Fix traceback in Python domain for empty cross-reference targets. 2011-01-04 23:39:13 +01:00
Georg Brandl
0e1db6ad90 New year update. 2011-01-04 10:00:51 +01:00
Georg Brandl
5072e74a46 Fix test_build_html after latest docfields fix. 2011-01-04 00:23:27 +01:00
Georg Brandl
205d50a01d Regression of #77: If there is only one parameter given with `:param:` markup, the bullet list is now suppressed again. 2011-01-03 23:08:13 +01:00
Georg Brandl
eb014a1b64 Add missing file. 2011-01-03 19:33:44 +01:00
Georg Brandl
69e5b91b2d Fix strange reportings of line numbers for warnings generated from
autodoc-included docstrings, due to different behavior depending
on docutils version.
2011-01-03 15:55:30 +01:00
Georg Brandl
c3e233e016 Adapt test to new warning API. 2010-11-12 08:34:47 +01:00
Pauli Virtanen
bb51a20745 autosummary: respect py:currentclass when looking up Python objects
This makes autosummary directives inside classes to work properly.
2011-06-29 21:27:23 +02:00
Pauli Virtanen
0e97f2ab58 autosummary: improve robustness of the signature compactification 2011-06-29 21:26:43 +02:00
Chris Pickel
7aef73271a Support varargs in C++ function signatures. 2011-04-19 22:22:33 -04:00
Georg Brandl
3c2662580a Cleanup after pull from https://bitbucket.org/timmartin/sphinx 2011-05-15 11:15:20 +02:00
Tim Martin
4fb8139f36 Fixed a bug in test_intl.py: teardown didn't get called if the test was skipped 2011-04-17 00:22:10 +01:00
Tim Martin
9b112e0619 Expanded the docstring of gen_with_app to explain how it differs from with_app 2011-04-13 00:00:45 +01:00
Tim Martin
d8a2e21758 The test runner script now checks for the docutils and jinja libraries, without which all tests fail 2011-04-12 23:54:14 +01:00
Jonathan Waltman
20dcad36a3 Add Texinfo support in ext.graphviz, ext.inheritance_diagram and ext.mathbase. 2011-03-05 23:59:34 -06:00
Georg Brandl
a63230f12d #431: Doc comments for attributes can now be given on the same line as the assignment. 2011-01-15 15:40:59 +01:00
Georg Brandl
87b0ac63ed merge with 1.0 2011-01-09 00:47:48 +01:00
Georg Brandl
dc0c43da9a #437: autodoc now shows values of class data attributes. 2011-01-08 23:45:58 +01:00
Georg Brandl
16c3f081a5 Add missing label. 2011-01-08 20:02:38 +01:00