Changes between Version 2 and Version 3 of WikiRestructuredTextLinks
- Timestamp:
- Oct 8, 2004, 6:22:28 PM (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredTextLinks
v2 v3 16 16 17 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. 18 19 19 20 … … 26 27 trac role 27 28 ========= 28 Syntax is \`link\`\:trac: and could be put anywhere int the text. 'link' has the same format asbelow.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. 29 30 30 ``In the middle of my text `WikiFormatting`:trac: `` see!!!!:31 ``In the middle of my text `WikiFormatting`:trac: see!!!!`` 31 32 In the middle of my text `WikiFormatting`:trac: see!!!! 32 33 34 or 35 36 ``In the middle of my text :trac:`WikiFormatting` see!!!!`` 37 In the middle of my text :trac:`WikiFormatting` see!!!! 33 38 34 39 35 40 wiki 36 41 ==== 37 ``.. trac:: WikiFormatting`` :42 ``.. trac:: WikiFormatting`` 38 43 .. trac:: WikiFormatting 39 44 … … 41 46 .. trac:: wiki:WikiFormatting 42 47 43 ``.. trac:: wiki:WikiFormatting WikiFormatting`` :48 ``.. trac:: wiki:WikiFormatting WikiFormatting`` 44 49 .. trac:: wiki:WikiFormatting WikiFormatting 45 50 46 ``.. trac:: wiki:WikiFormatting LinkText`` :51 ``.. trac:: wiki:WikiFormatting LinkText`` 47 52 .. trac:: wiki:WikiFormatting LinkText 48 53 … … 50 55 ======= 51 56 52 ``.. trac:: #1`` :57 ``.. trac:: #1`` 53 58 .. trac:: #1 54 ``.. trac:: #1 ticket one`` :59 ``.. trac:: #1 ticket one`` 55 60 .. trac:: #1 ticket one 56 ``.. trac:: ticket:1`` :61 ``.. trac:: ticket:1`` 57 62 .. trac:: ticket:1 58 ``.. trac:: ticket:1 ticket one`` :63 ``.. trac:: ticket:1 ticket one`` 59 64 .. trac:: ticket:1 ticket one 60 65 … … 62 67 ======= 63 68 64 ``.. trac:: {1}`` :69 ``.. trac:: {1}`` 65 70 .. trac:: {1} 66 ``.. trac:: {1} report one`` :71 ``.. trac:: {1} report one`` 67 72 .. trac:: {1} report one 68 ``.. trac:: report:1`` :73 ``.. trac:: report:1`` 69 74 .. trac:: report:1 70 ``.. trac:: report:1 report one`` :75 ``.. trac:: report:1 report one`` 71 76 .. trac:: report:1 report one 72 77 … … 74 79 ========== 75 80 76 ``.. trac:: [42]`` :81 ``.. trac:: [42]`` 77 82 .. trac:: [42] 78 ``.. trac:: [42] changeset 42`` :83 ``.. trac:: [42] changeset 42`` 79 84 .. trac:: [42] changeset 42 80 ``.. trac:: changeset:42`` :85 ``.. trac:: changeset:42`` 81 86 .. trac:: changeset:42 82 ``.. trac:: changeset:42 changeset 42`` :87 ``.. trac:: changeset:42 changeset 42`` 83 88 .. trac:: changeset:42 changeset 42 84 ``.. trac:: foo`` :89 ``.. trac:: foo`` 85 90 .. trac:: foo 86 91 … … 88 93 ===== 89 94 90 ``.. trac:: browser:foo/hoo``: 91 .. trac:: browser:foo/hoo 92 ``.. trac:: repos:foo/hoo foo/hoo``: 93 .. trac:: repos:foo/hoo foo/hoo 94 ``.. trac:: source:foo/hoo hoo in foo``: 95 .. trac:: source:foo/hoo hoo in foo 96 ``.. trac:: browser:foo/hoo#latest latest of foo/hoo``: 97 .. trac:: browser:foo/hoo#latest latest of foo/hoo 98 ``.. trac:: repos:foo/hoo#42 foo/hoo in rev 42``: 99 .. trac:: repos:foo/hoo#42 foo/hoo in rev 42 95 ``.. trac:: browser:/trunk/trac`` 96 .. trac:: browser:/trunk/trac 97 98 The leading ``/`` can be omitted... 99 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 104 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 111 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: 113 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 100 118 }}} 101 119