summaryrefslogtreecommitdiff
path: root/docutils/test/functional/input/data/standard.txt
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-02-23 12:47:48 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-02-23 12:47:48 +0000
commitb44148d9c152dec06b387f9c0930054e5f70192b (patch)
treee92ccf5e055021e967be363d51111220b8b49a0e /docutils/test/functional/input/data/standard.txt
parentead4c2e9f99f0de34780d1e97707aaa6d6b4222f (diff)
downloaddocutils-b44148d9c152dec06b387f9c0930054e5f70192b.tar.gz
Update functional test sample.
Update some links. Describe "meta" directive. Don't use too wide images and tables to allow adaption to small screens (mobile). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8627 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/input/data/standard.txt')
-rw-r--r--docutils/test/functional/input/data/standard.txt44
1 files changed, 26 insertions, 18 deletions
diff --git a/docutils/test/functional/input/data/standard.txt b/docutils/test/functional/input/data/standard.txt
index 12e2fd1bf..854055739 100644
--- a/docutils/test/functional/input/data/standard.txt
+++ b/docutils/test/functional/input/data/standard.txt
@@ -51,11 +51,6 @@
This is a test document, containing at least one example of each
reStructuredText construct.
-.. meta::
- :keywords: reStructuredText, test, parser
- :description lang=en: A test document, containing at least one
- example of each reStructuredText construct.
-
.. raw:: latex
\pagebreak[4] % start ToC on new page
@@ -108,7 +103,7 @@ cross-references (example_), external hyperlinks with embedded URIs
(`Python web site <http://www.python.org>`__), `anonymous hyperlink
references`__ (`a second reference`__), footnote references (manually
numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered
-[#label]_, or symbolic [*]_), citation references ([CIT2002]_),
+[#label]_, or symbolic [*]_), citation references (see [CIT2002]_),
substitution references (|example| &
a *trimmed heart* ``(U+2665):`` |heart|), and _`inline hyperlink targets`
(see Targets_ below for a reference back to here). Character-level
@@ -118,7 +113,7 @@ inline markup is also possible (although exceedingly ugly!) in *re*\
reference to the doctitle_ and the subtitle_.
__ http://www.python.org/
-__ http://docutils.sourceforge.net/
+__ https://docutils.sourceforge.io/
The default role for interpreted text is `Title Reference`. Here are
some explicit interpreted text roles: a PEP reference (:PEP:`287`); an
@@ -448,8 +443,9 @@ Directives
.. contents:: :local:
These are just a sample of the many reStructuredText Directives. For
-others, please see
-http://docutils.sourceforge.net/docs/ref/rst/directives.html.
+others, please see `reStructuredText Directives`__.
+
+__ https://docutils.sourceforge.io/docs/ref/rst/directives.html
Document Parts
``````````````
@@ -466,13 +462,14 @@ An image directive (also clickable -- a hyperlink reference):
.. image:: ../../../docs/user/rst/images/title.png
:class: class1 class2
:target: directives_
+ :width: 70%
Image with multiple IDs:
.. _image target 1:
.. _image target 2:
.. _image target 3:
-.. image:: ../../../docs/user/rst/images/title.png
+.. image:: ../../../docs/user/rst/images/biohazard.png
A centered image:
@@ -506,22 +503,18 @@ An image 2 em wide:
.. image:: ../../../docs/user/rst/images/biohazard.png
:width: 2 em
-An image 2 em wide and 15 pixel high:
+An image 2 cm wide and 15 pixel high:
.. image:: ../../../docs/user/rst/images/biohazard.png
- :width: 2em
+ :width: 2cm
:height: 15 px
+Relative units allow adaption of the image to the screen or paper size.
An image occupying 50% of the line width:
.. image:: ../../../docs/user/rst/images/title.png
:width: 50%
-An image 2 cm high:
-
-.. image:: ../../../docs/user/rst/images/biohazard.png
- :height: 2 cm
-
A *figure* is an image with a caption and/or a legend. With page-based output
media, figures might float to a different position if this helps the page
layout.
@@ -686,7 +679,7 @@ Admonitions
You can make up your own admonition too.
- .. _Docutils: http://docutils.sourceforge.net/
+ .. _Docutils: https://docutils.sourceforge.io/
Topics, Sidebars, and Rubrics
`````````````````````````````
@@ -903,6 +896,21 @@ as a code block, here the rst file ``header_footer.txt`` with line numbers:
.. _Pygments: http://pygments.org/
+
+Meta
+````
+
+The `“meta” directive`__ is used to specify metadata to be stored in,
+e.g., HTML META tags or ODT file properties.
+
+.. meta::
+ :keywords: reStructuredText, test, parser
+ :description lang=en: A test document, containing at least one
+ example of each reStructuredText construct.
+
+__ https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata
+
+
Substitution Definitions
------------------------