IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4724 for trunk/Ohana


Ignore:
Timestamp:
Aug 7, 2005, 3:02:46 PM (21 years ago)
Author:
eugene
Message:

cleaning up web pages

Location:
trunk/Ohana/doc/www
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/doc/www

    • Property svn:ignore set to
      Configure
  • trunk/Ohana/doc/www/mkhtml

    r3902 r4724  
    110110                $index =~ s|class=dir|class=dsl|;
    111111                $index =~ s|class=dl|class=sl|;
     112                $index =~ s|$file>\s+-\s+|$file> + |;
    112113            }
    113114            # interpolate ROOT
  • trunk/Ohana/doc/www/mkidx

    r3902 r4724  
    2727    my(@updex)    = @_;
    2828
    29     my($i);
    30     my($line);
     29    my($i, $j);
     30    my($line, $value, $dir);
    3131    my(@list);
    3232    my($file, $root, $link, $ext);
    33     my(@dirs)  = ();
    34     my(@docs)  = ();
    35     my(@txts)  = ();
    36     my(@index) = ();
     33    my(@seq)    = ();
     34    my(@dirs)   = ();
     35    my(@mydirs) = ();
     36    my(@docs)   = ();
     37    my(@txts)   = ();
     38    my(@index)  = ();
     39    my(@mydex)  = ();
     40    my($Nmydex);
     41    my(@seqline);
    3742
    3843    # if this directory contains a template file, reset entry and level
     
    6368        if (-e "$file/noindex.idx") { next; }
    6469
    65         push @dirs, $file;
     70        push @mydirs, $file;
    6671
    6772        $line = sprintf "<tr><td class=dir%d> <a class=dl %-30s -%20s </a></td></tr>", $level, "href=$link>", $root;
    68         push @index, $line;
     73        push @mydex, $line;
     74        push @seq, $root;
    6975    }
    7076
     
    8490        if ($root eq "index") { next; }
    8591        if ($root eq "template") { next; }
     92        if ($root eq "sequence") { next; }
    8693
    8794        # print STDERR "ext: $ext, root: $root\n";
    8895
    8996        push @docs, $file;
    90 
     97        push @mydirs, "0";
     98       
    9199        # simple case: no extra information:
    92         $line = sprintf "<tr><td class=doc%d> <a class=dl %-30s  %20s </a></td></tr>", $level, "href=$link>", $root;
     100        $line = sprintf "<tr><td class=doc%d> <a class=dl %-30s *%20s </a></td></tr>", $level, "href=$link>", $root;
     101        push @mydex, $line;
     102        push @seq, &basename ($file);
     103    }
     104
     105    # look for directory sequencing information
     106    if (-f "$path/sequence.idx") {
     107        open (FILE, "$path/sequence.idx");
     108        @seqline = <FILE>;
     109        close (FILE);
     110      OUT:
     111        for ($i = 0; $i < @seqline; $i++) {
     112            $Nmydex = @mydex;
     113            chop $seqline[$i];
     114          IN:
     115            for ($j = 0; $j < $Nmydex; $j++) {
     116                $line  = shift @mydex;
     117                $value = shift @seq;
     118                $dir   = shift @mydirs;
     119                if ($seqline[$i] eq $value) {
     120                    push @index, $line;
     121                    push @dirs, $dir;
     122                    # print "ADD SEQ: $dir, $line\n";
     123                    next OUT;
     124                } else {
     125                    push @mydex, $line;
     126                    push @mydirs, $dir;
     127                    push @seq, $value;
     128                }
     129            }
     130        }       
     131    }
     132    # add trailing portion of updex here
     133    foreach $line (@mydex) {
     134        $dir = shift @mydirs;
     135        # print "ADD VAL: $dir, $line\n";
     136        push @dirs, $dir;
    93137        push @index, $line;
    94138    }
     
    100144
    101145    for ($i = 0; $i < @dirs; $i++) {
     146        if ($dirs[$i] eq 0) { next; }
    102147        &mksubidx ($dirs[$i], $level + 1, $i + $entry + 1, $template, @index);
    103148    }
Note: See TracChangeset for help on using the changeset viewer.