Changeset 1611

Show
Ignore:
Timestamp:
02/02/05 17:21:43 (4 years ago)
Author:
whmoseley
Message:

A few more updates to the site. Screwed with broken Pod::POM code for a over an hour!!!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swish_website/Plugin/My/POD.pm

    r1601 r1611  
    208208sub view_seq_link_transform_path { 
    209209    my ( $self, $link ) = @_; 
    210     return lc($link) . '.html'; 
     210    return $self->escape_uri( lc $link ) . '.html'; 
    211211} 
    212212 
  • trunk/swish_website/bin/build

    r1602 r1611  
    125125    -develsrc=<src> = Directory of development. 
    126126 
     127    -archive=<file> = Path to list archive index. 
     128 
    127129    -- options you don't need -- 
    128130    -copy           = add regex to files that are just copies 
     
    154156        abslinks 
    155157        develsrc=s 
     158        archive=s 
    156159); 
    157160 
     
    284287        warn "Swish-e devel source directory set to [$develsrc]\n" if $config->verbose; 
    285288        $config->{develsrc} = $develsrc; 
     289    } 
     290 
     291 
     292    # Test the list archive directory 
     293    if ( $config->archive ) { 
     294        my $index = File::Spec->rel2abs( $config->archive ); 
     295        die "List archive index [$index] not a normal file\n" unless -f $index; 
     296        $config->{archive} = $index; 
    286297    } 
    287298 
  • trunk/swish_website/lib/config/site

    r1587 r1611  
    3434        current_version     = this.swish_current_version || '2.4.3' 
    3535        index_file          = 'index.swish-e' 
     36        archive_index       = self.config.archive 
    3637        version             = this.swish_version 
    3738    }; 
    38  
    3939 
    4040 
  • trunk/swish_website/lib/page/search.html

    r1602 r1611  
    8484 
    8585[% BLOCK show_result %] 
     86    [% 
     87        SET doc_path    = item.Property('swishdocpath'); 
     88        SET is_list     = doc_path.match('/archive/'); 
     89        SET is_devel    = doc_path.match('/devel_docs/'); 
     90        SET is_docs     = doc_path.match('/docs/'); 
     91    %] 
    8692 
    8793    <div class="search-title"> 
    88         [% IF item.Property('swishdocpath').match('archive') %] 
    89             List Archive: 
     94 
     95        [% IF is_list %] 
     96            <small>[List Archive]</small> 
     97        [% ELSIF is_devel %] 
     98            <small>[Development Docs]</small> 
     99        [% ELSIF is_docs %] 
     100            <small>[Docs]</small> 
    90101        [% END %] 
     102 
    91103        <a href="[% item.Property('swishdocpath') %]"> 
    92104            [%  item.Property('swishtitle') || 'missing title' | highlight('swishtitle', item ) %]</a> 
     
    101113    <div class="search-metadata"> 
    102114        Path: <a href="[% item.Property('swishdocpath') %]"> 
    103             [% item.Property('swishdocpath') | highlight('swishdocpath', item ) %]</a> 
    104             - [% item.Property('swishdocsize') %] bytes<br> 
     115            [% item.Property('swishdocpath') | highlight('swishdocpath', item ) %]</a><br> 
     116        Size: [% item.Property('swishdocsize') %] bytes<br> 
    105117        Date: [% result_date.format( item.Property('swishlastmodified')) %]<br> 
    106118 
    107         [% IF  item.Property('swishdocpath').match('devel_docs') %] 
     119        [% IF is_list %] 
     120            Poster's Name: [% item.Property('name') %]<br> 
     121            Poster's Email: [% item.Property('email') %] 
     122        [% END %] 
     123 
     124        [% IF is_devel %] 
    108125            Warning: <b>** Development Documentation **</b> 
    109126        [% END %] 
  • trunk/swish_website/lib/pod_toc/index.html

    r1587 r1611  
    1616<ul class="toc"> 
    1717[% FOREACH item = toc %] 
    18     <li
     18    <li class="top-level"
    1919        <a href="[% item.page %]">[% item.title %]</a> 
    2020 
     
    2626    </li> 
    2727[% END %] 
     28</ul> 
    2829<!-- index --> 
    2930 
  • trunk/swish_website/src/search/index.html

    r1602 r1611  
    3636use HTML::FillInForm;       # makes the form elements sticky 
    3737use Template;               # Template-Toolkit: http://tt2.org or see http://search.cpan.org 
     38 
    3839 
    3940 
     
    6566        WRAPPER         => 'page/wrapper.tt', 
    6667        RECURSION       => 1, 
     68#        DEBUG           => Template::Constants::DEBUG_PROVIDER, 
    6769    }, 
    6870    index        => '[% swish.index_file %]', 
     71    archive      => '[% swish.archive_index %]', 
    6972    page_size    => 10,                          # numbe of results/page 
    7073    title        => 'Swish Example Search Page', 
     
    219222    if ( ! $swish ) { 
    220223        my $index = $config->{index}; 
    221  
    222         # Hack in search for archive index. 
    223         my $archive_index = '../../../search/index.swish-e'; 
    224         $index = "$index $archive_index" if -f $archive_index; 
     224        $index .= " $config->{archive}" if $config->{archive}; 
    225225 
    226226        $swish = SWISH::API->new( $index ); 
  • trunk/swish_website/src/swish.css

    r1606 r1611  
    320320  line-height: 0; 
    321321} 
     322 
     323/* For the main TOC (with the OVERVIEW summary) add space at the end */ 
     324ul.toc li.top-level { 
     325  margin-bottom: 3em; 
     326} 
     327 
    322328 
    323329/* must be a better way to do leading than line-height