[Epydoc-commits] SF.net SVN: epydoc: [1290] trunk/epydoc/src/epydoc/docwriter/html.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-22 06:36:57
|
Revision: 1290 Author: edloper Date: 2006-08-21 23:36:54 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1290&view=rev Log Message: ----------- - Added index for @change (Change Log). - Fixed bug in metadata indices where variables were listed with their short names, instead of their full canonical names. Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/html.py Modified: trunk/epydoc/src/epydoc/docwriter/html.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/html.py 2006-08-22 06:28:21 UTC (rev 1289) +++ trunk/epydoc/src/epydoc/docwriter/html.py 2006-08-22 06:36:54 UTC (rev 1290) @@ -412,7 +412,7 @@ for doc in self.module_list: if isinstance(doc, ModuleDoc) and is_src_filename(doc.filename): self.modules_with_sourcecode.add(doc) - self._num_files = len(self.class_list) + 2*len(self.module_list) + 13 + self._num_files = len(self.class_list) + 2*len(self.module_list) + 14 if self._incl_sourcecode: self._num_files += len(self.modules_with_sourcecode) @@ -514,7 +514,8 @@ indices = {'ident': self.build_identifier_index(), 'term': self.build_term_index(), 'bug': self.build_metadata_index('bug'), - 'todo': self.build_metadata_index('todo')} + 'todo': self.build_metadata_index('todo'), + 'change': self.build_metadata_index('change')} self._write(self.write_link_index, directory, 'identifier-index.html', indices, 'Identifier Index', 'identifier-index.html', 'ident') @@ -534,6 +535,11 @@ 'todo-index.html', indices, 'todo', 'To Do List') else: self._files_written += 1 # (skipped) + if indices['change']: + self._write(self.write_metadata_index, directory, + 'change-index.html', indices, 'change', 'Change Log') + else: + self._files_written += 1 # (skipped) # Write the trees file (package & class hierarchies) if self.module_list: @@ -967,7 +973,7 @@ out('<div>\n') out('<table width="100%" class="metadata-index" ' 'bgcolor="#e0e0e0"><tr><td class="metadata-index">') - out('<b>In %s</b>' % self.href(doc)) + out('<b>In %s</b>' % self.href(doc, label=doc.canonical_name)) out(' <ul class="nomargin">\n') for descr in descrs: out(' <li>%s</li>\n' % @@ -991,7 +997,8 @@ self.write_navbar(out, 'indices') self.write_breadcrumbs(out, 'indices', url) - if indices['term'] or indices['bug'] or indices['todo']: + if (indices['term'] or indices['bug'] or + indices['todo'] or indices['change']): out('<center><b>[\n') out(' <a href="identifier-index.html">Identifier Index</a>\n') if indices['term']: @@ -1000,6 +1007,8 @@ out('| <a href="bug-index.html">Bug List</a>\n') if indices['todo']: out('| <a href="todo-index.html">To Do List</a>\n') + if indices['change']: + out('| <a href="change-index.html">Change Log</a>\n') out(']</b></center><br />\n') def write_index_section(self, out, items, add_blankline=False): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |