Mercurial > hg > soundsoftware-site
changeset 401:a0f6e994657f feature_113
Fix index file name; minor text changes; hack in link to repo (currently hard-coded with project name!)
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Mon, 11 Apr 2011 20:08:05 +0100 |
parents | 4ad6499d7998 |
children | 675de8e6becf |
files | extra/soundsoftware/matlab-docs.conf extra/soundsoftware/matlab-docs.pl |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/soundsoftware/matlab-docs.conf Mon Apr 11 18:17:06 2011 +0100 +++ b/extra/soundsoftware/matlab-docs.conf Mon Apr 11 20:08:05 2011 +0100 @@ -135,7 +135,7 @@ # if no, all files are saved in the same directory, often # easier for outside linking to files #------------------------------------------------------------------------ -set producetree = no +set producetree = yes #------------------------------------------------------------------------ # codebodyindex/files: HTML-code for adding to BODY tag
--- a/extra/soundsoftware/matlab-docs.pl Mon Apr 11 18:17:06 2011 +0100 +++ b/extra/soundsoftware/matlab-docs.pl Mon Apr 11 20:08:05 2011 +0100 @@ -801,8 +801,9 @@ else { $extradirfilename = $dirnamesingle{$LocalActDir}; } $indexfile = $var{'dirhtml'}.$dirnamerelpath{$LocalActDir}.$indexfilename.$var{'filenameextensionindex'}.$extradirfilename.$var{'exthtml'}; - if ($LocalShortLong eq 'short' and $var{'frames'} ne 'yes') { - # With no frames, this must go in the top-level index file instead + if ($LocalShortLong eq 'short' and $extradirfilename eq '' and $var{'frames'} ne 'yes') { + # With no frames and no subdir path, this must go in the + # top-level index file instead $indexfile = $var{'dirhtml'}.$var{'filenametopframe'}.$var{'exthtml'}; } @@ -878,7 +879,7 @@ } elsif ($LocalShortLong eq 'long') { # begin create long index print IFILE "<table border=\"5\" width=\"100%\" cellpadding=\"5\">\n"; - print IFILE "<tr><th>Name</th><th>Description</th></tr>\n"; + print IFILE "<tr><th>Name</th><th>Synopsis</th></tr>\n"; for('a'..'z') { # print " $_: @{$_}\n"; @@ -1217,6 +1218,11 @@ print HFILE "<title>$var{'texttitlefiles'} $mfilename{$name}</title>\n</head>\n"; print HFILE "<body $var{'codebodyfiles'}>\n"; print HFILE "<h1 $var{'codeheader'}>$var{'textheaderfiles'} $mfilename{$name}</h1>\n"; + +# http://test.soundsoftware.ac.uk/cannam/projects/smallbox/repository/annotate/DL/RLS-DLA/SolveFISTA.m + + print HFILE "<a href=\"" . $hfileindexpath{$name} . "../../projects/smallbox/repository/annotate/" . $mfiledir{$name} . $mfilename{$name} . ".m\">View in repository</a>\n"; + print HFILE "$var{'codehr'}\n"; # include links to short/long - local/global index and C|contents.m