mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge heads
This commit is contained in:
commit
986aba2a43
2
CHANGES
2
CHANGES
@ -81,6 +81,8 @@ Features added
|
|||||||
the order of documents before they are read by the environment.
|
the order of documents before they are read by the environment.
|
||||||
* #1284: Program options documented with :rst:dir:`option` can now start with
|
* #1284: Program options documented with :rst:dir:`option` can now start with
|
||||||
``+``.
|
``+``.
|
||||||
|
* PR#291: The caption of :rst:dir:`code-block` is recognised as a title of ref
|
||||||
|
target. Thanks to Takeshi Komiya.
|
||||||
|
|
||||||
Bugs fixed
|
Bugs fixed
|
||||||
----------
|
----------
|
||||||
|
@ -562,6 +562,11 @@ class StandardDomain(Domain):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
elif node.tagname == 'literal_block':
|
||||||
|
if 'caption' in node:
|
||||||
|
sectname = node['caption']
|
||||||
|
else:
|
||||||
|
continue
|
||||||
else:
|
else:
|
||||||
# anonymous-only labels
|
# anonymous-only labels
|
||||||
continue
|
continue
|
||||||
|
@ -142,6 +142,7 @@ Adding \n to test unescaping.
|
|||||||
* :ref:`here <some-label>`
|
* :ref:`here <some-label>`
|
||||||
* :ref:`my-figure`
|
* :ref:`my-figure`
|
||||||
* :ref:`my-table`
|
* :ref:`my-table`
|
||||||
|
* :ref:`my-code-block`
|
||||||
* :doc:`subdir/includes`
|
* :doc:`subdir/includes`
|
||||||
* ``:download:`` is tested in includes.txt
|
* ``:download:`` is tested in includes.txt
|
||||||
* :option:`Python -c option <python -c>`
|
* :option:`Python -c option <python -c>`
|
||||||
@ -228,8 +229,11 @@ Version markup
|
|||||||
Code blocks
|
Code blocks
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
.. _my-code-block:
|
||||||
|
|
||||||
.. code-block:: ruby
|
.. code-block:: ruby
|
||||||
:linenos:
|
:linenos:
|
||||||
|
:caption: my ruby code
|
||||||
|
|
||||||
def ruby?
|
def ruby?
|
||||||
false
|
false
|
||||||
|
Loading…
Reference in New Issue
Block a user