Changes between Version 1 and Version 2 of WikiRestructuredText
- Timestamp:
- 01/02/10 17:05:00 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredText
v1 v2 9 9 Note that to activate RST support in Trac, the python docutils package must be installed. 10 10 If not already available on your operating system, you can download it at the [http://docutils.sourceforge.net/rst.html RST Website]. 11 12 Install docutils using `easy_install docutils`. Do not use the package manager of your OS (e.g. `apt-get install python-docutils`), because Trac will not find docutils then.13 11 14 12 === More information on RST === … … 24 22 === TracLinks in reStructuredText === 25 23 26 * Trac provides a custom RST directive `trac::`to allow TracLinks from within RST text.24 * Trac provides a custom RST reference-directive 'trac' to allow TracLinks from within RST text. 27 25 28 26 Example: … … 36 34 }}} 37 35 38 * Trac allows an even easier way of creating TracLinks in RST, using the custom `:trac:` role. 36 For a complete example of all uses of the ''trac''-directive, please see WikiRestructuredTextLinks. 37 38 39 * Trac allows an even easier way of creating TracLinks in RST, using the custom '':trac:'' link naming scheme. 39 40 40 41 Example: … … 48 49 }}} 49 50 50 For a complete example of all uses of the `:trac:` role, please see WikiRestructuredTextLinks.51 52 53 51 === Syntax highlighting in reStructuredText === 54 52 55 There is a directive for doing TracSyntaxColoring in R ST as well. The directive is called53 There is a directive for doing TracSyntaxColoring in ReST as well. The directive is called 56 54 code-block 57 55 … … 86 84 }}} 87 85 88 === Wiki 86 === WikiMacros in reStructuredText === 89 87 90 For doing [WikiMacros Wiki Macros] in RST you use the same directive as for syntax highlighting i.e91 code-block. To work you must use a version of trac that has [trac:ticket:801 #801]applied.88 For doing WikiMacros in ReST you use the same directive as for syntax highlightning i.e 89 code-block. To work you must use a version of trac that has #801 applied. 92 90 93 === Wiki 91 === WikiMacro Example === 94 92 95 93 {{{ … … 97 95 #!rst 98 96 99 .. code-block:: RecentChanges 97 .. code-block:: HelloWorld 98 99 Something I wanted to say 100 100 101 Trac,3102 101 103 102 }}} 104 103 }}} 105 104 106 Will result in the below :105 Will result in the below. 107 106 108 [[RecentChanges(Trac,3)]]107 [[HelloWorld(Something I wanted to say)]] 109 108 110 Or a more concise Wiki Macro like syntax is also available:111 109 112 {{{ 113 {{{ 114 #!rst 115 116 :code-block:`RecentChanges:Trac,3` 117 }}} 118 }}} 119 120 === Bigger RST Example === 110 === Bigger ReST Example === 121 111 The example below should be mostly self-explanatory: 122 112 {{{