Commit Graph

536 Commits

Author SHA1 Message Date
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
Jonathan Waltman
69b74303b8 Merged in rolmei/sphinx-epub (pull request #106: Add includehidden option to the toctree directive) 2013-01-07 22:12:03 -06:00
Jonathan Waltman
7fd138b588 Avoid AssertionError about losing the "ids" attribute when resolving pending_xrefs created in the CitationReferences transformation. 2013-01-07 00:30:49 -06:00
Roland Meister
1639f59726 Add includehidden option to the toctree directive
This option is equivalent to the includehidden option of the template function
toctree() and allows to restore to the toctree behaviour prior to version 1.1.
See also bug #790.
2013-01-06 14:55:35 +01:00
Nozomu Kaneko
f01d1358f8 resolve conflicts 2013-01-06 20:12:54 +09:00
Takayuki Shimizukawa
57289afc4e Merged in shimizukawa/sphinx-fix-i18n-fork (pull request #104: #976: Fix gettext does not extract index entries.) 2013-01-06 10:55:55 +09:00
Jonathan Waltman
e55c72218c Merged in rolmei/sphinx-epub (pull request #103: Whitespace cleanup) 2013-01-05 08:48:42 -06:00
Takayuki Shimizukawa
b17c588b0d Closes #976: Fix gettext does not extract index entries. 2013-01-05 23:38:21 +09:00
Nozomu Kaneko
a56a8f87c8 merge 2013-01-05 20:43:45 +09:00
Jonathan Waltman
51fb8b435b Add verbose option `-v` for sphinx-build and some rudimentary debugging support. 2013-01-05 02:41:12 -06:00
Roland Meister
ae9afab1fc remove trailing whitespace in sphinx/environment.py 2013-01-04 22:05:50 +01:00
Jonathan Waltman
d997aa76b0 Closes #958: Do not preserve `environment.pickle` after a failed build. 2013-01-03 13:34:47 -06:00
Georg Brandl
d747fa3cd0 merge 2013-01-03 10:56:21 +01:00
Georg Brandl
054833a96f Issue #1067: in search index generation, record words in section titles in their own set 2013-01-03 10:10:53 +01:00
Roland Meister
a0ebe5a3c5 Merge with birkenfeld/sphinx 2013-01-02 09:40:37 +01:00
Georg Brandl
151856819c Copyright update. 2013-01-01 22:13:15 +01:00
Nozomu Kaneko
68dd735b60 skip DocFields transform for gettext in order to extract messages 2013-01-01 03:04:10 +09:00
Nozomu Kaneko
9262d0550d use paragraph nodes instead of translatable nodes. 2012-12-31 23:31:15 +09:00
Georg Brandl
c529f6756c Merged in embray/sphinx/fix-tocdepth (pull request #100: Fixes a bug with :tocdepth: and inventory generation) 2012-12-30 21:23:28 +01:00
Erik Bray
19d51e4270 Ensure that the entire doctree is traversed and all TOCs are processed regardless of tocdepth; now tocdepth only controls the depth of the node tree for the document's TOC. 2012-12-27 13:55:11 -05:00
Roland Meister
417aff228c Avoid recurson on invisible entries in _toctree_prune 2012-12-23 00:27:32 +01:00
Roland Meister
224a76f865 Remove unneeded copy of children in _toctree_add_classes 2012-12-23 00:17:33 +01:00
Roland Meister
37c862e9c9 Rename helper functions for resolve_toctree to reflect their intent 2012-12-23 00:12:08 +01:00
Roland Meister
0fe9a0252b Move adding 'toctree-l%d' classes to _mark_current; this fixes the test suite
Also adjust comments and docstrings to reflect the current state.
2012-12-23 00:03:17 +01:00
Roland Meister
12baf34000 Move comment out of _walk_depth and add comment why the function was split 2012-12-22 23:37:19 +01: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
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
Roland Meister
567671f4d8 Bug #1046: templating toctree() does not expand to maxdepth past maxdepth
If the current page is nested larger than maxdepth it gets deleted
before it can be marked as current. The toctree then callapses to
the top entries. Split _walk_depth in two parts, first just add
the current tag, and remove unneeded entries in a second call.
2012-12-10 22:01:01 +01:00
Takayuki Shimizukawa
3f9598394b merge heads 2012-12-10 10:18:32 +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
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
Takayuki Shimizukawa
6c48bc0d2f refactoring 2012-12-05 11:43:36 +09:00
Takayuki Shimizukawa
fb770e9013 fix some grammar refs #1044. thanks @mitya57 ! 2012-11-27 20:07:30 +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
Georg Brandl
00b3433b0d merge with Takayuki's sphinx-fix-testing-fork 2012-11-01 17:56:16 +01:00
Takayuki Shimizukawa
ee0d0ed1fd adjust code-comment to suitable reST format 2012-10-31 10:21:16 +09:00
Takayuki Shimizukawa
718993afc8 fix #440 #1008 : coarse timestamp resolution in some filesystem generate wrong outdated file-list 2012-10-29 21:00:34 +09:00
Georg Brandl
33828e4777 merge with stable 2012-10-28 18:01:57 +01:00
Christophe Simonis
23a86297c3 Close #955: Only update text nodes in translation 2012-10-09 23:41:21 +02:00
Jonathan Waltman
ad6318e7f1 Closes #1004: Add default value for docutils setting file_insertion_enabled. 2012-10-02 20:53:40 -05:00
Takayuki Shimizukawa
1bb4923da1 support multibyte filename handling.
https://bitbucket.org/birkenfeld/sphinx/issue/703
2012-05-01 15:13:06 +09:00
Georg Brandl
c5513e960c merge with stable 2012-03-10 21:38:29 +01:00
Georg Brandl
95f0155227 Fixes #873: do not raise assertion errors on empty "only" directives. 2012-03-10 19:36:22 +01:00
Georg Brandl
87c50b6605 Fixes #870: silence spurious KeyErrors when removing documents. 2012-03-10 19:09:01 +01:00
Georg Brandl
64593b946e merge with stable 2012-02-19 11:54:53 +01:00
Roland Meister
49393ad118 Bug #868: Add hidden toctree entries to content.opf/spine 2012-02-13 21:04:28 +01:00
Georg Brandl
d16875f3e2 Closes #851: Recognize and warn about circular toctrees, instead of running into recursion errors. 2012-01-29 11:13:49 +01:00
Georg Brandl
c6833609c0 Fix relative_path() argument order. 2011-11-01 15:21:46 +01:00
Benoit Allard
22546c4ebe Restore compatibility with python2.5, use relative_path from docutils in place of path.relpath
Same as on the other places
2011-10-26 17:27:42 +02:00
Robert Lehmann
0f47e55787 Respect gettext_compact in message patching too. 2011-10-03 14:08:33 +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
Georg Brandl
cfc1ab4f99 Merge with 1.0 2011-09-21 19:28:43 +02:00
Georg Brandl
d05588da41 Fix #637: ignore strange Emacs lock files by default. 2011-09-21 19:23:24 +02:00
Georg Brandl
f4bd8c5e84 Remove unused import. 2011-07-09 12:08:18 +02:00
Michael Jones
b4a6b2c3c1 Respect "includehidden" for sub-toctrees as well
Previously, the includehidden method argument was only being taken into account
for top level toctrees. This meant that hidden subtree toctrees were still
being resolved if they exists below a non-hidden toctree.
2011-06-05 14:21:47 +12:00
eplusx
c9e18c2646 Fix section 2011-01-24 09:09:57 +09:00
Georg Brandl
936c78cd32 Section headings in :rst:dir:only directives are now correctly handled. 2011-01-08 19:56:32 +01:00
Georg Brandl
388079984d #572: Show warnings by default when reference labels cannot be found. 2011-01-08 16:41:15 +01:00
Georg Brandl
65e926cc57 #536: Include line number when complaining about missing reference targets in nitpicky mode. 2011-01-08 16:04:19 +01:00
Georg Brandl
b75253dc82 Fix a traceback when removing files with globbed toctrees. 2011-01-07 14:53:12 +01:00
Georg Brandl
33647ec898 Give line number info where possible in toctree-related warnings. 2011-01-07 14:22:27 +01:00
Georg Brandl
c50054c8da If an autodoc object cannot be imported, always re-read the document and show the full traceback of the import error. 2011-01-07 10:19:45 +01:00
Georg Brandl
400e1a7fa8 Fix traceback with `only` directives preceded by targets. 2011-01-06 12:50:14 +01:00
Georg Brandl
5c0c465db2 #383: Support sorting a limited range of accented characters in the general index. 2011-01-04 17:14:00 +01:00
Georg Brandl
0e1db6ad90 New year update. 2011-01-04 10:00:51 +01:00
Georg Brandl
a4036ae6ad Remove redundant local. 2011-01-03 19:51:44 +01:00
Georg Brandl
f4988dfa17 #523: fixes for qthelp index. 2010-10-22 11:42:56 +02:00
Georg Brandl
357f8472c7 #534: warning message instead of crash if invalid Pygments lexer name is used. 2010-10-22 10:02:10 +02:00
Georg Brandl
6ef0e9ea67 #494: Fix the `maxdepth option for the toctree() template callable when used with collapse=True`. 2010-08-23 15:59:20 +00:00
Georg Brandl
580e1c90d3 #481, #482: fix `.name` reference matching.
#482: When doing a non-exact search, match only the given type of object.
#481: Apply non-exact search for Python reference targets with ``.name`` for modules too.
2010-08-05 13:39:23 +02:00
Georg Brandl
3a61b58b3f #470: Fix generated target names for reST domain objects; they are not in the same namespace. 2010-07-27 14:45:17 +02:00
Georg Brandl
0e2f523783 Reintroduce env.note_versionchange(). 2010-07-23 14:15:25 +01:00
Georg Brandl
c7a8350f3c Do not stop even at severe docutils errors, continue build. 2010-06-19 21:37:10 +02:00
Georg Brandl
f5ecd62d05 #537: Added :confval:nitpick_ignore. 2011-01-08 18:36:52 +01:00
Georg Brandl
8814e97389 Always warn on missing :doc: or citation references. 2011-01-08 17:59:44 +01:00
Georg Brandl
a20b68cd3e Refactor warning-emission for unknown references. 2011-01-08 17:55:34 +01:00
Georg Brandl
2524f31069 Rename attribute to better fit the purpose. 2011-01-08 17:36:00 +01:00
Georg Brandl
661101663a Bump env version after addition of versioning_method. 2011-01-08 17:33:02 +01:00
Georg Brandl
c266128c6d Rename "intl" module to "gettext", to make it easier to find. Distinguish environments with different versioning methods and always give the gettext builder its own doctree dir. 2011-01-08 17:32:32 +01:00
Georg Brandl
893d64ec50 merge with 1.0 2011-01-08 16:57:17 +01:00
Daniel Neuhäuser
071546601e Handle versioning in the environment 2011-01-08 00:06:02 +01:00
Georg Brandl
5c39cfb6e9 merge with 1.0 2011-01-07 19:04:53 +01:00
Georg Brandl
bf767d5222 #454: Add more index markup capabilities: marking see/seealso entries, and main entries for a given key. 2011-01-07 19:00:29 +01:00
Georg Brandl
98d884da6e #306: Added :event:env-get-outdated event. 2011-01-07 16:41:44 +01:00
Georg Brandl
0d1a8e5720 merge with 1.0 2011-01-06 13:07:07 +01:00
Georg Brandl
17ef080bb5 merge with 1.0 2011-01-04 21:42:09 +01:00
Georg Brandl
4ce378be29 #209: Added :confval:text_newlines and :confval:text_sectionchars config values. 2011-01-04 21:41:05 +01:00
Georg Brandl
17efae5622 merge with 1.0 2011-01-04 11:29:09 +01:00
Georg Brandl
3642b521ed merge with 1.0 2011-01-04 00:35:27 +01:00
Robert Lehmann
f411dbce23 Ignored translator errors in non-paragraphs for now. 2010-11-13 12:50:52 +01:00
Robert Lehmann
b151aa56e1 Clean up coding style for better comprehensibility. 2010-11-13 12:49:39 +01:00
Georg Brandl
5edd11b245 merge with 1.0 2010-10-22 19:26:28 +02:00
Georg Brandl
db8189083d merge with 1.0 2010-10-22 11:16:48 +02:00
Georg Brandl
2e520e5e7b #460: Allow limiting the depth of section numbers for HTML. 2010-08-25 09:59:53 +00:00
Georg Brandl
1961292029 merge with 1.0 2010-08-23 16:27:25 +00:00