| Line | |
|---|
| 1 | ====== |
|---|
| 2 | recipe |
|---|
| 3 | ====== |
|---|
| 4 | |
|---|
| 5 | `recipe` provides a task to create html recipes out of |
|---|
| 6 | reST files. |
|---|
| 7 | |
|---|
| 8 | `RecipeTask` knows how to process a recipe folder, rendering each recipe |
|---|
| 9 | it founds:: |
|---|
| 10 | |
|---|
| 11 | >>> from recipe import RecipeTask |
|---|
| 12 | >>> class Conf(object): |
|---|
| 13 | ... targets = {'target1': 'tests/www'} |
|---|
| 14 | ... tutorials = {'recipes': 'tests/svn/project/tutorials'} |
|---|
| 15 | ... recipes = {'recipes': 'tests/svn/project/recipes'} |
|---|
| 16 | ... templates = {'recipe': 'tests/templates/recipe.pt', |
|---|
| 17 | ... 'recipelist': 'tests/templates/recipelist.pt'} |
|---|
| 18 | ... glossary = 'tests/svn/project/doc/glossary.txt' |
|---|
| 19 | ... |
|---|
| 20 | >>> task = RecipeTask() |
|---|
| 21 | >>> task._run(Conf()) |
|---|
| 22 | |
|---|