wiki:WikiRestructuredTextLinks

Version 4 (modified by trac, 18 years ago) (diff)

--

reStructuredText における TracLinks

このドキュメントは ..trac:: ディレクティブをテストするためのものです。このページは以下のように書かれます。

{{{
#!rst 

Examples
...
...

}}}

これは、 WikiRestructuredTextTracLinks を提供する trac ディレクティブの使用方法の一覧です。

trac の役割

シンタックスは `link`:trac: もしくは :trac:`link` です。そして、テキストのどこにでも置くことができます。 'link' は以下に示す .. trac:: ディレクティブの説明と同じフォーマットです。

In the middle of my text `WikiFormatting`:trac: see!!!!
In the middle of my text WikiFormatting see!!!!

もしくは

In the middle of my text :trac:`WikiFormatting` see!!!!
In the middle of my text WikiFormatting see!!!!

wiki

.. trac:: WikiFormatting
WikiFormatting
.. trac:: wiki:WikiFormatting
wiki:WikiFormatting
.. trac:: wiki:WikiFormatting WikiFormatting
WikiFormatting
.. trac:: wiki:WikiFormatting LinkText
LinkText

チケット

.. trac:: #1
#1
.. trac:: #1 ticket one
ticket one
.. trac:: ticket:1
ticket:1
.. trac:: ticket:1 ticket one
ticket one

レポート

.. trac:: {1}
{1}
.. trac:: {1} report one
report one
.. trac:: report:1
report:1
.. trac:: report:1 report one
report one

チェンジセット

.. trac:: [42]
[42]
.. trac:: [42] changeset 42
changeset 42
.. trac:: changeset:42
changeset:42
.. trac:: changeset:42 changeset 42
changeset 42
.. trac:: foo
foo

ファイル

.. trac:: browser:/trunk/trac
browser:/trunk/trac

先頭の / は省略できます...

.. trac:: repos:trunk/trac trunk/trac
trunk/trac
.. trac:: source:trunk/trac Trac source code
Trac source code
.. trac:: browser:trunk/README
browser:trunk/README
.. trac:: repos:trunk/README trunk/README
trunk/README
.. trac:: source:trunk/README README in trunk
README in trunk

もし、 hoo がファイルであるとき、リンクのターゲットはそのコミットログになります。ファイルの中身を見るために、このようにリビジョンを明確にしなければなりません。

.. trac:: browser:/trunk/README#latest latest of trunk/README
latest of trunk/README
.. trac:: repos:trunk/README#42 trunk/README in rev 42
trunk/README in rev 42

See also: WikiRestructuredTextLinks, TracLinks