Mercurial > forge
changeset 2668:67c5fe4fd3f0 octave-forge
Use alphabetic contents of package rather than categories page that might include functions from octaev itself
author | adb014 |
---|---|
date | Thu, 12 Oct 2006 20:27:30 +0000 |
parents | 20013d95d948 |
children | 0c363d6d472d |
files | www/build-www.py www/get-base-address |
diffstat | 2 files changed, 16 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/www/build-www.py Thu Oct 12 20:26:02 2006 +0000 +++ b/www/build-www.py Thu Oct 12 20:27:30 2006 +0000 @@ -142,7 +142,7 @@ fid.write(' <tr><td colspan="2"><img src="../download.png" alt="Download"/>'); fid.write('<a href="__PACKAGE__/' + desc['name'].lower() + '-' + desc['version'] + '.tar.gz?download">Download this package</a></td></tr>\n'); fid.write(' <tr><td colspan="2"><img src="../doc.png" alt="Function Reference"/>'); - fid.write('<a href="../doc/' + desc['name'].lower() + '.html">Read package function reference</a></td></tr>\n'); + fid.write('<a href="../doc/funref_' + desc['name'].lower() + '.html">Read package function reference</a></td></tr>\n'); local = local_documentation(outdir, packdir); if (local): fid.write(' <tr><td colspan="2"><img src="../doc.png" alt="Documentation"/>'); @@ -233,20 +233,20 @@ def handle_package(packdir, outdir, p): if (os.path.isdir(packdir)): - #if (not os.path.exists(packdir + "/NOINSTALL")): - if (os.path.exists(outdir)): - rm_rf(outdir); - os.mkdir(outdir); - try: - desc = create_index_html(packdir, outdir, p); - create_license_html(desc['name'], packdir, outdir); - return desc; - except Exception, e: - print(e); - rm_rf(outdir); - raise Exception("Can't create index.html"); - #else: - # raise Exception("Package marked NOINSTALL"); + if (not os.path.exists(packdir + "/NOINSTALL")): + if (os.path.exists(outdir)): + rm_rf(outdir); + os.mkdir(outdir); + try: + desc = create_index_html(packdir, outdir, p); + create_license_html(desc['name'], packdir, outdir); + return desc; + except Exception, e: + print(e); + rm_rf(outdir); + raise Exception("Can't create index.html"); + else: + raise Exception("Package marked NOINSTALL"); raise Exception('not packdir'); def main():