Changes between Version 1 and Version 2 of ManPageRendererPlugin
- Timestamp:
- Aug 7, 2009, 5:33:50 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ManPageRendererPlugin
v1 v2 3 3 == Description == 4 4 5 A mimeviewer plugin for rendering unix (nroff) man pages to HTML so they're human readable when browsing source. 5 A plugin for rendering unix manual pages to HTML so they're human readable when browsing the repository. 6 7 Specifically it extends the IHTMLPreviewRenderer component of the mimeviewer to pass the nroff man page through groff which generates an HTML version of the page. 6 8 7 9 == Bugs/Feature Requests == … … 21 23 You can check out ManPageRendererPlugin from [http://trac-hacks.org/svn/manpagerendererplugin here] using Subversion, or [source:manpagerendererplugin browse the source] with Trac. 22 24 25 == Install == 26 27 The simplest way to install it is using easy_install: 28 {{{ 29 easy_install http://trac-hacks.org/svn/ldapplugin/0.11/ 30 }}} 31 This plugin uses groff so it needs to be installed on your machine (it usually is installed on most unixes) and if it is not in the usual place of /usr/bin/groff you can specify its location in the trac.ini file: 32 {{{ 33 groff_path = /your_path/groff 34 }}} 35 You will need to enable it in trac.ini: 36 {{{ 37 manpagerenderer.* = enabled 38 }}} 39 It will automatically render pages ending .man but if you want it to render man pages that end in .1 (or something else) then add this to [mimeviewer] section: 40 {{{ 41 mime_map = application/x-troff-man:1 42 }}} 23 43 == Example == 24 44 25 It's installedon our trac site:26 http s://frostie.cs.ucl.ac.uk/nets/mmedia/browser/rat/trunk/man/man1/rat.145 See it working on our trac site: 46 http://frostie.cs.ucl.ac.uk/nets/mmedia/browser/rat/trunk/man/man1/rat.1 27 47 28 48 == Recent Changes ==