Changeset 78:b5dabe9762d1 for pycommunity/pycommunity/doc
- Timestamp:
- 04/12/07 17:38:04 (15 months ago)
- Location:
- pycommunity/pycommunity/doc
- Files:
-
- 7 modified
-
configuration.txt (modified) (3 diffs)
-
index.txt (modified) (2 diffs)
-
package.txt (modified) (1 diff)
-
recipe.txt (modified) (1 diff)
-
resttask.txt (modified) (1 diff)
-
sitebuilder.txt (modified) (1 diff)
-
tutorial.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pycommunity/pycommunity/doc/configuration.txt
r68 r78 7 7 8 8 >>> from configuration import Configuration 9 >>> config = Configuration(' pycommunity.conf')9 >>> config = Configuration('tests/pycommunity.conf') 10 10 11 11 packages, recipes, and tutorials folders can be read with … … 19 19 [('tuts', 'tests/svn/project/tutorials')] 20 20 >>> config.glossary 21 ' tests/svn/project/doc/glossary.txt'21 '/etc/pycommunity/glossary.txt' 22 22 >>> packages = config.packages.items() 23 23 >>> packages.sort() … … 29 29 >>> templates.sort() 30 30 >>> templates 31 [('css', 'te mplates/pycommunity.css'),32 ('glossary', 'te mplates/glossary.pt'),33 ('index', 'te mplates/index.pt'),34 ('js', 'te mplates/pycommunity.js'),35 ('packagedoc', 'te mplates/packagedoc.pt'),36 ('packageindex', 'te mplates/packageindex.pt'),37 ('packagesindex', 'te mplates/packagesindex.pt'),38 ('packagestats', 'te mplates/packagestats.pt'),39 ('recipe', 'te mplates/recipe.pt'),40 ('recipelist', 'te mplates/recipelist.pt'),41 ('tutorial', 'te mplates/tutorial.pt'),42 ('tutoriallist', 'te mplates/tutoriallist.pt')]31 [('css', 'tests/templates/pycommunity.css'), 32 ('glossary', 'tests/templates/glossary.pt'), 33 ('index', 'tests/templates/index.pt'), 34 ('js', 'tests/templates/pycommunity.js'), 35 ('packagedoc', 'tests/templates/packagedoc.pt'), 36 ('packageindex', 'tests/templates/packageindex.pt'), 37 ('packagesindex', 'tests/templates/packagesindex.pt'), 38 ('packagestats', 'tests/templates/packagestats.pt'), 39 ('recipe', 'tests/templates/recipe.pt'), 40 ('recipelist', 'tests/templates/recipelist.pt'), 41 ('tutorial', 'tests/templates/tutorial.pt'), 42 ('tutoriallist', 'tests/templates/tutoriallist.pt')] 43 43 >>> config.media 44 'te mplates/media'44 'tests/templates/media' 45 45 >>> 'projectname' in config.options 46 46 True -
pycommunity/pycommunity/doc/index.txt
r68 r78 9 9 >>> options = {'projectname': 'PyCommunity', 10 10 ... 'index': 'tests/svn/project/doc/README.txt'} 11 >>> view = IndexView('te mplates/index.pt', options)11 >>> view = IndexView('tests/templates/index.pt', options) 12 12 >>> print view() 13 13 <html> … … 22 22 >>> class Conf(object): 23 23 ... targets = {'target1': 'tests/www'} 24 ... templates = {'index': 'te mplates/index.pt',25 ... 'css': 'te mplates/pycommunity.css',26 ... 'js': 'te mplates/pycommunity.js'}27 ... media = 'te mplates/media'24 ... templates = {'index': 'tests/templates/index.pt', 25 ... 'css': 'tests/templates/pycommunity.css', 26 ... 'js': 'tests/templates/pycommunity.js'} 27 ... media = 'tests/templates/media' 28 28 ... options = {'projectname': 'PyCommunity', 29 29 ... 'index': 'tests/svn/project/doc/README.txt'} -
pycommunity/pycommunity/doc/package.txt
r68 r78 19 19 ... targets = {'target1': 'tests/www'} 20 20 ... glossary = 'tests/svn/project/doc/glossary.txt' 21 ... tutorials = {'recipes': 'tests/svn/project/tutorials'} 22 ... recipes = {'recipes': 'tests/svn/project/recipes'} 21 23 ... packages = {'package1': 'tests/svn/project/src/package1', 22 24 ... 'package2': 'tests/svn/project/src/package2' } 23 25 ... options = {'projectname': 'PyCommunity', 24 26 ... 'packages': 'tests/svn/project/doc/packages.txt'} 25 ... templates = {'packageindex': 'te mplates/packageindex.pt',26 ... 'packagesindex': 'te mplates/packagesindex.pt',27 ... 'packagestats': 'te mplates/packagestats.pt',28 ... 'packagedoc': 'te mplates/packagedoc.pt'}27 ... templates = {'packageindex': 'tests/templates/packageindex.pt', 28 ... 'packagesindex': 'tests/templates/packagesindex.pt', 29 ... 'packagestats': 'tests/templates/packagestats.pt', 30 ... 'packagedoc': 'tests/templates/packagedoc.pt'} 29 31 ... 30 32 -
pycommunity/pycommunity/doc/recipe.txt
r68 r78 12 12 >>> class Conf(object): 13 13 ... targets = {'target1': 'tests/www'} 14 ... recipes = {'recipes': 'tests/svn/project/recipes'} 15 ... templates = {'recipe': 'templates/recipe.pt', 16 ... 'recipelist': 'templates/recipelist.pt'} 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'} 17 18 ... glossary = 'tests/svn/project/doc/glossary.txt' 18 19 ... -
pycommunity/pycommunity/doc/resttask.txt
r68 r78 9 9 10 10 >>> from resttask import TaskView 11 >>> view = TaskView('te mplates/recipe.pt',11 >>> view = TaskView('tests/templates/recipe.pt', 12 12 ... 'tests/svn/project/recipes/glossary_recipe.txt', 13 ... 'tests/svn/project/doc/glossary.txt') 13 ... 'tests/svn/project/doc/glossary.txt', 14 ... ['tests/svn/project/doc/tutorials'], []) 14 15 ... 15 16 >>> title, content = view() -
pycommunity/pycommunity/doc/sitebuilder.txt
r68 r78 7 7 8 8 >>> from sitebuilder import buildSite 9 >>> buildSite( )9 >>> buildSite('tests/pycommunity.conf') 10 10 11 11 Checking the structure:: -
pycommunity/pycommunity/doc/tutorial.txt
r68 r78 12 12 >>> class Conf(object): 13 13 ... targets = {'tutorial1': 'tests/www'} 14 ... recipes = {} 14 15 ... tutorials = {'tutorials': 'tests/svn/project/tutorials'} 15 ... templates = {'tutorial': 'te mplates/tutorial.pt',16 ... 'tutoriallist': 'te mplates/tutoriallist.pt'}16 ... templates = {'tutorial': 'tests/templates/tutorial.pt', 17 ... 'tutoriallist': 'tests/templates/tutoriallist.pt'} 17 18 ... glossary = 'tests/svn/project/doc/glossary.txt' 18 19 ...
