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 |
55 | | == Author == |
| 15 | == Downloads |
| 16 | |
| 17 | The 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 |
| 21 | pip install staticdocs-plugin |
| 22 | }}} |
| 23 | |
| 24 | == Configuration |
| 25 | |
| 26 | In 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 |
| 33 | permission = WIKI_VIEW |
| 34 | |
| 35 | # Set up some aliases: you need at least one alias for this plugin to be worthwhile |
| 36 | alias./docs/ = /path/to/docs/ |
| 37 | alias./docs/other/ = /path/to/other/docs/ |
| 38 | |
| 39 | # (Optional) Override the required permission for a specific alias |
| 40 | permission./docs/other/ = TICKET_VIEW |
| 41 | }}} |
| 42 | |
| 43 | Also, enable the plugin by adding the following to your `trac.ini` file: |
| 44 | |
| 45 | {{{#!ini |
| 46 | [components] |
| 47 | staticdocsplugin.* = enabled |
| 48 | }}} |
| 49 | |
| 50 | Now 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 |