[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changes to menu package



> I notice that the current release of the menu package support the
> generation of menus for web pages taking a menu file for a
> package like:
> 
>    "dwww" "Apps/Net" "wn/doc" "none" "Wn" doc/wn/index.html
> 
> and generating an entry in /var/www/menudefs.hook like:
> 
>    <h1><a name="/Debian/Apps/Net">Net</a></h1><ul>
>    <li><a href="file:doc/wn/index.html">Wn</a>
>    </ul>
> 
> I'm wondering if instead of the "file:" URL an "http:" URL would
> be more appropriate. 

It would. But the /usr/doc/menu/example/dwww file in the menu
package is just an example of how one could generate such a http page.
Obviously, it's not the menu package's job to actually generate
the http page, and thus the script has been improved by the dwww
maintainer, and included in that package. The file this
/etc/menu-method/dwww script generates looks like:

   <form method="POST" action="/cgi-bin/dwww">
       <input name="search" size=30>
       <input type="submit" name="programsubmit" value="Search">
     </form>
   <p>
   <font size="+2"><b>Debian Documentation Menu</b></font><P>
   
   
   <P><font size=+2><b><a name="/Debian"></a></b></font><p><ul type=disc>
   <font size=2><a href="#/Debian/Apps"> Apps</a></font> 
   <P><font size=+2><b><a name="/Debian/Apps">Apps</a></b></font><p><ul type=disc>
   <font size=2><a href="#/Debian/Apps/Programming"> Programming</a></font> 

And I can tell you, this stuff looks _nice_. Jim Pick has done
an excellent job. All we need now is more packages registering their
html docs with as "menuentries".



-- 
joost witteveen     joostje@debian.org
    
I came, I saw, ..., well, it wasn't free so I left again. (LUA, 1988)


Reply to: