I'm currently going through an exercise adding online help to some Tk applications. I've discovered that Tk::Pod::Text gives a nice hook to the POD. Here's an example:

#!/usr/local/bin/perl use strict; use warnings; use Tk; use Tk::Pod::Text; our $VERSION = 0.01; my $mainw = MainWindow->new; $mainw->configure(-menu => my $menubar = $mainw->Menu); $menubar->cascade(-label => "~Help", -tearoff => 0, -menuitems =>[ [ command => '~Documentation', -command => \&pod_window ], [ command => '~About', -command => \&about_window ]] ); # ... sub about_window { $mainw->messageBox( -title => 'About', -icon => 'info', -message => "Version $VERSION", -type => 'Ok' ); } sub pod_window { my $hw = $mainw->Toplevel; $hw->Button( -text => 'Close', -command => [$hw => 'destroy'] )->pack( -side => 'bottom' ); $hw->Scrolled( 'PodText', -file => $0, -scrollbars => 'e' )->pack( -side => 'top', -expand => 1, -fill => 'both' ); }

I've had some feedback from a principal user. What he really would like to see inside the documentation, is some screen shots. However, I have persuaded him that this is non-trivial, and he is living with just having the text for now.

I was thinking that perhaps if I had produced an HTML document in the first place, adding images is trivial. But this would involve launching a browser from the application, and seems messy, in that the deliverable is now not all in one place.

Any thoughts on how to mark up external images into POD, and how to hook this into a Tk text box would be appreciated. Or, if there's a full blown HTML browser available in Tk I would be most interested.

This has brought to mind an experiment with online documentation at a previous place of work:

This experience was 5 years ago. Sadly, this idea was killed by some politics - interference from the marketing department and the technical documentation team feeling that we were trying to put them out of a job. In the mean time, wiki technology and has become much more popular and widespread.

So, I'm wondering if anybody out there is providing help texts as wikis. This is a lazy way of building documentation, and certainly one way of building a community of application users, especially if the wiki is central and web based. You might need some partitioning to allow individual clients to have their own specific areas in the wiki, or a subwiki delivered with the application, hosted on their own intranet.

--
I'm Not Just Another Perl Hacker


In reply to Some musings on online documentation by rinceWind

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.