[Haskell-cafe] Re: Tiny documentation request

2007-09-12 Thread manu


On Sep 11, 2007, at 9:58 PM, Miguel Mitrofanov wrote:



Well, I'm not a web designer, but I did work with few of them, and it
seems to me that you either create a table design in two hours or
spend three days trying to create a CSS one and THEN create a table
design in two hours.


That's an exaggeration.
It's widely accepted than tables can straightforwardly be dropped in  
most cases.

They are intented to be used to present tabular datas, NOT for layout.
(This ideas is not new, Zeldman talked about it in 2001)
It does require a bit of CSS-Fu, however, as  CSS support in browsers  
varies...

But hey, you've got to occupy these HTML-CSS guys !

Emmanuel___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Tiny documentation request

2007-09-12 Thread Simon Marlow

manu wrote:


On Sep 11, 2007, Simon Marlow wrote:



Please, please, someone do this for me.  I tried, and failed, to get the 

layout right for the contents list in all browsers at the same time.  The 


semantics of CSS is beyond my comprehension.


Cheers,

Simon



Hi Simon,

On the 
page http://www.haskell.org/ghc/docs/latest/html/libraries/index.html, you 
only need tables to display the foldable lists of modules (HTML tables 
were commonly used to display many things on a same line), but they 
can be replaced by nested lists with a bit of CSS :


Check this page out : http://la.di.da.free.fr/haddock/ 


I can help further, if need be.


I see the idea, but it looks like you're just right-aligning the package 
names, which will look strange when there are different package names. 
(but perhaps not as strange as it currently looks).


In any case, I'd welcome a patch to Haddock that improves things.

Cheers,
Simon
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Tiny documentation request

2007-09-11 Thread Simon Marlow

Sven Panne wrote:


2. Could we make is so all items are collapsed initially? (Currently
they're all expended initially - which makes it take rather a long time
to find anything.)


Again this depends on the use case: I'd vote strongly against collapsing the 
list initially, because that way the incremental search in Firefox won't work 
without un-collapsing everything.


This is exactly why the list is expanded by default.  At first I made it 
default to collapsed, and people complained (possibly Sven, in fact :-).


When the index is generated with a more recent Haddock, you get a search 
field, which does an incremental search, so this might perhaps be more what 
you are looking for.


A more aesthetical note: We should really get rid of the ugly table/CSS layout 
mixture, the lower part of the page renders a bit ugly and varies between 
browsers. Switching to pure CSS should be safe in 2007, I guess.


Please, please, someone do this for me.  I tried, and failed, to get the 
layout right for the contents list in all browsers at the same time.  The 
semantics of CSS is beyond my comprehension.


Cheers,
Simon

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Tiny documentation request

2007-09-11 Thread Simon Marlow

Thomas Schilling wrote:


However, regarding the modules list.  I think it should be easy to have
optional javascript functionality to toggle the visibility of the module
tree.  The default visibility could be customized using a cookie.


I don't know how to make cookies work purely in Javascript - presumably 
there's a way, though.  I'm accepting patches!


Cheers,
Simon

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Tiny documentation request

2007-09-11 Thread manu


On Sep 11, 2007, Simon Marlow wrote:


Please, please, someone do this for me.  I tried, and failed, to  
get the
layout right for the contents list in all browsers at the same  
time.  The

semantics of CSS is beyond my comprehension.

Cheers,
Simon


Hi Simon,

On the page http://www.haskell.org/ghc/docs/latest/html/libraries/ 
index.html, you only need tables to display the foldable lists of  
modules (HTML tables were commonly used to display many things on a  
same line), but they can be replaced by nested lists with a bit of CSS :


Check this page out : http://la.di.da.free.fr/haddock/

I can help further, if need be.

Emmanuel


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Tiny documentation request

2007-09-11 Thread Miguel Mitrofanov
When the index is generated with a more recent Haddock, you get a  
search field, which does an incremental search, so this might  
perhaps be more what you are looking for.
A more aesthetical note: We should really get rid of the ugly  
table/CSS layout mixture, the lower part of the page renders a bit  
ugly and varies between browsers. Switching to pure CSS should be  
safe in 2007, I guess.


Please, please, someone do this for me.  I tried, and failed, to  
get the layout right for the contents list in all browsers at the  
same time.  The semantics of CSS is beyond my comprehension.


Well, I'm not a web designer, but I did work with few of them, and it  
seems to me that you either create a table design in two hours or  
spend three days trying to create a CSS one and THEN create a table  
design in two hours.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe