diff options
author | Rob Austein <sra@hactrn.net> | 2020-09-13 23:15:43 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2020-09-13 23:21:33 +0000 |
commit | 13d0f55865f8b1b851ce1e84597b144c5fd41662 (patch) | |
tree | 7b6ff6916f6596f64ec0d2657ae040abd5e18ed9 /raw-wiki-dump/WikiRestructuredTextLinks.md | |
parent | 3aa8b1dd6e0f504ef83da99f8c9cdb2532f948f5 (diff) |
GC
Diffstat (limited to 'raw-wiki-dump/WikiRestructuredTextLinks.md')
-rw-r--r-- | raw-wiki-dump/WikiRestructuredTextLinks.md | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/raw-wiki-dump/WikiRestructuredTextLinks.md b/raw-wiki-dump/WikiRestructuredTextLinks.md deleted file mode 100644 index 900db18..0000000 --- a/raw-wiki-dump/WikiRestructuredTextLinks.md +++ /dev/null @@ -1,71 +0,0 @@ -# TracLinks in reStructuredText - -This document illustrates how to use the `:trac:` role in [reStructuredText](http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html). The page is written like: - -``` -```#!rst -Examples: - - * Tickets: :trac:`#1` or :trac:`ticket:1` - * Ticket comments: :trac:`comment:ticket:1:2` - * Reports: :trac:`{1}` or :trac:`report:1` - * Changesets: :trac:`r1`, :trac:`[1]` or :trac:`changeset:1` - * Revision log: :trac:`r1:3`, :trac:`[1:3]` or :trac:`log:@1:3`, :trac:`log:trunk@1:3` - * Diffs: :trac:`diff:@20:30`, :trac:`diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default` or :trac:`diff:trunk/trac@3538//sandbox/vc-refactoring/trac@3539` - * Wiki pages: :trac:`CamelCase` or :trac:`wiki:CamelCase` - * Milestones: :trac:`milestone:1.0` - * Attachment: :trac:`attachment:ticket:944:attachment.1073.diff` - * Files: :trac:`source:trunk/COPYING` - * A specific file revision: :trac:`source:/trunk/COPYING@200` - * A particular line of a specific file revision: :trac:`source:/trunk/COPYING@200#L25` - -An explicit label can be specified, separated from the link by a space: - - * See :trac:`#1 ticket 1` and the :trac:`source:trunk/COPYING license`. -``` -``` - -Provided you have [docutils](http://docutils.sourceforge.net/) installed, the above block will render as: ----- -```#!rst -Examples: - - * Tickets: :trac:`#1` or :trac:`ticket:1` - * Ticket comments: :trac:`comment:ticket:1:2` - * Reports: :trac:`{1}` or :trac:`report:1` - * Changesets: :trac:`r1`, :trac:`[1]` or :trac:`changeset:1` - * Revision log: :trac:`r1:3`, :trac:`[1:3]` or :trac:`log:@1:3`, :trac:`log:trunk@1:3` - * Diffs: :trac:`diff:@20:30`, :trac:`diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default` or :trac:`diff:trunk/trac@3538//sandbox/vc-refactoring/trac@3539` - * Wiki pages: :trac:`CamelCase` or :trac:`wiki:CamelCase` - * Milestones: :trac:`milestone:1.0` - * Attachment: :trac:`attachment:ticket:944:attachment.1073.diff` - * Files: :trac:`source:trunk/COPYING` - * A specific file revision: :trac:`source:/trunk/COPYING@200` - * A particular line of a specific file revision: :trac:`source:/trunk/COPYING@200#L25` - -An explicit label can be specified, separated from the link by a space: - - * See :trac:`#1 ticket 1` and the :trac:`source:trunk/COPYING license`. -``` ----- - -Note that the above could have been written using substitution references and the `trac::` directive: -``` -```#!rst -See |ticket123|. - - .. |ticket123| trac:: ticket:123 this ticket -``` -``` - -This renders as: ----- - -```#!rst -See |ticket123|. - - .. |ticket123| trac:: ticket:123 this ticket -``` - ----- -See also: WikiRestructuredText, TracLinks |