Changes between Version 5 and Version 6 of TracAsciidoctorPlugin
- Timestamp:
- Mar 12, 2015, 4:42:09 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracAsciidoctorPlugin
v5 v6 7 7 A plugin for rendering asciidoc source files to HTML when browsing the repository. 8 8 9 To use install [http://asciidoctor.org/ Asciidoctor] and enable the plugin as usual.9 To use this plugin install [http://asciidoctor.org/ Asciidoctor] and enable the plugin as usual. 10 10 11 11 Note that the plugin only renders files using the browser, I don't plan to add support for the wiki unless someone asks for it. … … 18 18 If you have any issues, create a 19 19 [http://trac-hacks.org/newticket?component=TracAsciidoctorPlugin new ticket]. 20 21 [[TicketQuery(component=TracAsciidoctorPlugin&group=type,format=progress)]] 20 22 21 23 == Download … … 31 33 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 32 34 33 The simplest way to install it is using easy_install:35 The simplest way to install it is using `easy_install`: 34 36 {{{ 37 #!sh 35 38 easy_install http://trac-hacks.org/svn/tracasciidoctorplugin/1.0/ 36 39 }}} 37 This plugin uses asciidoctor so it needs to be installed on your machine and if it is not in the usual place of /usr/bin/asciidoctor you can specify its location in the trac.ini file: 40 41 This plugin uses asciidoctor so it needs to be installed on your machine. If it is not in the usual place of `/usr/bin/asciidoctor`, you can specify its location in the `trac.ini` file: 38 42 {{{ 43 #!ini 39 44 asciidoctor_path = /your_path/asciidoctor 40 45 }}} 41 You will need to enable it in trac.ini: 46 47 You will need to enable it in `trac.ini` under the `[components]` subheading: 42 48 {{{ 49 #!ini 43 50 tracasciidoctor.* = enabled 44 51 }}} 45 52 46 47 53 It will render pages with `svn:mime-type` property set to `text/asciidoc` or `text/x-asciidoc`. 48 49 54 50 55 If you want to render pages without setting the `mime-type` a good option is to add extensions to the `[mimeviewer]` section: