close
Warning:
Can't synchronize with repository "(default)" (/hepforge/svn/helac does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Jul 17, 2018, 2:10:54 PM (6 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
1 | 1 | = TracLinks in reStructuredText = |
2 | 2 | |
3 | | This document illustrates how to use the `:trac:` role in reStructuredText. The page is written like: |
| 3 | This document illustrates how to use the `:trac:` role in [http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html reStructuredText]. The page is written like: |
4 | 4 | |
5 | 5 | {{{ |
6 | | {{{ |
7 | | #!rst |
| 6 | {{{#!rst |
8 | 7 | Examples: |
9 | 8 | |
… |
… |
|
13 | 12 | * Changesets: :trac:`r1`, :trac:`[1]` or :trac:`changeset:1` |
14 | 13 | * Revision log: :trac:`r1:3`, :trac:`[1:3]` or :trac:`log:@1:3`, :trac:`log:trunk@1:3` |
15 | | * Diffs (since version 0.10): :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` |
| 14 | * 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` |
16 | 15 | * Wiki pages: :trac:`CamelCase` or :trac:`wiki:CamelCase` |
17 | 16 | * Milestones: :trac:`milestone:1.0` |
… |
… |
|
27 | 26 | }}} |
28 | 27 | |
29 | | Provided you have docutils installed, the above block will render as: |
| 28 | Provided you have [http://docutils.sourceforge.net/ docutils] installed, the above block will render as: |
30 | 29 | ---- |
31 | | {{{ |
32 | | #!rst |
| 30 | {{{#!rst |
33 | 31 | Examples: |
34 | 32 | |
… |
… |
|
38 | 36 | * Changesets: :trac:`r1`, :trac:`[1]` or :trac:`changeset:1` |
39 | 37 | * Revision log: :trac:`r1:3`, :trac:`[1:3]` or :trac:`log:@1:3`, :trac:`log:trunk@1:3` |
40 | | * Diffs (since version 0.10): :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` |
| 38 | * 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` |
41 | 39 | * Wiki pages: :trac:`CamelCase` or :trac:`wiki:CamelCase` |
42 | 40 | * Milestones: :trac:`milestone:1.0` |
… |
… |
|
52 | 50 | ---- |
53 | 51 | |
54 | | Note also that any of the above could have been written using substitution references and the `trac::` directive: |
| 52 | Note that the above could have been written using substitution references and the `trac::` directive: |
55 | 53 | {{{ |
56 | | {{{ |
57 | | #!rst |
| 54 | {{{#!rst |
58 | 55 | See |ticket123|. |
59 | 56 | |
… |
… |
|
65 | 62 | ---- |
66 | 63 | |
67 | | {{{ |
68 | | #!rst |
| 64 | {{{#!rst |
69 | 65 | See |ticket123|. |
70 | 66 | |