Commit Graph

169 Commits

Author SHA1 Message Date
Takeshi KOMIYA
ad738a0978 Fix #2309: Could not refer "indirect hyperlink targets" by ref-role 2016-04-24 13:57:32 +09:00
Takeshi KOMIYA
2441c647d2 Fix #2229: no warning is given for unknown options 2016-02-23 12:23:06 +09:00
Takeshi KOMIYA
d38b3ff2a0 Merge branch 'stable' 2016-02-20 21:19:51 +09:00
Takeshi KOMIYA
f6af2af9a4 Don't show option-role warnings in 1.3.x too 2016-02-20 19:43:39 +09:00
Takeshi KOMIYA
ae8cbec29a Fix unpack warning is shown when the directives generated from `Sphinx.add_crossref_type` is used 2016-02-17 11:58:19 +09:00
shimizukawa
e6a5a3a92e classifier of glossary terms can be used for index entries grouping key. The classifier also be used for translation. See also :ref:glossary-directive. 2016-02-14 19:28:58 +09:00
shimizukawa
cca371de87 Remove termset node. It is not used anywhere. Restore termsep node and set as Deprecation. refs #2251 2016-02-14 15:11:07 +09:00
shimizukawa
804e866404 Now term nodes in a glossary directive are wrapped with termset node to handle multiple term correctly.
Fix #2251; Line breaks in .rst files are transferred to .pot files in a wrong way.
2016-02-14 15:11:06 +09:00
Takeshi KOMIYA
2ec60d5919 Fix #1858: Support numbering custom nodes 2016-02-14 14:49:34 +09:00
Takeshi KOMIYA
279ac7c23f Refactor numfig: Move core implementation to std domain 2016-02-14 14:49:20 +09:00
shimizukawa
b1a23817fc Merge with 'stable' 2016-01-24 13:47:51 +09:00
Takeshi KOMIYA
883ae3c5a7 Fix warning message for `:numref:` if target is in orphaned doc (ref: #2244) 2016-01-23 21:51:52 +09:00
Georg Brandl
4f72bdb722 Merge branch 'stable' 2016-01-14 22:54:08 +01:00
Georg Brandl
46d7e8558e Obligatory copyright update. 2016-01-14 22:54:04 +01:00
Takeshi KOMIYA
7898c64cf4 Fix line numbers were not show on warnings of numfigs 2016-01-13 00:38:38 +09:00
shimizukawa
f824539119 merge with stable 2016-01-13 00:13:35 +09:00
Takeshi KOMIYA
ca896755a9 Fix #2229, any-role and `-W` option are conflicted 2016-01-12 13:35:52 +09:00
Takeshi KOMIYA
bba3f388e9 Fix #2229: No warning is given for unknown options 2016-01-11 23:31:28 +09:00
Takeshi KOMIYA
e4b9eb51f6 Merge branch 'stable' 2016-01-11 00:27:26 +09:00
Takeshi KOMIYA
7894f0bd9c Fix #2225: If the option does not begin with dash, linking is not performed 2016-01-09 19:57:23 +09:00
shimizukawa
e800fef3d1 merge with 'stable' 2015-12-02 18:38:52 +09:00
Takeshi KOMIYA
47e7b022c2 Fix #2012 exception occurred if `numfig_format` is invalid 2015-11-30 11:38:37 +09:00
shimizukawa
d51228152e merge with stable 2015-07-25 18:15:09 +02:00
Georg Brandl
886d174534 Closes #1903: Fix strange id generation for glossary terms. 2015-07-25 17:12:30 +02:00
Georg Brandl
6efafcdca4 std domain: make sure that ref and doc references have proper classes set 2015-07-25 12:34:26 +02:00
Georg Brandl
5f6030bec7 Fixes #1909: Add "doc" references to Intersphinx inventories. 2015-07-25 12:11:23 +02:00
Georg Brandl
ba9dcaac51 more pep8 fixes 2015-03-08 16:59:27 +01:00
shimizukawa
996b872875 refs #1700, #1742: add testing and fix two bugs. 2015-03-08 21:59:42 +09:00
Takeshi KOMIYA
5e48ac9b4f Role `numref uses %s as special character instead #` symbol 2015-03-08 08:30:16 +09:00
shimizukawa
9ba0a51555 refs #1658, #1750: add test and small tweak. 2015-03-03 08:13:14 +09:00
Takayuki Hirai
6d0795cbf3 Fix #1658 2015-03-02 21:37:37 +09:00
Georg Brandl
8a273d139b Fix generating emphasis nodes without semantic reason
Roles ``ref``, ``term`` and ``menusel`` now don't generate :durole:`emphasis`
nodes anymore.  If you want to keep italic style, adapt your stylesheet.
2015-02-25 15:51:47 +01:00
Takeshi KOMIYA
b0e77e4c75 Use fully_normalize_name() instead of str.lower() 2015-02-22 23:20:00 +09:00
Takeshi KOMIYA
62e0490b81 Closes #1718. :numref: does not work with capital letters in the label 2015-02-22 11:28:21 +09: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
tk0miya
88103c112a Fix #1603 :numref: doesn't work correctly when label contain underscore
If label contains underscore, the underscores are replaced with hyphens on normalization.
:numref: confuses the normalization with explicit notation.
This fix uses `target` variable insted of labelid to check the role is explicit or not.
2014-10-27 11:02:54 +09:00
Takayuki Shimizukawa
d289870f48 rename numfig_prefix to numfig_format. later is better for the purpose. 2014-10-10 00:19:17 +09:00
tk0miya
cdc244428d Merge with default 2014-10-06 23:57:16 +09:00
tk0miya
e0fb54a7bb Catch KeyError resolving numref if target docs does not included in toctree 2014-10-06 18:50:01 +09:00
tk0miya
002ba5e4de Support :numref: in LaTeX writer 2014-10-01 11:38:41 +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
7c7a563426 Fix by review comment 2014-09-26 20:15:17 +09:00
tk0miya
3ad1f1c164 Merge with default 2014-09-24 00:43:47 +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
31452fc64d [WIP] parallel read 2014-09-22 14:51:47 +02:00
Georg Brandl
a064f43bc0 PEP8 cleanup in std.py. 2014-09-20 19:59:14 +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
6ba8883685 Add ref context to all "any" references. Should make it possible to resolve them more accurately. 2014-09-20 19:23:25 +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
1fcef558fa Enable links to options without program name 2014-09-20 13:47:01 +02:00
Georg Brandl
fbb8827345 Fix wrong class generated from option "any" reference 2014-09-20 13:40:38 +02:00
Georg Brandl
90d43569de Fix linking with "any" to :ref: and :term: with non-lowercased targets. 2014-09-20 13:34:36 +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
2d6ef89807 merge with stable 2014-09-19 10:36:34 +02:00
Georg Brandl
c683bd7504 Std domain: don't expect "refprogram" attribute on an xref node.
This would lead to an exception if we pass in some generic x-ref node
that tries to resolve as an option.
2014-09-19 10:35:43 +02:00
tk0miya
d076452199 do nested_parse() :caption: of code-block directive 2014-09-19 12:04:25 +09:00
tk0miya
b17320ee1e Fix cannot capture title of literal_block node by xref 2014-08-24 14:33:56 +09:00
Takayuki Shimizukawa
7aed098f5d refactoring at 37664fe44c7 is not correct. reverting. Thanks @tk0miya. refs pull request #264 2014-08-10 17:00:09 +09:00
Takayuki Shimizukawa
68949656b2 * for PR#264: update CHANGES, add tests, small refactoring. 2014-08-10 16:28:31 +09:00
tk0miya
b3798ab32c Fix could not resolve xref for figure node with :name: option 2014-07-28 01:30:24 +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
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
1eb23c62ce merge with stable 2014-01-22 18:13:49 +01:00
Georg Brandl
2acaf03270 Closes #1357: Option names documented by :rst:dir:option are now again allowed to
not start with a dash or slash, and referencing them will work correctly.
2014-01-22 17:42:38 +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
f2d8d2abbb Closes #1017: Be helpful and tell the user when the argument to :rst:dir:option does not match the required format. 2014-01-12 19:58:31 +01:00
Georg Brandl
8436f07c40 Closes #1050: Add anonymous labels into `objects.inv` to be referenced via intersphinx. 2014-01-11 20:54:42 +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
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
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
Georg Brandl
63463eed97 std domain: better name for local variable 2013-03-29 12:12:21 +01:00
Takayuki Shimizukawa
9735ec0a74 fix source and line value for glossary term. refs #1090 2013-01-30 00:49:41 +09:00
Takayuki Shimizukawa
6f4764f77b Fix gettext does not extract glossary terms. Closes #1090 2013-01-30 00:13:58 +09:00
Georg Brandl
151856819c Copyright update. 2013-01-01 22:13:15 +01:00
Georg Brandl
4cf1afb064 Fix code style nits. 2012-03-10 21:39:40 +01:00
Georg Brandl
8f9b88f27f Closes #832: Fix crashes when putting comments or lone terms in a glossary. 2012-01-29 11:36:12 +01:00
Georg Brandl
90b7372b80 Closes #797: Don't crash on a misformatted glossary. 2011-11-01 09:09:50 +01: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
25d41d8ed1 Merge with 1.0 2011-09-23 08:06:12 +02:00
Georg Brandl
a7f255d2f6 Fix #616: Allow keywords to be linked via intersphinx. 2011-09-22 18:59:54 +02:00
Georg Brandl
7c6e385505 Fix #613: Allow Unicode characters in production list token names. 2011-09-22 18:44:33 +02: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
9624ff5e10 #148: Support sorting a limited range of accented characters in the glossary. 2011-01-04 19:23:47 +01:00
Georg Brandl
0e1db6ad90 New year update. 2011-01-04 10:00:51 +01:00
Georg Brandl
b4558269a6 Remove use of method new in docutils 0.7. 2011-01-08 23:08:31 +01:00
Georg Brandl
a484c6f793 #490: Fix cross-references to objects of types added by the :func:~.Sphinx.add_object_type API function. 2010-08-14 16:51:04 +02:00
Georg Brandl
893d64ec50 merge with 1.0 2011-01-08 16:57:17 +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
f925de6aa0 #586: Implemented improved glossary markup which allows multiple terms per definition. 2011-01-06 20:34:41 +01:00
Georg Brandl
0f7072f028 Allow linking to tables just like figures with :ref:. 2010-05-30 12:11:52 +02:00
Georg Brandl
0238e83013 Merge with http://bitbucket.org/tpowers/sphinx/ (rewriting the external/internal distinction code)
In HTML output, references now get the class ``internal`` if they are internal to the whole project, as opposed to internal to the current page.

The ``menuselection`` and ``guilabel`` roles now support ampersand accelerators.
2010-05-24 12:57:07 +02:00
Georg Brandl
0f2a0381ba Rename default_domain to primary_domain; give it special semantics. 2010-05-23 16:48:54 +02:00
Georg Brandl
5b7e794e2b #413: Added a way for intersphinx to refer to named labels in other
projects, and to specify the project you want to link to.
2010-05-23 13:06:01 +02:00
Georg Brandl
77b3c15049 Move :ref: labels over to std domain. 2010-05-23 11:59:20 +02:00
Sebastian Wiesner
90b2b59fca Fixed whitespace normalization for generic targets 2010-04-11 22:10:02 +02:00