wikirestructuredtextlinks
                no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | wikirestructuredtextlinks [2015/06/09 19:23] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== TracLinks in reStructuredText ====== | ||
| + | |||
| + | This document illustrates how to use the ``..trac:: | ||
| + | |||
| + | < | ||
| + | < | ||
| + | #!rst | ||
| + | |||
| + | Examples: | ||
| + |   * Tickets: :trac:`#1` or : | ||
| + |   * Ticket comments: : | ||
| + |   * Reports: :trac:`{1}` or : | ||
| + |   * Changesets: :trac:`r1`, : | ||
| + |   * Revision log: : | ||
| + |   * Diffs (since version 0.10): : | ||
| + |   * Wiki pages: : | ||
| + |   * Milestones: : | ||
| + |   * Attachment: : | ||
| + |   * Files: : | ||
| + |   * A specific file revision: : | ||
| + |   * A particular line of a specific file revision: : | ||
| + | |||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | Provided you have docutils installed, the above block will render as: | ||
| + | ---- | ||
| + | < | ||
| + | #!rst | ||
| + | |||
| + | Examples: | ||
| + |   * Tickets: :trac:`#1` or : | ||
| + |   * Ticket comments: : | ||
| + |   * Reports: :trac:`{1}` or : | ||
| + |   * Changesets: :trac:`r1`, : | ||
| + |   * Revision log: : | ||
| + |   * Diffs (since version 0.10): : | ||
| + |   * Wiki pages: : | ||
| + |   * Milestones: : | ||
| + |   * Attachment: : | ||
| + |   * Files: : | ||
| + |   * A specific file revision: : | ||
| + |   * A particular line of a specific file revision: : | ||
| + | |||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | Note also that any of the above could have been written using the alternate syntax for roles: | ||
| + | < | ||
| + | < | ||
| + | #!rst | ||
| + | |||
| + | See `ticket: | ||
| + | |||
| + | .. :trac: ticket:123 Ticket 123 | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | < | ||
| + | #!rst | ||
| + | |||
| + | See _`ticket: | ||
| + | |||
| + | .. trac:: ticket:123 Ticket 123 | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | The above form has the additional benefit of allowing you to specify an explicit label for the link. | ||
| + | |||
| + | ---- | ||
| + | See also: WikiRestructuredText, | ||
wikirestructuredtextlinks.txt · Last modified:  by 127.0.0.1
                
                