# Plastic Surgery for RDOC

**URL:** <https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163>\
**Category:** Rails\
**Created:** [April 16, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163 "2007-04-16T19:25:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pimpmaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pimpmaster](https://www.ruby-forum.com/u/pimpmaster)\
**Post date:** [April 16, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163/1 "2007-04-16T19:25:16Z")

</div>

I dont know about you guys, but personally I think the standard Rails  
documentation leaves much to be desired. The blue header, the vanilla  
code examples… the whole iframes thing. You can tell it was designed  
by a programmer… which is not bad in and of itself, but as a  
designer I feel the CSS and overall GUI needs some love.

Some ideas worth mentioning:

Easier Navigation

· Tabbed navigation using javascript tabs for fast switching.  
· Use of access keys (1-5 for top row 6-8 for bottom row)  
· Live Search via AJAX

Increased Readability

· Code snippets in color  
· Clean, Legible Headers and heirarchy of data

CSS Style Switching

Theme #1 - Classic: Standard API style for those who like the old  
school.  
Theme #2 - Shiny: Style that is consistent with 37 Signals and RoR  
Brand.  
 ![](http://www.funkysoulrebels.com/rails/Yang.jpg)  
Theme #3 - Twilight: Inverted scheme for those of us who prefer dark  
screens and light text. (see attachment)  
 ![](http://www.funkysoulrebels.com/rails/Yin.jpg)

The HTML/CSS for this is nothing I can’thandle… the real challenge is  
making rdoc spit out more customizeable code. I spoke to DHH about  
this challenge and he really liked the ideas. His advice was to  
connect with experienced Rubyists who would be willing to tackle the  
inner workings of rdoc.

This post is my call-to-arms for any experienced programmers who would  
be interested in giving the docs a well-deserved kick in the ass.

Any feedback/critiques are welcome.

---

<div class="post-metadata">

**Author:** ![pimpmaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pimpmaster](https://www.ruby-forum.com/u/pimpmaster)\
**Post date:** [April 16, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163/2 "2007-04-16T21:17:30Z")

</div>

I really REALLY like the “Yang” version.

For my Google Summer of Code project, I’m doing a documentation  
coverage analyzer. My mentor, Chad F., and I are looking at what  
we can do to refactor RDoc to make my project easier. Maybe we could  
figure out some nice refactoring work that would accomplish both  
goals…

–Jeremy

On 4/16/07, pimpmaster [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> making rdoc spit out more customizeable code. I spoke to DHH about
> 
> >

–  
[http://www.jeremymcanally.com/](http://www.jeremymcanally.com/)

My free Ruby e-book:  
[http://www.humblelittlerubybook.com/book/](http://www.humblelittlerubybook.com/book/)

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)

---

<div class="post-metadata">

**Author:** ![pimpmaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pimpmaster](https://www.ruby-forum.com/u/pimpmaster)\
**Post date:** [April 16, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163/3 "2007-04-16T23:28:49Z")

</div>

That would rock so hardcore if you and Chad could figure this pickle  
out. I am pretty busy these days, but the prospect of you two tackling  
this has me stoked enough to start slicing up some GIFs and mapping  
out my coding strategy (I like my html/css lean, mean and STRICT).

I will post my progress in this thread. As added motivation, I will be  
coding the Yang scheme first 😉

---

<div class="post-metadata">

**Author:** ![pimpmaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pimpmaster](https://www.ruby-forum.com/u/pimpmaster)\
**Post date:** [April 17, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163/4 "2007-04-17T17:27:41Z")

</div>

I finally (D’oh) looked at the Yin and Yang layouts. I like  
the general approach; here are some suggestions:

- For those of us who think that black backgrounds are a  
Bad Idea, neither Yin nor Yang wins. You might want to  
allow separate control of both the overall coloring and  
the coloring of code snippets.

- In the “Files” tab, I’d like to have the ability to see  
the entire code for each file. It might also be nice  
to add line numbering, disclosure triangles, etc. Take  
a look at TextMate for ideas…

- I’m not a big fan of using up large amounts of space on  
repeated information. So, I’d replace

Finally, please set up some web pages for ActiveDocs, so that  
there’s an “official” place to refer folks to…

## -r

[http://www.cfcl.com/rdm](http://www.cfcl.com/rdm) Rich M.  
[http://www.cfcl.com/rdm/resume](http://www.cfcl.com/rdm/resume) removed\_email\_address@domain.invalid  
[http://www.cfcl.com/rdm/weblog](http://www.cfcl.com/rdm/weblog) +1 650-873-7841

Technical editing and writing, programming, and web development

---

<div class="post-metadata">

**Author:** ![pimpmaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pimpmaster](https://www.ruby-forum.com/u/pimpmaster)\
**Post date:** [April 17, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163/5 "2007-04-17T17:43:45Z")

</div>

Great stuff!

I will be be clearing up my online storage a bit to make way for an  
activedocs section shortly

This is precisely the feedback I was looking for… thanks for taking  
the time to post this

---

<div class="post-metadata">

**Author:** ![pimpmaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pimpmaster](https://www.ruby-forum.com/u/pimpmaster)\
**Post date:** [April 17, 2007, 1:44am UTC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163/6 "2007-04-17T01:44:59Z")

</div>

At 10:23 AM -0700 4/16/07, pimpmaster wrote:

> … the standard Rails documentation leaves much to be desired.

+1 However, I would submit that your critique and proposals do not  
go nearly far enough. The Arti ([http://arti-ar.cfcl.com](http://arti-ar.cfcl.com)) overview  
page covers some complimentary topics:

> for Ruby files, objects, and methods. RDoc is included as part
> 
> work on the problem.  
> So, Arti is clearly fishing in the same pond (and will happily take  
> advantage of any improvements that come along!). The Arti overview  
> also mentions several other interesting technologies. Many of these  
> use a “load, then introspect” strategy which can gather information  
> that is difficult for static analysis to gather.

YARD ([http://www.soen.ca](http://www.soen.ca)), in particular, has an interesting take on  
extensible data collection. In summary, I applaud your efforts, but  
hope that your efforts can benefit (and benefit from) other projects  
in this space.

## -r

[http://www.cfcl.com/rdm](http://www.cfcl.com/rdm) Rich M.  
[http://www.cfcl.com/rdm/resume](http://www.cfcl.com/rdm/resume) removed\_email\_address@domain.invalid  
[http://www.cfcl.com/rdm/weblog](http://www.cfcl.com/rdm/weblog) +1 650-873-7841

Technical editing and writing, programming, and web development
