Changes between Version 2 and Version 3 of StaticDocsPlugin


Ignore:
Timestamp:
Jul 20, 2015, 3:01:26 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged as external and with license

Legend:

Unmodified
Added
Removed
Modified
  • StaticDocsPlugin

    v2 v3  
    1 = !StaticDocs Plugin =
     1= Add static pages to your Trac pages
    22
    3 == Description ==
     3== Description
    44
    5 The staticdocs-plugin allows one to serve one more more directories of static web documents through trac.
    6 The motivation for writing this was to be able to control access to static files (e.g. project documentation)
    7 using trac’s authentication and authorization system.
     5This plugin allows you to serve one more more directories of static web documents through Trac.
     6The motivation for writing this was to be able to control access to static files, eg project documentation, using Trac's authentication and authorisation system.
    87
    9 == Configuration ==
    10 
    11 Somewhere in your trac configs put a section like:
    12 
    13 {{{
    14 [staticdocs]
    15 
    16 # (Optional) Set the required permission for viewing static docs
    17 # The default is WIKI_VIEW
    18 permission         = WIKI_VIEW
    19 
    20 # Set up some aliases (you need at least one alias for this plugin
    21 # to be worthwhile.)
    22 alias./docs/       = /path/to/docs/
    23 alias./docs/other/ = /path/to/other/docs/
    24 
    25 # (Optional) Override the required permission for a specific alias
    26 permission./docs/other/  = TICKET_VIEW
    27 }}}
    28 
    29 Also, you will want to enable the plugin. Probably like this:
    30 
    31 {{{
    32 [components]
    33 
    34 staticdocsplugin.* = enabled
    35 }}}
    36 
    37 Now if you visit, e.g., `http://example.com/yourtrac/docs/file.html`, you will get served the file `/path/to/docs/file.html`.
    38 
    39 == Downloads ==
    40 
    41 The package can be installed from [http://pypi.python.org/pypi/staticdocs-plugin PyPI] using, e.g.,
    42 [http://www.pip-installer.org/en/latest/index.html pip]:
    43 
    44 {{{
    45 pip install staticdocs-plugin
    46 }}}
    47 
    48 == Source, Downloads Bugs ==
     8== Source, Bugs
    499
    5010The source in on [https://github.com/dairiki/staticdocs-plugin github].
     
    5313The code is released under the [http://www.opensource.org/licenses/bsd-license.php BSD license].
    5414
    55 == Author ==
     15== Downloads
     16
     17The package can be installed from [pypi:staticdocs-plugin PyPI] using, eg
     18[http://www.pip-installer.org/en/latest/index.html pip]:
     19
     20{{{#!sh
     21pip install staticdocs-plugin
     22}}}
     23
     24== Configuration
     25
     26In your `trac.ini` file put a section like:
     27
     28{{{#!ini
     29[staticdocs]
     30
     31# (Optional) Set the required permission for viewing static docs
     32# The default is WIKI_VIEW
     33permission = WIKI_VIEW
     34
     35# Set up some aliases: you need at least one alias for this plugin to be worthwhile
     36alias./docs/ = /path/to/docs/
     37alias./docs/other/ = /path/to/other/docs/
     38
     39# (Optional) Override the required permission for a specific alias
     40permission./docs/other/ = TICKET_VIEW
     41}}}
     42
     43Also, enable the plugin by adding the following to your `trac.ini` file:
     44
     45{{{#!ini
     46[components]
     47staticdocsplugin.* = enabled
     48}}}
     49
     50Now if you visit, e.g., `http://example.com/yourtrac/docs/file.html`, you will get served the file `/path/to/docs/file.html`.
     51
     52== Author
    5653
    5754[mailto:dairiki@dairiki.org Jeff Dairiki]