Commit Graph

536 Commits

Author SHA1 Message Date
Alastair Houghton
5aa7f6bd80 Added some additional configuration variables for Apple Help.
Removed Apple Help from quickstart conf.py.
Added support for .lproj directories with pre-localised files for Apple Help.
2015-01-15 13:11:58 +00:00
Georg Brandl
991d2455e8 Merge branch 'stable' 2015-01-15 08:41:24 +01:00
Georg Brandl
28683a36c4 Closes #1673: fix crashes with nitpick_ignore and :doc: references. 2015-01-15 08:41:18 +01:00
Eric Holscher
76c9530521 Add initial ability to output a name 2015-01-09 08:56:51 -08:00
Georg Brandl
a23903d8d5 Merge branch 'stable' 2015-01-03 21:41:14 +01:00
Georg Brandl
567d52f199 all: update copyright 2015-01-03 21:36:32 +01:00
Takayuki Shimizukawa
edf63e1406 Fix again. Sections which depth are lower than :tocdepth: should not be shown on localtoc sidebar. Closes #1251 2014-12-05 16:42:30 +09:00
Takayuki Shimizukawa
4d784bbb06 Fix again for fffbcba0b. We should keep original env.update() return value type as list-of-docnames-that-ordered-in-order-to-read. 2014-11-27 21:50:30 +09:00
Takayuki Shimizukawa
c5c913ed4a Fix: rebuilding cause crash unexpectedly when source files were added. The problem appeared at fffbcba0b. 2014-11-25 10:20:10 +09:00
Georg Brandl
4d5b20de38 merge with stable 2014-11-17 19:36:34 +01:00
Georg Brandl
571cae87a5 Closes #1372: use https URL for PEPs and RFCs 2014-11-17 19:33:59 +01:00
Takayuki Shimizukawa
2826af738d Merged in tk0miya/sphinx (pull request #303)
Add :numref: role to refer figures, tables and code-blocks by its fignum
2014-10-09 19:45:50 +09:00
Takayuki Shimizukawa
b9a39f0ea0 Merged in shimizukawa/sphinx (pull request #305)
gettext speed-up. closes #1426
2014-10-09 00:59:39 +09:00
tk0miya
cdc244428d Merge with default 2014-10-06 23:57:16 +09:00
Georg Brandl
1bfb881139 Fix environment handling for the fignum changes. 2014-10-06 15:32:53 +02:00
Takayuki Shimizukawa
ee98decec1 Incompatibility. Now :confval:gettext_uuid is set False by default. If False, also levenshtein calculation is disabled. refs #1426 2014-10-05 21:50:44 +09:00
tk0miya
0d28a95f85 Fix numfig got error if table without title exists 2014-10-01 22:15:29 +09:00
tk0miya
4c82a16564 Add :numref: role to refer figures, tables and code-blocks by its fignum 2014-10-01 00:33:00 +09:00
tk0miya
c35886f6d0 Refactor has_child() function (by review) 2014-09-27 16:17:25 +09:00
tk0miya
e3826ba2c4 Fix assign_figure_numbers() raises AttributeError with old environment 2014-09-27 00:56:50 +09:00
tk0miya
7cd470f59a Assign fignum to tables and code-blocks 2014-09-27 00:47:44 +09:00
Takayuki Shimizukawa
b7059d475d Fix: special toctree entry "self" located after another entry that also has a toctree was replaced with wrong title and link. Closes #1576
Function argument variable `toctreenode` had been overrode by local variable.
2014-09-25 00:44:27 +09:00
tk0miya
873efc5358 Fix #1512 env.record_dependency crashes on multibyte directories 2014-09-15 22:10:13 +09:00
tk0miya
2ccdebf5d9 Fix RuntimeError with numbered circular toctree 2014-08-21 09:54:57 +09:00
tk0miya
ba5a42c504 Ignore "self" and URL in toctree 2014-08-21 09:54:57 +09:00
tk0miya
2f5ea82b37 Add config entries for numfig 2014-08-16 09:39:01 +09:00
tk0miya
f974aca356 Assign figure numbers automatically 2014-09-26 22:40:24 +09:00
Takayuki Shimizukawa
02539d5eaf merge with stable 2014-09-26 02:11:51 +09:00
Georg Brandl
4197144f96 Fix a memory leak in the parallel impl. ParallelChunked is now unnecessary. 2014-09-22 19:53:19 +02:00
Georg Brandl
0c833c020e Refactor parallel process into a base class that executes any task, and a derived class that executes a batch of the same task. 2014-09-22 17:29:52 +02:00
Georg Brandl
1f23a5c369 Factor out parallel building into a utility class. Better error handling
with traceback of the parallel process saved in the error log.
2014-09-22 16:21:04 +02:00
Georg Brandl
31452fc64d [WIP] parallel read 2014-09-22 14:51:47 +02:00
Georg Brandl
062492d75f env: minor comment clarification 2014-09-22 10:49:14 +02:00
Georg Brandl
e748e23187 Instantiate our source class directly, this lets us get rid of the method-local class def. 2014-09-22 10:41:04 +02:00
Georg Brandl
0a416c2d13 Raise env version for the ref_context introduction. 2014-09-22 10:00:40 +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
df53ece2f7 Minor PEP8 cleanup. 2014-09-21 20:21:43 +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
c5dfd5c732 Fix a few missing Unicode/bytes filename problems. 2014-09-21 16:52:41 +02:00
Georg Brandl
0511ced21a Override the current-directory local "docutils.conf" location with the Sphinx srcdir. 2014-09-21 16:38:19 +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
ca4e62e47b Add warnings when env.currmodule or env.currclass are used. 2014-09-20 19:03:57 +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
Georg Brandl
c3eb669f8a Added the any role that can be used to find a cross-reference of
*any* type in *any* domain.  Custom domains should implement the new
`~Domain.resolve_any_xref` method to make this work properly.
2014-09-19 12:59:18 +02:00
Georg Brandl
430be0496a Clean up reference resolution a bit; factor out :doc: and citations into their
own methods.
2014-09-19 12:37:58 +02:00
Georg Brandl
b9469b9013 Changing the default role document-locally with the docutils ".. default-role::"
directive is now supported.
2014-09-19 12:21:38 +02:00
Georg Brandl
edcff75e32 sphinx.environment: PEP8 cleanup. 2014-09-19 10:38:38 +02:00
Takayuki Shimizukawa
70fd3c6d31 :confval:templates_path is automatically added to :confval:exclude_patterns to avoid reading autosummary rst templates in the templates directory. Closes #1543 2014-08-23 09:04:21 +09:00
tk0miya
7f9b6b73ed Fix section entries were shown twice if toctree has been put under only directive 2014-08-21 09:51:15 +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
876d593764 Optimize marking docnames as assigned 2014-08-20 01:23:36 +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
137de0ddc8 Mark master_doc as assigned numbers 2014-08-19 11:02:24 +09:00
tk0miya
57cc7dfa05 Fix RuntimeError with numbered circular toctree 2014-08-19 10:44:09 +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
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
Guillem Barba
b4b15181b4 Add env-read-docs event to allow modify docnames list before processing 2014-07-31 18:28:47 +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
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
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
1e58062692 remove 'six' name except importing line. 2014-04-30 21:30:46 +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
49944cfa52 wrap iterator with list() to avoid 'dictionary changed size during iteration' on py3. refs #1350. 2014-04-29 22:43:58 +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
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
Georg Brandl
eb79fcafea merge with stable 2014-01-26 11:51:09 +01:00
Georg Brandl
4ab5d6eb52 Closes #1358: Fix handling of image paths outside of the source directory when using the "wildcard" style reference. 2014-01-23 10:24:58 +01:00
Dmitry Shachnev
cf25b060e7 Resolve some conflicts 2014-01-22 18:42:53 +04:00
Dmitry Shachnev
953b33d3f7 Merge 2014-01-22 18:34:51 +04:00
Georg Brandl
317930a7fb merge with stable 2014-01-20 21:21:33 +01:00
Georg Brandl
883324fd6c Doc: move API docs in their own chapter and add more of it. 2014-01-20 17:21:44 +01:00
Dmitry Shachnev
c2eaf2af81 Merge 2014-01-20 18:32:47 +04:00
Georg Brandl
66e64b9530 merge with stable 2014-01-19 19:13:17 +01:00
Georg Brandl
7e2ca25ee0 Closes #811: dont eat up UnicodeErrors during reading anymore 2014-01-19 18:43:26 +01: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
123572e1db #1345: Fix two bugs with :confval:nitpick_ignore; now you don't have to
remove the store environment for changes to have effect.
2014-01-12 20:45:34 +01:00
Armin Ronacher
b048ea1edf Force index entries to be unicode to fix problems with unicode normalization 2013-11-28 15:34:17 +00:00
Matthias C. M. Troffaes
28873bfa6a Set up initial test. 2013-08-22 09:20:47 +01: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
Georg Brandl
4201b08bbe translate the "Symbols" heading for the genindex 2013-04-02 10:34:22 +02:00
Georg Brandl
181b075251 Closes #1112: Avoid duplicate download files when referenced from documents in
different ways (absolute/relative).
2013-03-30 12:44:39 +01:00
Georg Brandl
2f03bb5f12 environment: clarify docstring 2013-03-30 12:33:31 +01:00
Nozomu Kaneko
1bd7aaed7f merge 2013-02-06 13:28:26 +09:00
Georg Brandl
51deccfa5c Move custom transforms from environment to their own module, to make sphinx.environment at least a little lighter. 2013-02-04 15:52:26 +01: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
6aa8d4b373 Merged in knzm/sphinx-fix-docfields-fork (pull request #96) 2013-02-04 05:59:15 +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
Georg Brandl
9b4efc9ba3 Fix pyflakes issues. 2013-01-13 10:26:52 +01:00
Nozomu Kaneko
58c0c79c17 use `nodes.inline` with a "translatable" attr instead 2013-01-13 02:14:00 +09:00
Jonathan Waltman
e26b02e23e Closes #1070: Avoid un-pickling issues under Python 3 when accessing doctrees saved under Python 2. 2013-01-09 08:58:28 -06:00