mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Rename :filename: option of code-block directive to :caption:
This commit is contained in:
21
tests/roots/test-directive-code/caption.rst
Normal file
21
tests/roots/test-directive-code/caption.rst
Normal file
@@ -0,0 +1,21 @@
|
||||
Dedent
|
||||
======
|
||||
|
||||
Code blocks
|
||||
-----------
|
||||
|
||||
.. code-block:: ruby
|
||||
:caption: caption-test.rb
|
||||
|
||||
def ruby?
|
||||
false
|
||||
end
|
||||
|
||||
|
||||
Literal Include
|
||||
---------------
|
||||
|
||||
.. literalinclude:: literal.inc
|
||||
:language: python
|
||||
:caption: caption-test.py
|
||||
:lines: 10-11
|
||||
@@ -2,6 +2,7 @@ test-directive-code
|
||||
===================
|
||||
|
||||
.. toctree::
|
||||
:glob:
|
||||
|
||||
*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user