From: Aredridel Date: 2003-07-23T23:32:13+09:00 Subject: Re: New RDoc template, and a question On Tue, 2003-07-22 at 22:41, Dave Thomas wrote: > Michael Granger has produced a wonderful new RDoc template, which looks > about 1067 times better than any HTML I ever produced. What's even > better: if you use the "inline source" option, the source is inlined > into the page, but is hidden until you click on the 'source' button. > > You can see what this looks like at > > http://rdoc.sourceforge.net/newdoc/ > > Click on one of the Ruby method names in the top-right pane, then click > on the [source] link to see the effect. > > Now the question: this new template relies on DHTML, Javascript, and a > lot of CSS. Has the world of browsers advanced to the point where I > could make this the default style, or do we still need to support the > previous generation? Considering I use w3m for browsing docs while coding, yes, support old browsers. Also, people turn JS off. Also, for I in /usr/share/doc/*/*.html; do lynx -dump "$I" > "$(echo $I | sed -e 's/.html/.txt/')"; done Also, good design is to make anything that uses javascript gracefully degrade so that /all content/ is visible and navigable with no javascript. It's not that hard with the right thinking cap on. Also, scripts shouldn't be inlined whenever possible -- make the javascript an external library, referenced by a