| 1 | =========== |
|---|
| 2 | PyCommunity |
|---|
| 3 | =========== |
|---|
| 4 | |
|---|
| 5 | package |
|---|
| 6 | ======= |
|---|
| 7 | |
|---|
| 8 | package provides a `PackageTask` class that is used to generate documentation |
|---|
| 9 | for packages. It scans each package folder and uses several page templates |
|---|
| 10 | to generate html pages: |
|---|
| 11 | |
|---|
| 12 | - `packageindex`: a template for the index page |
|---|
| 13 | |
|---|
| 14 | - `packagedoc`: a template for each reST file founded in the folder |
|---|
| 15 | |
|---|
| 16 | - `packagestats`: a page that gathers stats about the package |
|---|
| 17 | |
|---|
| 18 | generator |
|---|
| 19 | ========= |
|---|
| 20 | |
|---|
| 21 | generator provides a class that execute a serie of tasks to generate the |
|---|
| 22 | website, given a configuration. A task is a virtual class that provide a |
|---|
| 23 | transformation for a given type of file. It is registered at runtime and its |
|---|
| 24 | id correspond to the section it covers. |
|---|
| 25 | |
|---|
| 26 | The generator is programmed with a sequence of keys, that will call the task |
|---|
| 27 | in order, with arguments. |
|---|
| 28 | |
|---|
| 29 | resttask |
|---|
| 30 | ======== |
|---|
| 31 | |
|---|
| 32 | Provides base class for tasks that deals with rest files. |
|---|
| 33 | |
|---|
| 34 | `TaksView` provides a generic viewer, that knows how to render rest files, |
|---|
| 35 | given a Cheetah template and a reST file:: |
|---|
| 36 | |
|---|
| 37 | The content is also scanned, to replace glossary entries. |
|---|
| 38 | |
|---|
| 39 | index |
|---|
| 40 | ===== |
|---|
| 41 | |
|---|
| 42 | index provides two classes: |
|---|
| 43 | |
|---|
| 44 | - `IndexView` is a class that generates the index, using a cheetah template. |
|---|
| 45 | - `IndexTask` is a class task that can be used in the generator. |
|---|
| 46 | |
|---|
| 47 | recipe |
|---|
| 48 | ====== |
|---|
| 49 | |
|---|
| 50 | `recipe` provides a task to create html recipes out of reST files. |
|---|
| 51 | `RecipeTask` knows how to process a recipe folder, rendering each recipe |
|---|
| 52 | it founds. |
|---|
| 53 | |
|---|
| 54 | |
|---|