Changeset 267
- Timestamp:
- 02/14/06 11:38:53
- Files:
-
- qPloneEpydoc/trunk/HISTORY.txt (modified) (1 diff)
- qPloneEpydoc/trunk/PloneEpydoc.py (modified) (6 diffs)
- qPloneEpydoc/trunk/epydoc_patch.py (modified) (1 diff)
- qPloneEpydoc/trunk/version.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneEpydoc/trunk/HISTORY.txt
r266 r267 1 0.1.3 2006-02-14 2 ================ 3 4 - documentation added 5 1 6 0.1.2 2006-02-10 2 7 ================ qPloneEpydoc/trunk/PloneEpydoc.py
r266 r267 4 4 # Copyright: quintagroup.com 5 5 6 """ 7 This tool lets you generate API documentation of any product in Products directory. 8 It use epydoc for generating API documentation based on docstrings. 9 This module defines the following classes: 10 11 - `PloneEpydoc`, this is the class that carries responsibility 12 for generating product documentation. 13 14 Methods: 15 16 - `PloneEpydoc.getProductModules`: return list of all documented modules in product package 17 - `PloneEpydoc.createDocumentationDirectoryViews`: create file system directory views for generated documentation 18 - `PloneEpydoc.generate`: generate documentation for product 19 - `PloneEpydoc.write_object_type`: write pairs 'file':'type' for all generated files in directory contained in 'path' 20 - `PloneEpydoc.write_content_file_types`: write file type for all files in subdirectories 21 """ 6 22 from Products.CMFCore.DirectoryView import DirectoryView, registerDirectory, createDirectoryView 7 23 from Products.Archetypes.public import * … … 28 44 29 45 def getProductModules(self, path): 30 """""" 46 """ 47 return list of all documented modules in product package 48 Parameters: 49 50 - path: this is absolute path to product 51 """ 31 52 modules = [] 32 53 for root, dirs, files in walk(path): … … 42 63 43 64 def createDocumentationDirectoryViews(self, product): 44 """""" 65 """ 66 create file system directory views for generated documentation 67 Parameters: 68 69 - product: product that is documented 70 """ 45 71 try: 46 72 registerDirectory(DOCUMENTATION_DIR, GLOBALS) … … 54 80 55 81 def generate(self, product, **properties): 56 """""" 82 """ 83 generate documentation for product 84 Parameters: 85 86 - product: product that is documented 87 - properties: parameters for documentation (docformat, css ....) 88 """ 57 89 sys.argv = [] 58 90 modules = [] … … 72 104 73 105 def write_object_type(self, path, obj_name, obj_type): 74 """""" 106 """ 107 write pairs 'file':'type' for all generated files in directory contained in 'path' 108 Parameters: 109 110 - path: path to product directory 111 - obj_name: file name 112 - obj_type: type of file 113 """ 75 114 file = open(path+'/.objects', 'a') 76 115 data = obj_name+' : '+obj_type+'\n' … … 78 117 79 118 def write_content_file_types(self, path): 80 """""" 119 """ 120 write file type for all files in subdirectories 121 Parameters: 122 123 - path: path to product directory 124 """ 81 125 for obj in listdir(path): 82 126 if isdir(path+'/'+obj): qPloneEpydoc/trunk/epydoc_patch.py
r266 r267 4 4 # Copyright: quintagroup.com 5 5 6 """ 7 This module contain fixed functions from epydoc classes that have to replace original. 8 """ 6 9 from epydoc.uid import UID, Link, make_uid, findUID 7 10 from epydoc.objdoc import ObjDoc, _find_base_order, _lookup_class_field, Var qPloneEpydoc/trunk/version.txt
r266 r267 1 0.1. 21 0.1.3
