Changes between Version 1 and Version 2 of WikiRestructuredTextLinks
- Timestamp:
- 11/18/04 18:03:00 (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredTextLinks
v1 v2 1 1 = TracLinks in reStructuredText = 2 2 3 This is a list of example uses of the ''trac'' directive, providing use of TracLinks in WikiRestructuredText.3 This document is for testing the ``..trac::`` directive. The page is written like 4 4 5 == Examples ==6 5 {{{ 7 6 {{{ 7 #!rst 8 9 Examples 10 ... 11 ... 12 13 }}} 14 }}} 15 16 17 This is a list of example uses of the ''trac'' directive, providing use of TracLinks in WikiRestructuredText. 18 Note that not all that functionality has been merged yet. The patch attached to #801 provides all of these. 19 20 21 {{{ 8 22 #!rst 9 ===============10 Trac Link Tests11 ===============12 23 13 This document is for testing the ``..trac::`` directive. 24 Examples 25 -------- 26 27 trac role 28 ========= 29 Syntax is \`link\`\:trac: or :trac:\`link\`, and could be put anywhere in the text. 'link' has the same format as explain for the ``.. trac::`` directive below. 30 31 ``In the middle of my text `WikiFormatting`:trac: see!!!!`` 32 In the middle of my text `WikiFormatting`:trac: see!!!! 33 34 or 35 36 ``In the middle of my text :trac:`WikiFormatting` see!!!!`` 37 In the middle of my text :trac:`WikiFormatting` see!!!! 38 39 40 wiki 41 ==== 42 ``.. trac:: WikiFormatting`` 43 .. trac:: WikiFormatting 44 45 ``.. trac:: wiki:WikiFormatting`` 46 .. trac:: wiki:WikiFormatting 47 48 ``.. trac:: wiki:WikiFormatting WikiFormatting`` 49 .. trac:: wiki:WikiFormatting WikiFormatting 50 51 ``.. trac:: wiki:WikiFormatting LinkText`` 52 .. trac:: wiki:WikiFormatting LinkText 14 53 15 54 tickets 16 55 ======= 17 56 18 ``.. trac:: #1`` :57 ``.. trac:: #1`` 19 58 .. trac:: #1 20 ``.. trac:: #1 ticket one`` :59 ``.. trac:: #1 ticket one`` 21 60 .. trac:: #1 ticket one 22 ``.. trac:: ticket:1`` :61 ``.. trac:: ticket:1`` 23 62 .. trac:: ticket:1 24 ``.. trac:: ticket:1 ticket one`` :63 ``.. trac:: ticket:1 ticket one`` 25 64 .. trac:: ticket:1 ticket one 26 65 … … 28 67 ======= 29 68 30 ``.. trac:: {1}`` :69 ``.. trac:: {1}`` 31 70 .. trac:: {1} 32 ``.. trac:: {1} report one``: 33 71 ``.. trac:: {1} report one`` 34 72 .. trac:: {1} report one 35 ``.. trac:: report:1`` :73 ``.. trac:: report:1`` 36 74 .. trac:: report:1 37 ``.. trac:: report:1 report one`` :75 ``.. trac:: report:1 report one`` 38 76 .. trac:: report:1 report one 39 77 … … 41 79 ========== 42 80 43 ``.. trac:: [42]`` :81 ``.. trac:: [42]`` 44 82 .. trac:: [42] 45 ``.. trac:: [42] changeset 42`` :83 ``.. trac:: [42] changeset 42`` 46 84 .. trac:: [42] changeset 42 47 ``.. trac:: changeset:42`` :85 ``.. trac:: changeset:42`` 48 86 .. trac:: changeset:42 49 ``.. trac:: changeset:42 changeset 42`` :87 ``.. trac:: changeset:42 changeset 42`` 50 88 .. trac:: changeset:42 changeset 42 51 ``.. trac:: foo`` :89 ``.. trac:: foo`` 52 90 .. trac:: foo 53 91 … … 55 93 ===== 56 94 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 }}} 95 ``.. trac:: browser:/trunk/trac`` 96 .. trac:: browser:/trunk/trac 69 97 70 === Results in: === 98 The leading ``/`` can be omitted... 71 99 72 {{{ 73 #!rst 74 =============== 75 Trac Link Tests 76 =============== 100 ``.. trac:: repos:trunk/trac trunk/trac`` 101 .. trac:: repos:trunk/trac trunk/trac 102 ``.. trac:: source:trunk/trac Trac source code`` 103 .. trac:: source:trunk/trac Trac source code 77 104 78 This document is for testing the ``..trac::`` directive. 105 ``.. trac:: browser:trunk/README`` 106 .. trac:: browser:trunk/README 107 ``.. trac:: repos:trunk/README trunk/README`` 108 .. trac:: repos:trunk/README trunk/README 109 ``.. trac:: source:trunk/README README in trunk`` 110 .. trac:: source:trunk/README README in trunk 79 111 80 tickets 81 ======= 112 Note that if ``hoo`` is a file, the link targets its revision log. In order to see the file's content, you need to specify the revision explicitely, like here: 82 113 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 114 ``.. trac:: browser:/trunk/README#latest latest of trunk/README`` 115 .. trac:: browser:/trunk/README#latest latest of trunk/README 116 ``.. trac:: repos:trunk/README#42 trunk/README in rev 42`` 117 .. trac:: repos:trunk/README#42 trunk/README in rev 42 132 118 }}} 133 119