rc3.org

Since 1998.

rc3.org header image 1

Free idea du jour

March 30th, 2006 · No Comments

I just came up with a good idea for dealing with documentation and I wanted to post about it. One application I’m working on is fairly complex but has no real documentation. Because want users to be able to contribute to the documentation, I decided to put it in a wiki. It occurred to me that since the pages in the application have (or at least should have) good titles, I could automatically link into the specific help page by constructing a wiki URL based on the page title. We happen to use Mediawiki, so I just included the following line in the top level layout file that wraps every page:

<% if @page_title %> Help <% end%>

If a page has @page_title set, I get a dynamically generated link to the appropriate documentation in the Wiki. (The code in the example works in a Ruby RHTML file.)

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

You can comment using OpenID:

Or you can just enter your personal information and comment that way. Your email address is required but won't be displayed.

Please enter your comment. Markdown is supported.