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
Sebastian Wiesner
cee5b63fb0
Fixed KeyError in StandardDomain.get_objects
...
Remove domain prefix from type when inserting generic targets into the
inventory, as everything else (especially StandardDomain.get_objects)
expects it this way.
2010-04-11 22:09:48 +02:00
Georg Brandl
9334d1537c
Add some domain documentation.
2010-03-01 14:22:14 +01:00
Georg Brandl
dfa5ef2375
Rename doc_read_data to temp_data, which reflects better what it does.
2010-01-17 19:46:47 +01:00
Georg Brandl
98bcd2fab4
Make the _ gettext alias an explicit import instead of installing into builtins.
2010-01-17 19:33:23 +01:00
Georg Brandl
bacb6435e4
merge with trunk
2010-01-17 17:52:51 +01:00
Georg Brandl
5d40d8bd63
merge with trunk
2010-01-17 14:24:24 +01:00
Georg Brandl
6ae7e196c3
Fix test suite errors.
2010-01-13 23:44:31 +00:00
Georg Brandl
07f295df7c
merge
2010-01-13 23:35:13 +00:00
Georg Brandl
65b426b22b
Rename parse_signature() to handle_signature(); allows more to happen. Record module and class name in Python object descriptions.
2010-01-13 20:58:44 +01:00
Georg Brandl
54a31c5a6f
Change naming convention in doc_read_data to "domain:key".
2010-01-13 20:45:34 +01:00
Georg Brandl
883b40b7e9
Fix long line.
2010-01-08 20:40:28 +01:00
Georg Brandl
cbd75346fd
merge with trunk
2010-01-07 19:17:45 +01:00
Georg Brandl
38e120848f
Update copyrights.
2010-01-02 21:14:10 +01:00
Georg Brandl
d12ad380f2
Finish renaming description units to object (description)s.
2009-10-27 19:58:40 +01:00
Georg Brandl
52d5411f6d
fix bugs.
2009-09-10 21:58:05 +02:00
Georg Brandl
732e2b377f
Move :envvar: index markup logic over to std domain.
2009-09-09 19:35:50 +02:00
Georg Brandl
abc7597d06
Small beauty fixes.
2009-09-08 12:07:49 +02:00
Georg Brandl
92aa430241
search: make the search work with the new domain model.
2009-09-08 00:04:25 +02:00
Georg Brandl
fa7f8812cd
More refactoring for language-independent domain support.
...
* Renamed "desc"ription unit to "object" wherever possible.
* Added standard x-ref types to a StandardDomain which is always consulted.
* Split domains module into a subpackage.
* Removed additional_xref_types in favor of new directive classes in StandardDomain.
* Implemented x-ref inventory version 2, for all object types.
* Added env.doc_read_data which is for temporary data stored while reading.
* Minimally updated extension tutorial.
* Started to implement changes to interactive search.
* Test suite passes again.
2009-09-07 22:52:26 +02:00