Changes between Version 3 and Version 4 of PdfPreviewPlugin


Ignore:
Timestamp:
Jan 3, 2021, 2:53:06 AM (3 years ago)
Author:
Rob Hills
Comment:

Improved installation description for Trac newbies

Legend:

Unmodified
Added
Removed
Modified
  • PdfPreviewPlugin

    v3 v4  
    3131General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    3232
     33You can install using pip in your Trac project's directory (and/or virtualenv) with:
     34{{{#!sh
     35pip install https://trac-hacks.org/browser/pdfpreviewplugin/1.0?format=zip
     36}}}
     37
     38After installing, enable the plugin with the following changes to your trac.ini file:
     39{{{#!ini
     40
     41[components]
     42tracpdfpreview.pdfpreview.* = enabled
     43
     44}}}
     45
     46Add `application/pdf` to your `mimeviewer.mime_map` setting.  The following example appends it to the default mime_map setting that comes with Trac:
     47
     48{{{#!ini
     49
     50[mimeviewer]
     51mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb,application/pdf
     52
     53}}}
     54
    3355== Recent Changes
    3456