diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2020-12-09 15:34:10 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2020-12-09 15:34:10 +0000 |
| commit | 21790c396d112c7e02a26faefb874b036df0edaa (patch) | |
| tree | 0203f15943d97d491c52fe5f69c4fbc4d2afd2de /docutils/docs/ref | |
| parent | 35e2f18d9acc5189368e007d3e997377b0f10919 (diff) | |
| download | docutils-21790c396d112c7e02a26faefb874b036df0edaa.tar.gz | |
Fix and extend "rfc-reference" role documentation.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8588 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/docs/ref')
| -rw-r--r-- | docutils/docs/ref/rst/roles.txt | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/docutils/docs/ref/rst/roles.txt b/docutils/docs/ref/rst/roles.txt index a6dc69dee..ef3735514 100644 --- a/docutils/docs/ref/rst/roles.txt +++ b/docutils/docs/ref/rst/roles.txt @@ -177,7 +177,7 @@ on mathematical notation in reStructuredText. The ``:pep-reference:`` role is used to create an HTTP reference to a PEP (Python Enhancement Proposal). The ``:PEP:`` alias is usually -used. For example:: +used. The content must be a number, for example:: See :PEP:`287` for more information about reStructuredText. @@ -199,7 +199,7 @@ This is equivalent to:: The ``:rfc-reference:`` role is used to create an HTTP reference to an RFC (Internet Request for Comments). The ``:RFC:`` alias is usually -used. For example:: +used. The content must be a number [#]_, for example:: See :RFC:`2822` for information about email headers. @@ -207,10 +207,18 @@ This is equivalent to:: See `RFC 2822`__ for information about email headers. - __ http://www.faqs.org/rfcs/rfc2822.html + __ http://tools.ietf.org/html/rfc2822.html -You can link to a specific section by saying ``:rfc:`number#anchor``` (new in -Docutils 0.15). +.. [#] You can link to a specific section by saying + ``:rfc:`number#anchor```. (New in Docutils 0.15.) + + .. Warning:: The anchor (anything follwing a ``#``) is appended to + the reference without any checks and not shown in the link text. + + It is recommended to use `hyperlink references`_ for + anything more complex than a single RFC number. + +.. _hyperlink references: restructuredtext.html#hyperlink-references ``:strong:`` |
