favicon request

Frank Shute frank at shute.org.uk
Thu Jan 15 07:53:28 UTC 2009


On Thu, Jan 15, 2009 at 08:58:55AM +0200, Manolis Kiagias wrote:
>
> Frank Shute wrote:
> > The online handbook has a favicon but the offline handbook doesn't.
> >
> > Is this a bug or a feature?
> >
> > I like to use favicon's on my bookmark toolbar without the writing.
> >
> > Could this be remedied? I guess it means adding a line of sgml to each
> > page/chapter.
> >
> > Regards,
> >
> >   
> If I understand your question, you just need to do the following:
> 
> wget http://www.freebsd.org/favicon.ico
> mv favicon.ico /usr/share/doc/en_US.ISO8859-1/books/handbook
> 
> This alone won't do it probably - at least with firefox, as it seems it
> does not request a favicon.ico from locally stored webpages. However it
> will work nicely if you insert the following in every html file:
> 
> <link rel="shortcut icon"
> href="/usr/share/doc/en_US.ISO8859-1/books/handbook/favicon.ico">
> 
> It will then work fine. You could use a simple sh script and sed(1) to
> insert it in all html files.

Many thanks Manolis, that worked a treat. I just edited index.html as
that's the page I bookmark.

The only problem I see is if I build & install the docs again, I'll
have to do the edit again.

PS. Also used fetch(1) rather than wget - folks seem to forget about
fetch!

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 




More information about the freebsd-doc mailing list