| 1 | = TracLinks in reStructuredText = |
| 2 | |
| 3 | This is a list of example uses of the ''trac'' directive, providing use of TracLinks in WikiRestructuredText. |
| 4 | |
| 5 | == Examples == |
| 6 | {{{ |
| 7 | {{{ |
| 8 | #!rst |
| 9 | =============== |
| 10 | Trac Link Tests |
| 11 | =============== |
| 12 | |
| 13 | This document is for testing the ``..trac::`` directive. |
| 14 | |
| 15 | tickets |
| 16 | ======= |
| 17 | |
| 18 | ``.. trac:: #1``: |
| 19 | .. trac:: #1 |
| 20 | ``.. trac:: #1 ticket one``: |
| 21 | .. trac:: #1 ticket one |
| 22 | ``.. trac:: ticket:1``: |
| 23 | .. trac:: ticket:1 |
| 24 | ``.. trac:: ticket:1 ticket one``: |
| 25 | .. trac:: ticket:1 ticket one |
| 26 | |
| 27 | reports |
| 28 | ======= |
| 29 | |
| 30 | ``.. trac:: {1}``: |
| 31 | .. trac:: {1} |
| 32 | ``.. trac:: {1} report one``: |
| 33 | |
| 34 | .. trac:: {1} report one |
| 35 | ``.. trac:: report:1``: |
| 36 | .. trac:: report:1 |
| 37 | ``.. trac:: report:1 report one``: |
| 38 | .. trac:: report:1 report one |
| 39 | |
| 40 | changesets |
| 41 | ========== |
| 42 | |
| 43 | ``.. trac:: [42]``: |
| 44 | .. trac:: [42] |
| 45 | ``.. trac:: [42] changeset 42``: |
| 46 | .. trac:: [42] changeset 42 |
| 47 | ``.. trac:: changeset:42``: |
| 48 | .. trac:: changeset:42 |
| 49 | ``.. trac:: changeset:42 changeset 42``: |
| 50 | .. trac:: changeset:42 changeset 42 |
| 51 | ``.. trac:: foo``: |
| 52 | .. trac:: foo |
| 53 | |
| 54 | files |
| 55 | ===== |
| 56 | |
| 57 | ``.. trac:: browser:foo/hoo``: |
| 58 | .. trac:: browser:foo/hoo |
| 59 | ``.. trac:: repos:foo/hoo foo/hoo``: |
| 60 | .. trac:: repos:foo/hoo foo/hoo |
| 61 | ``.. trac:: source:foo/hoo hoo in foo``: |
| 62 | .. trac:: source:foo/hoo hoo in foo |
| 63 | ``.. trac:: browser:foo/hoo#latest latest of foo/hoo``: |
| 64 | .. trac:: browser:foo/hoo#latest latest of foo/hoo |
| 65 | ``.. trac:: repos:foo/hoo#42 foo/hoo in rev 42``: |
| 66 | .. trac:: repos:foo/hoo#42 foo/hoo in rev 42 |
| 67 | }}} |
| 68 | }}} |
| 69 | |
| 70 | === Results in: === |
| 71 | |
| 72 | {{{ |
| 73 | #!rst |
| 74 | =============== |
| 75 | Trac Link Tests |
| 76 | =============== |
| 77 | |
| 78 | This document is for testing the ``..trac::`` directive. |
| 79 | |
| 80 | tickets |
| 81 | ======= |
| 82 | |
| 83 | ``.. trac:: #1``: |
| 84 | .. trac:: #1 |
| 85 | ``.. trac:: #1 ticket one``: |
| 86 | .. trac:: #1 ticket one |
| 87 | ``.. trac:: ticket:1``: |
| 88 | .. trac:: ticket:1 |
| 89 | ``.. trac:: ticket:1 ticket one``: |
| 90 | .. trac:: ticket:1 ticket one |
| 91 | |
| 92 | reports |
| 93 | ======= |
| 94 | |
| 95 | ``.. trac:: {1}``: |
| 96 | .. trac:: {1} |
| 97 | ``.. trac:: {1} report one``: |
| 98 | |
| 99 | .. trac:: {1} report one |
| 100 | ``.. trac:: report:1``: |
| 101 | .. trac:: report:1 |
| 102 | ``.. trac:: report:1 report one``: |
| 103 | .. trac:: report:1 report one |
| 104 | |
| 105 | changesets |
| 106 | ========== |
| 107 | |
| 108 | ``.. trac:: [42]``: |
| 109 | .. trac:: [42] |
| 110 | ``.. trac:: [42] changeset 42``: |
| 111 | .. trac:: [42] changeset 42 |
| 112 | ``.. trac:: changeset:42``: |
| 113 | .. trac:: changeset:42 |
| 114 | ``.. trac:: changeset:42 changeset 42``: |
| 115 | .. trac:: changeset:42 changeset 42 |
| 116 | ``.. trac:: foo``: |
| 117 | .. trac:: foo |
| 118 | |
| 119 | files |
| 120 | ===== |
| 121 | |
| 122 | ``.. trac:: browser:foo/hoo``: |
| 123 | .. trac:: browser:foo/hoo |
| 124 | ``.. trac:: repos:foo/hoo foo/hoo``: |
| 125 | .. trac:: repos:foo/hoo foo/hoo |
| 126 | ``.. trac:: source:foo/hoo hoo in foo``: |
| 127 | .. trac:: source:foo/hoo hoo in foo |
| 128 | ``.. trac:: browser:foo/hoo#latest latest of foo/hoo``: |
| 129 | .. trac:: browser:foo/hoo#latest latest of foo/hoo |
| 130 | ``.. trac:: repos:foo/hoo#42 foo/hoo in rev 42``: |
| 131 | .. trac:: repos:foo/hoo#42 foo/hoo in rev 42 |
| 132 | }}} |
| 133 | |
| 134 | ---- |
| 135 | See also: WikiRestructuredTextLinks, TracLinks |