diff -r 59bb7c4d6172 -r 0f5e3a7fb6af buildframework/helium/tools/common/docs.ant.xml --- a/buildframework/helium/tools/common/docs.ant.xml Fri Feb 05 11:59:41 2010 +0000 +++ b/buildframework/helium/tools/common/docs.ant.xml Thu Mar 04 15:10:37 2010 +0200 @@ -20,157 +20,43 @@ ============================================================================ --> + Documentation generation targets. - + + + + + - + + - - - - - doc: xml(${helium.doc.dir}/src/helium_overview.xml) - - - - - - - - - - - - - - - - - - - - - - - - doc: xml(${helium.build.dir}/doc/ivy/tool-dependencies-ido.xml) - - - - - - - - - - - - - - - - - - - - doc: xml(${database.file}) - - - - - - - - - - - - Python modules path: ${epydoc.python.modules.path} - - - - - - - - - - - - - - - - - - - - - API Documentation]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -179,224 +65,52 @@ This includes creating a cmap file that is included in the HTML document, so the boxes in the image are linked to their targets. --> - - + doc: xml(${database.file}) - + Processing dot file: @{dot.file} - + - + - - + + - - - + + + - - - ant: antProperties() doc: xml(${database.file}) - data: xml(${helium.build.dir}/helium_data_model.xml_parsed) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ant: antProperties() - - - - - - - project: antProject() - - - - - ant: antProperties() - - - - - ant: antProperties() - - - - - ant: antProperties() - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -405,7 +119,7 @@ import os import codecs #import traceback -for root, dirs, files in os.walk(r'${helium.build.dir}/doc/api', topdown=False): +for root, dirs, files in os.walk(r'${docs.build.dir}/api', topdown=False): for fname in files: if '.html' in fname: filename = os.path.abspath(os.path.join(root, fname)) @@ -428,412 +142,157 @@ os.remove(rstfilename) - - + + - - + + - + - - - - - - - + + - + - - + + + - - - - - - + + - - - - - -import urllib -import helium.documentation - -old_db_file = urllib.urlopen(r'${last.major.release.database.url}') -writer = helium.documentation.APIDeltaWriter(old_db_file, r'${database.file}') -writer.write(r'${helium.build.dir}/doc/api_changes.xml') - - - - doc: xml(${helium.build.dir}/doc/api_changes.xml) - old_release: ${last.major.helium.version} - new_release: ${helium.version} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + Building docs into ${docs.build.dir}. + + + + + + + + + + + + - - - - - - - - - - - - - - Building doc: @{document} - - - - - - - - - - - + + + + + + + + + + + + + + + + ant: antProperties() + project: antProject() + + + + - - - - - - + + + - - - - - - - - - + + - - - - - - - Building doc: @{document} - - - - - - - - - - + Building dot file: @{dot.file} + + + - - - - - -from __future__ import with_statement -import re -import os -import string -import amara -import codecs -import ant -import docs + + + + + + + + + + + + + -setpath = r'${helium.dir}'+'/tools' - -print "Searching under "+setpath - -dbPath = r'${database.file}' -dbPath = 'file:///'+ dbPath.replace('\\','/') -dbPrj = amara.parse(dbPath) - -docs.find_python_dependencies(setpath, dbPath, dbPrj) - -file_object = codecs.open(r'${database.file}', 'w', "utf_8") -file_object.write(dbPrj.xml(indent=u"yes")) -file_object.close() - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -import os -import dependancygraph - -dependancygraph.createGraph(r'${ivy.xml.file}', r'${dependency.grph}', r'${python.dir}', r'${python.internal.dir}', r'${subcon}') - - - - - - - - - - - - - -import os -import dependancygraph - -dependancygraph.externalDependancies(r'${database.file}.parsed', r'${dependency.external.grph}') - - - - - - - - - - - - - - - - - - - - - - - - - - - - -import os -import dependancygraph - -dependancygraph.findLogFiles(r'${database.file}.parsed', r'${dependency.external.grph}') - - - - - - - - - - - - - - - ant: antProperties() - - - - - - Processing dot file: @{dot.file} - - - - - - - - - - - - + +