Changes between Version 1 and Version 2 of WikiRestructuredText
- Timestamp:
- Jun 21, 2005, 1:13:36 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredText
v1 v2 1 = reStructuredText Support in Trac=1 = reStructuredTextのサポート = 2 2 3 Trac supports using ''reStructuredText'' (RST) as an alternative to wiki markup in any context WikiFormatting is used.3 TracはWikiFormatting が使われているあらゆるコンテキストの中でWikiマークアップの代わりとなるものとして''reStructuredText''の使用をサポートしています。 4 4 5 From the reStucturedText webpage:6 "''reStructuredText is an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser system. It is useful for in-line program documentation (such as Python docstrings), for quickly creating simple web pages, and for standalone documents. reStructuredText is designed for extensibility for specific application domains.''"5 reStructuredTextのウェブページより: 6 "''reStructuredTextは読みやすく、見たものを手にする、マークアップされたプレインテキストとそのパーサーシステムです。reStructuredTextはプログラムのインラインのドキュメント(例えば、Python docstrings)や簡単なウェブページをすばやく作ること、スタンドアロンのドキュメントを書くのにとても役に立ちます。reStructuredTextは特定のアプリケーションの分野のための拡張として設計されています。''" 7 7 8 === Requirements===9 Note that to activate RST support in Trac, the python docutils package must be installed. 10 If not already available on your operating system, you can download it at the [http://docutils.sourceforge.net/rst.html RST Website]. 8 === 必須条件 === 9 TracでRSTのサポートを有効にするためには、Pythonのdocutilsパッケージがインストールされてなければなりません。 10 あなたのオペレーティングシステムでまだ使用できない場合は、[http://docutils.sourceforge.net/rst.html RST Website]からダウンロードすることができます。 11 11 12 === More information on RST===12 === さらなるRSTに関する情報 === 13 13 14 * reStructuredText Website-- http://docutils.sourceforge.net/rst.html15 * RST Quick Reference-- http://docutils.sourceforge.net/docs/rst/quickref.html14 * reStructuredText ウェブサイト -- http://docutils.sourceforge.net/rst.html 15 * RST クイックリファレンス -- http://docutils.sourceforge.net/docs/rst/quickref.html 16 16 17 17 ---- 18 18 19 == Using RST in Trac==20 To specify that a block of text should be parsed using RST, use the ''rst'' processor. 19 == RSTをTracで使用する == 20 テキストがRSTを使用してパースされるようにするには、''rst''プロセッサを使用してください。 21 21 22 === TracLinks in reStructuredText===22 === reStructuredTextにおける TracLinks === 23 23 24 * Trac provides a custom RST reference-directive 'trac' to allow TracLinks from within RST text.24 * TracはRSTテキストの中でTracLinks を許可するための 'trac'というカスタマイズされたRSTのリファレンスディレクティブを提供しています。 25 25 26 Example:26 例: 27 27 {{{ 28 28 {{{ … … 34 34 }}} 35 35 36 For a complete example of all uses of the ''trac''-directive, please see WikiRestructuredTextLinks.36 ''trac''ディレクティブのすべての使用方法の一覧は、WikiRestructuredTextLinks を見てください。 37 37 38 38 39 * Trac allows an even easier way of creating TracLinks in RST, using the custom '':trac:'' link naming scheme.39 * TracはRSTにおいて、カスタマイズされた'':trac::''というリンクのための命名体系を使用することにより、簡単な方法でTracLinks を作ることを許可しています。 40 40 41 Example:41 例: 42 42 {{{ 43 43 {{{ … … 49 49 }}} 50 50 51 === Syntax highlighting in reStructuredText===51 === reStructuredTextにおけるシンタックスハイライト === 52 52 53 There is a directive for doing TracSyntaxColoring in ReST as well. The directive is called 54 code-block 53 同様に、RSTにおいてTracSyntaxColoring を行なうディレクティブがあります。 54 ディレクティブはcode-blockと呼ばれます。 55 55 56 Example 56 例 57 57 58 58 {{{ … … 70 70 }}} 71 71 72 Will result in the below. 72 上記の例は以下のように見えます。 73 73 74 74 {{{ … … 85 85 86 86 87 === Example===88 The example below should be mostly self-explanatory:87 === 例 === 88 以下の例はほとんど一目瞭然です: 89 89 {{{ 90 90 #!html … … 120 120 121 121 122 Results in:122 結果: 123 123 {{{ 124 124 #!rst … … 152 152 153 153 ---- 154 See also: WikiRestructuredTextLinks, WikiProcessors, WikiFormatting154 参考: WikiRestructuredTextLinks, WikiProcessors, WikiFormatting