Changeset 1611
- Timestamp:
- 02/02/05 17:21:43 (4 years ago)
- Files:
-
- trunk/swish_website/Plugin/My/POD.pm (modified) (1 diff)
- trunk/swish_website/bin/build (modified) (3 diffs)
- trunk/swish_website/lib/config/site (modified) (1 diff)
- trunk/swish_website/lib/page/search.html (modified) (2 diffs)
- trunk/swish_website/lib/pod_toc/index.html (modified) (2 diffs)
- trunk/swish_website/src/search/index.html (modified) (3 diffs)
- trunk/swish_website/src/swish.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/swish_website/Plugin/My/POD.pm
r1601 r1611 208 208 sub view_seq_link_transform_path { 209 209 my ( $self, $link ) = @_; 210 return lc($link) . '.html';210 return $self->escape_uri( lc $link ) . '.html'; 211 211 } 212 212 trunk/swish_website/bin/build
r1602 r1611 125 125 -develsrc=<src> = Directory of development. 126 126 127 -archive=<file> = Path to list archive index. 128 127 129 -- options you don't need -- 128 130 -copy = add regex to files that are just copies … … 154 156 abslinks 155 157 develsrc=s 158 archive=s 156 159 ); 157 160 … … 284 287 warn "Swish-e devel source directory set to [$develsrc]\n" if $config->verbose; 285 288 $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; 286 297 } 287 298 trunk/swish_website/lib/config/site
r1587 r1611 34 34 current_version = this.swish_current_version || '2.4.3' 35 35 index_file = 'index.swish-e' 36 archive_index = self.config.archive 36 37 version = this.swish_version 37 38 }; 38 39 39 40 40 trunk/swish_website/lib/page/search.html
r1602 r1611 84 84 85 85 [% 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 %] 86 92 87 93 <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> 90 101 [% END %] 102 91 103 <a href="[% item.Property('swishdocpath') %]"> 92 104 [% item.Property('swishtitle') || 'missing title' | highlight('swishtitle', item ) %]</a> … … 101 113 <div class="search-metadata"> 102 114 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> 105 117 Date: [% result_date.format( item.Property('swishlastmodified')) %]<br> 106 118 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 %] 108 125 Warning: <b>** Development Documentation **</b> 109 126 [% END %] trunk/swish_website/lib/pod_toc/index.html
r1587 r1611 16 16 <ul class="toc"> 17 17 [% FOREACH item = toc %] 18 <li >18 <li class="top-level"> 19 19 <a href="[% item.page %]">[% item.title %]</a> 20 20 … … 26 26 </li> 27 27 [% END %] 28 </ul> 28 29 <!-- index --> 29 30 trunk/swish_website/src/search/index.html
r1602 r1611 36 36 use HTML::FillInForm; # makes the form elements sticky 37 37 use Template; # Template-Toolkit: http://tt2.org or see http://search.cpan.org 38 38 39 39 40 … … 65 66 WRAPPER => 'page/wrapper.tt', 66 67 RECURSION => 1, 68 # DEBUG => Template::Constants::DEBUG_PROVIDER, 67 69 }, 68 70 index => '[% swish.index_file %]', 71 archive => '[% swish.archive_index %]', 69 72 page_size => 10, # numbe of results/page 70 73 title => 'Swish Example Search Page', … … 219 222 if ( ! $swish ) { 220 223 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}; 225 225 226 226 $swish = SWISH::API->new( $index ); trunk/swish_website/src/swish.css
r1606 r1611 320 320 line-height: 0; 321 321 } 322 323 /* For the main TOC (with the OVERVIEW summary) add space at the end */ 324 ul.toc li.top-level { 325 margin-bottom: 3em; 326 } 327 322 328 323 329 /* must be a better way to do leading than line-height
