Changes between Version 1 and Version 2 of WikiRestructuredTextLinks


Ignore:
Timestamp:
11/18/04 18:03:00 (20 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiRestructuredTextLinks

    v1 v2  
    11= TracLinks in reStructuredText =
    22
    3 This is a list of example uses of the ''trac'' directive, providing use of TracLinks in WikiRestructuredText.
     3This document is for testing the ``..trac::`` directive. The page is written like
    44
    5 == Examples ==
    65{{{
    76{{{
     7#!rst
     8
     9Examples
     10...
     11...
     12
     13}}}
     14}}}
     15
     16
     17This is a list of example uses of the ''trac'' directive, providing use of TracLinks in WikiRestructuredText.
     18Note that not all that functionality has been merged yet. The patch attached to #801 provides all of these.
     19
     20
     21{{{
    822#!rst
    9 ===============
    10 Trac Link Tests
    11 ===============
    1223
    13 This document is for testing the ``..trac::`` directive.
     24Examples
     25--------
     26
     27trac role
     28=========
     29Syntax 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
     34or
     35
     36``In the middle of my text :trac:`WikiFormatting` see!!!!``
     37   In the middle of my text :trac:`WikiFormatting` see!!!!
     38
     39
     40wiki
     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
    1453
    1554tickets
    1655=======
    1756
    18 ``.. trac:: #1``:
     57``.. trac:: #1``
    1958        .. trac:: #1
    20 ``.. trac:: #1 ticket one``:
     59``.. trac:: #1 ticket one``
    2160        .. trac:: #1 ticket one
    22 ``.. trac:: ticket:1``:
     61``.. trac:: ticket:1``
    2362        .. trac:: ticket:1
    24 ``.. trac:: ticket:1 ticket one``:
     63``.. trac:: ticket:1 ticket one``
    2564        .. trac:: ticket:1 ticket one
    2665
     
    2867=======
    2968
    30 ``.. trac:: {1}``:
     69``.. trac:: {1}``
    3170        .. trac:: {1}
    32 ``.. trac:: {1} report one``:
    33        
     71``.. trac:: {1} report one``
    3472        .. trac:: {1} report one
    35 ``.. trac:: report:1``:
     73``.. trac:: report:1``
    3674        .. trac:: report:1
    37 ``.. trac:: report:1 report one``:
     75``.. trac:: report:1 report one``
    3876        .. trac:: report:1 report one
    3977
     
    4179==========
    4280
    43 ``.. trac:: [42]``:
     81``.. trac:: [42]``
    4482        .. trac:: [42]
    45 ``.. trac:: [42] changeset 42``:
     83``.. trac:: [42] changeset 42``
    4684        .. trac:: [42] changeset 42
    47 ``.. trac:: changeset:42``:
     85``.. trac:: changeset:42``
    4886        .. trac:: changeset:42
    49 ``.. trac:: changeset:42 changeset 42``:
     87``.. trac:: changeset:42 changeset 42``
    5088        .. trac:: changeset:42 changeset 42
    51 ``.. trac:: foo``:
     89``.. trac:: foo``
    5290        .. trac:: foo
    5391
     
    5593=====
    5694
    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
    6997
    70 === Results in: ===
     98The leading ``/`` can be omitted...
    7199
    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
    77104
    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
    79111
    80 tickets
    81 =======
     112Note 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:
    82113
    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
    132118}}}
    133119