| | 1 | = reStructuredText における TracLinks = |
| | 2 | |
| | 3 | このドキュメントは ``..trac::`` ディレクティブをテストするためのものです。このページは以下のように書かれます。 |
| | 4 | |
| | 5 | {{{ |
| | 6 | {{{ |
| | 7 | #!rst |
| | 8 | |
| | 9 | Examples |
| | 10 | ... |
| | 11 | ... |
| | 12 | |
| | 13 | }}} |
| | 14 | }}} |
| | 15 | |
| | 16 | |
| | 17 | これは、 WikiRestructuredText で TracLinks を提供する ''trac'' ディレクティブの使用方法の一覧です。 |
| | 18 | |
| | 19 | {{{ |
| | 20 | #!rst |
| | 21 | |
| | 22 | 例 |
| | 23 | -------- |
| | 24 | |
| | 25 | trac の役割 |
| | 26 | =========== |
| | 27 | シンタックスは \`link\`\:trac: もしくは :trac:\`link\` です。そして、テキストのどこにでも置くことができます。 'link' は以下に示す ``.. trac::`` ディレクティブの説明と同じフォーマットです。 |
| | 28 | |
| | 29 | ``In the middle of my text `WikiFormatting`:trac: see!!!!`` |
| | 30 | In the middle of my text `WikiFormatting`:trac: see!!!! |
| | 31 | |
| | 32 | もしくは |
| | 33 | |
| | 34 | ``In the middle of my text :trac:`WikiFormatting` see!!!!`` |
| | 35 | In the middle of my text :trac:`WikiFormatting` see!!!! |
| | 36 | |
| | 37 | |
| | 38 | wiki |
| | 39 | ==== |
| | 40 | ``.. trac:: WikiFormatting`` |
| | 41 | .. trac:: WikiFormatting |
| | 42 | |
| | 43 | ``.. trac:: wiki:WikiFormatting`` |
| | 44 | .. trac:: wiki:WikiFormatting |
| | 45 | |
| | 46 | ``.. trac:: wiki:WikiFormatting WikiFormatting`` |
| | 47 | .. trac:: wiki:WikiFormatting WikiFormatting |
| | 48 | |
| | 49 | ``.. trac:: wiki:WikiFormatting LinkText`` |
| | 50 | .. trac:: wiki:WikiFormatting LinkText |
| | 51 | |
| | 52 | チケット |
| | 53 | ======== |
| | 54 | |
| | 55 | ``.. trac:: #1`` |
| | 56 | .. trac:: #1 |
| | 57 | ``.. trac:: #1 ticket one`` |
| | 58 | .. trac:: #1 ticket one |
| | 59 | ``.. trac:: ticket:1`` |
| | 60 | .. trac:: ticket:1 |
| | 61 | ``.. trac:: ticket:1 ticket one`` |
| | 62 | .. trac:: ticket:1 ticket one |
| | 63 | |
| | 64 | レポート |
| | 65 | ======== |
| | 66 | |
| | 67 | ``.. trac:: {1}`` |
| | 68 | .. trac:: {1} |
| | 69 | ``.. trac:: {1} report one`` |
| | 70 | .. trac:: {1} report one |
| | 71 | ``.. trac:: report:1`` |
| | 72 | .. trac:: report:1 |
| | 73 | ``.. trac:: report:1 report one`` |
| | 74 | .. trac:: report:1 report one |
| | 75 | |
| | 76 | チェンジセット |
| | 77 | ============== |
| | 78 | |
| | 79 | ``.. trac:: [42]`` |
| | 80 | .. trac:: [42] |
| | 81 | ``.. trac:: [42] changeset 42`` |
| | 82 | .. trac:: [42] changeset 42 |
| | 83 | ``.. trac:: changeset:42`` |
| | 84 | .. trac:: changeset:42 |
| | 85 | ``.. trac:: changeset:42 changeset 42`` |
| | 86 | .. trac:: changeset:42 changeset 42 |
| | 87 | ``.. trac:: foo`` |
| | 88 | .. trac:: foo |
| | 89 | |
| | 90 | ファイル |
| | 91 | ======== |
| | 92 | |
| | 93 | ``.. trac:: browser:/trunk/trac`` |
| | 94 | .. trac:: browser:/trunk/trac |
| | 95 | |
| | 96 | 先頭の ``/`` は省略できます... |
| | 97 | |
| | 98 | ``.. trac:: repos:trunk/trac trunk/trac`` |
| | 99 | .. trac:: repos:trunk/trac trunk/trac |
| | 100 | ``.. trac:: source:trunk/trac Trac source code`` |
| | 101 | .. trac:: source:trunk/trac Trac source code |
| | 102 | |
| | 103 | ``.. trac:: browser:trunk/README`` |
| | 104 | .. trac:: browser:trunk/README |
| | 105 | ``.. trac:: repos:trunk/README trunk/README`` |
| | 106 | .. trac:: repos:trunk/README trunk/README |
| | 107 | ``.. trac:: source:trunk/README README in trunk`` |
| | 108 | .. trac:: source:trunk/README README in trunk |
| | 109 | |
| | 110 | もし、 ``hoo`` がファイルであるとき、リンクのターゲットはそのコミットログになります。ファイルの中身を見るために、このようにリビジョンを明確にしなければなりません。 |
| | 111 | |
| | 112 | ``.. trac:: browser:/trunk/README#latest latest of trunk/README`` |
| | 113 | .. trac:: browser:/trunk/README#latest latest of trunk/README |
| | 114 | ``.. trac:: repos:trunk/README#42 trunk/README in rev 42`` |
| | 115 | .. trac:: repos:trunk/README#42 trunk/README in rev 42 |
| | 116 | }}} |
| | 117 | |
| | 118 | ---- |
| | 119 | See also: WikiRestructuredTextLinks, TracLinks |