perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/tmpl/custom/html search
Date Fri, 22 Mar 2002 19:22:41 GMT
stas        02/03/22 11:22:41

  Modified:    src/search README
               tmpl/custom/html search
  Log:
  s/sbm/section/ and enclose in " as swish-e wants it to be
  
  Revision  Changes    Path
  1.6       +20 -22    modperl-docs/src/search/README
  
  Index: README
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/search/README,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- README	22 Mar 2002 10:42:04 -0000	1.5
  +++ README	22 Mar 2002 19:22:41 -0000	1.6
  @@ -24,11 +24,21 @@
   
   =head1 Indexing
   
  -=over 
  +Normally build the site:
   
  -=item 1
  +  % bin/build -f (-d to build pdfs)
  +
  +which among other things creates the dir: I<dst_html/search>
   
  -Set an environment variable to the path of the site:
  +Now run:
  +
  +  % bin/makeindex
  +
  +This script is already adapted for the production machine of
  +perl.apache.org. 
  +
  +If you are doing it elsewhere you need to set an
  +environment variable to the path of the site:
   
       export MODPERL_SITE='http://perl.apache.org'
   
  @@ -44,17 +54,8 @@
   sections of the site (for limiting the site to those sections, see
   below)
       
  -=item 2 
  -
  -Normally build the site:
  -
  -  % bin/build -f (-d to build pdfs)
  -
  -which among other things creates the dir: dst_html/search
  -
  -=item 3
  -
  -Index the site
  +Now you can manually spider the site if you didn't use the script
  +already.  Index the site
   
     % cd dst_html/search
     % swish-e -S prog -c swish.conf
  @@ -87,8 +88,6 @@
     Elapsed time: 00:00:20 CPU time: 00:00:02
     Indexing done!
   
  -=back
  -
   Now you can search...
   
   =head1 Searching
  @@ -124,22 +123,21 @@
   =item *
   
   Since we want to be able to search any sub-section of the site, the
  -search form includes the hidden variable C<sbm> (mnemonics: 'search by
  -meta'). For example:
  +search form includes the hidden variable C<section>. For example:
   
  -  <input type="checkbox" name="sbm" value="docs/1.0/guide" />
  +  <input type="checkbox" name="section" value="docs/1.0/guide" />
   
   will search all the documents under I<docs/1.0/guide> directory.
   
  -the correct value for the C<sbm> variable are set in the template when
  +the correct value for the C<section> variable are set in the template when
   the site is created. 
   
   The main search page I</search/swish.cgi>, has multiply checkboxes for
  -the for the C<sbm> variable so you can limit searches to only selected
  +the for the C<section> variable so you can limit searches to only selected
   sections.
   
   The C<$ENV{MODPERL_SITE}> mentioned earlier is matched against the
  -C<sbm> variable to extract only the wanted subsets of the hits:
  +C<section> variable to extract only the wanted subsets of the hits:
   
     $uri =~ m!$ENV{MODPERL_SITE}{/([^/]+)/.+$!
   
  
  
  
  1.10      +1 -1      modperl-docs/tmpl/custom/html/search
  
  Index: search
  ===================================================================
  RCS file: /home/cvs/modperl-docs/tmpl/custom/html/search,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- search	22 Mar 2002 02:02:16 -0000	1.9
  +++ search	22 Mar 2002 19:22:41 -0000	1.10
  @@ -18,7 +18,7 @@
           <td class="menu-border" width="1"><br class="smallbr"></td>
           <td class="search" width="2" align="center">
               <input type="submit" name="submit" value="Search" class="submit-but">
  -            <input type="hidden" name="sbm" value="[% doc.dir.path_from_base %]">
  +            <input type="hidden" name="section" value="&quot;[% doc.dir.path_from_base
%]&quot;">
            </td>
           <td class="menu-border" width="1"><br class="smallbr"></td>
       </tr>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message