stas        2002/06/30 09:45:34

  Modified:    src/search checkboxes.storable make.pl search_options
  Log:
  add the missing categories
  add the docs subsection's versioning more explicit
  
  Revision  Changes    Path
  1.4       +43 -31    modperl-docs/src/search/checkboxes.storable
  
        <<Binary file>>
  
  
  1.6       +35 -29    modperl-docs/src/search/make.pl
  
  Index: make.pl
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/search/make.pl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- make.pl   30 Jun 2002 16:37:41 -0000      1.5
  +++ make.pl   30 Jun 2002 16:45:34 -0000      1.6
  @@ -8,12 +8,12 @@
   
   =head1 Description
   
  -make.pl uses input contained within that defines "sections" of the site based
  -on path names.  These name can then be used when searching with swish to 
limit
  -searches to just these areas of the site.
  +make.pl uses input contained within that defines "sections" of the
  +site based on path names.  These name can then be used when searching
  +with swish to limit searches to just these areas of the site.
   
  -When indexing the site with swish-e each file is taged with meta data that 
indicates
  -which section or sections it belongs to.
  +When indexing the site with swish-e each file is taged with meta data
  +that indicates which section or sections it belongs to.
   
   The input format is described in the source of this file.
   
  @@ -23,25 +23,28 @@
   
   =item search_options
   
  -A template toolkit include file for defining an array of section names and a 
hash that
  -maps the section names to nice descriptions.  This data is used to
  -create the select box on the side bar during site generation (by running 
bin/build).
  +A template toolkit include file for defining an array of section names
  +and a hash that maps the section names to nice descriptions.  This
  +data is used to create the select box on the side bar during site
  +generation (by running bin/build).
   
  -It also creates a hash to use in a TT plugin to map the file's path while 
running bin/build into
  -section IDs.
  +It also creates a hash to use in a TT plugin to map the file's path
  +while running bin/build into section IDs.
   
   =item checkboxes.storable
   
  -A perl data structure used for use in the F<search.cgi> script to generate 
the nested
  -checkboxes for the advanced search feature.  This allows selecting more than 
one
  -area of the site at a time.
  -
  -This file is saved using the Storable perl module, and is read in by the
  -search script (F<swish.cgi>) configuration parameter file F<.swishcgi.conf> 
and
  -made available to Template-Toolkit when F<swish.cgi> is running.
  -
  -This file is also read when indexing with swish-e (see 
F<SwishSpiderConfig.pl>) and is used to
  -map path names into section names.
  +A perl data structure used for use in the F<search.cgi> script to
  +generate the nested checkboxes for the advanced search feature.  This
  +allows selecting more than one area of the site at a time.
  +
  +This file is saved using the Storable perl module, and is read in by
  +the search script (F<swish.cgi>) configuration parameter file
  +F<.swishcgi.conf> and made available to Template-Toolkit when
  +F<swish.cgi> is running.
  +
  +This file is also read when indexing with swish-e (see
  +F<SwishSpiderConfig.pl>) and is used to map path names into section
  +names.
   
   =back
   
  @@ -52,7 +55,8 @@
   =cut
   
   
  -# This must match up with .swishcgi.conf setting and SwishSpiderConfig.pl
  +# This must match up with .swishcgi.conf setting and
  +# SwishSpiderConfig.pl
   my $CHECKBOX_DATA = 'checkboxes.storable';
   
   # This is used for all pages -- it's the array and has for the sidebar search
  @@ -61,24 +65,25 @@
   
   
   # Stas added tree display - Apr 15, 2002
  -# Rewritten May 23, 2000 at Stas' request to centralize the input data in 
one place
  +# Rewritten May 23, 2000 at Stas' request to centralize the input data
  +# in one place
   # syntax (amount of spaces doesn't matter):
   # indent, path, title, optional short title (for drop down list)
   #
   
  -
   my $items = <<ITEMS;
  +    0, start,              What's mod_perl?
       0, outstanding,        Technologie Extraordinaire, Stories
       0, download,           Download,                   Download
       0, docs,               Documentation,              All Docs
       1,   docs/1.0,         mod_perl 1.0 Docs,          1.0 Docs
  -    2,     docs/1.0/guide, Guide
  -    2,     docs/1.0/win32, Win32
  -    2,     docs/1.0/api,   API
  +    2,     docs/1.0/guide, Guide (1.0)
  +    2,     docs/1.0/win32, Win32 (1/.0)
  +    2,     docs/1.0/api,   API (1.0)
       1,   docs/2.0,         mod_perl 2.0 Docs,          2.0 Docs
  -    2,     docs/2.0/user,  User
  -    2,     docs/2.0/devel, Developer
  -    2,     docs/2.0/api,   API
  +    2,     docs/2.0/user,  User (2.0)
  +    2,     docs/2.0/devel, Developer (2.0)
  +    2,     docs/2.0/api,   API (2.0)
       1,   docs/general,     General Docs
       1,   docs/tutorials,   Tutorials
       1,   docs/offsite,     OffSite Docs
  @@ -86,6 +91,7 @@
       0, maillist,           Mailing Lists
       0, products,           Products
       0, contribute,         Contribute
  +    0, about,              About mod_perl
   ITEMS
   
   
  
  
  
  1.11      +49 -43    modperl-docs/src/search/search_options
  
  Index: search_options
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/search/search_options,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- search_options    30 Jun 2002 16:37:41 -0000      1.10
  +++ search_options    30 Jun 2002 16:45:34 -0000      1.11
  @@ -3,7 +3,7 @@
   # *** Automatically generated file.  Do not edit.  Modify ./make.pl instead! 
***
   #    File: 'search_options'
   #     Use: generating the sidebar select options for searching
  -# Created: Sun Jun 30 09:28:31 2002
  +# Created: Mon Jul  1 00:45:05 2002
   
#--------------------------------------------------------------------------------------
   
       search_areas = [
  @@ -11,64 +11,70 @@
           "SecA"
           "SecB"
           "SecC"
  -            "SecD"
  -                "SecE"
  +        "SecD"
  +            "SecE"
                   "SecF"
                   "SecG"
  -            "SecH"
  -                "SecI"
  +                "SecH"
  +            "SecI"
                   "SecJ"
                   "SecK"
  -            "SecL"
  +                "SecL"
               "SecM"
               "SecN"
  -        "SecO"
  +            "SecO"
           "SecP"
           "SecQ"
           "SecR"
  +        "SecS"
  +        "SecT"
       ]
   
       search_labels = {
           ""          => 'Whole Site'
  -        "SecA" => "Stories" 
  -        "SecB" => "Download" 
  -        "SecC" => "All Docs" 
  -            "SecD" => "..1.0 Docs" 
  -                "SecE" => "....Guide" 
  -                "SecF" => "....Win32" 
  -                "SecG" => "....API" 
  -            "SecH" => "..2.0 Docs" 
  -                "SecI" => "....User" 
  -                "SecJ" => "....Developer" 
  -                "SecK" => "....API" 
  -            "SecL" => "..General Docs" 
  -            "SecM" => "..Tutorials" 
  -            "SecN" => "..OffSite Docs" 
  -        "SecO" => "Getting Help" 
  -        "SecP" => "Mailing Lists" 
  -        "SecQ" => "Products" 
  -        "SecR" => "Contribute"         
  +        "SecA" => "What's mod_perl?" 
  +        "SecB" => "Stories" 
  +        "SecC" => "Download" 
  +        "SecD" => "All Docs" 
  +            "SecE" => "..1.0 Docs" 
  +                "SecF" => "....Guide (1.0)" 
  +                "SecG" => "....Win32 (1/.0)" 
  +                "SecH" => "....API (1.0)" 
  +            "SecI" => "..2.0 Docs" 
  +                "SecJ" => "....User (2.0)" 
  +                "SecK" => "....Developer (2.0)" 
  +                "SecL" => "....API (2.0)" 
  +            "SecM" => "..General Docs" 
  +            "SecN" => "..Tutorials" 
  +            "SecO" => "..OffSite Docs" 
  +        "SecP" => "Getting Help" 
  +        "SecQ" => "Mailing Lists" 
  +        "SecR" => "Products" 
  +        "SecS" => "Contribute" 
  +        "SecT" => "About mod_perl"         
       }
   
       search_path_map = [
  -        { path => "^docs/1.0/guide", section => "SecE" } 
  -        { path => "^docs/1.0/win32", section => "SecF" } 
  -        { path => "^docs/tutorials", section => "SecM" } 
  -        { path => "^docs/2.0/devel", section => "SecJ" } 
  -        { path => "^docs/2.0/user", section => "SecI" } 
  -        { path => "^docs/offsite", section => "SecN" } 
  -        { path => "^docs/2.0/api", section => "SecK" } 
  -        { path => "^docs/general", section => "SecL" } 
  -        { path => "^docs/1.0/api", section => "SecG" } 
  -        { path => "^outstanding", section => "SecA" } 
  -        { path => "^contribute", section => "SecR" } 
  -        { path => "^download", section => "SecB" } 
  -        { path => "^docs/1.0", section => "SecD" } 
  -        { path => "^docs/2.0", section => "SecH" } 
  -        { path => "^maillist", section => "SecP" } 
  -        { path => "^products", section => "SecQ" } 
  -        { path => "^help", section => "SecO" } 
  -        { path => "^docs", section => "SecC" } 
  +        { path => "^docs/2.0/devel", section => "SecK" } 
  +        { path => "^docs/1.0/guide", section => "SecF" } 
  +        { path => "^docs/1.0/win32", section => "SecG" } 
  +        { path => "^docs/tutorials", section => "SecN" } 
  +        { path => "^docs/2.0/user", section => "SecJ" } 
  +        { path => "^docs/1.0/api", section => "SecH" } 
  +        { path => "^docs/offsite", section => "SecO" } 
  +        { path => "^docs/2.0/api", section => "SecL" } 
  +        { path => "^docs/general", section => "SecM" } 
  +        { path => "^outstanding", section => "SecB" } 
  +        { path => "^contribute", section => "SecS" } 
  +        { path => "^products", section => "SecR" } 
  +        { path => "^download", section => "SecC" } 
  +        { path => "^docs/1.0", section => "SecE" } 
  +        { path => "^docs/2.0", section => "SecI" } 
  +        { path => "^maillist", section => "SecQ" } 
  +        { path => "^start", section => "SecA" } 
  +        { path => "^about", section => "SecT" } 
  +        { path => "^help", section => "SecP" } 
  +        { path => "^docs", section => "SecD" } 
       ]
   -%]
       
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to