pdltiger has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to create CPAN-specific pod? I'm looking for something like this:
=for CPAN This paragraph will only appear on CPAN. =for HTML This paragraph will be processed by any HTML formatter (including Padre's help, for better or for worse). This paragraph would appear in all pod. =cut
Why would I want this? Because much of the POD documentation for PDL is created when you install PDL. Since CPAN holds the not-yet-processed files, lots of the pod that CPAN holds is fubarred. To see what I mean, take a look at PDL::Slices on CPAN and do a text search for EOD. Now, look at PDL::Slices in PDL's HTMLified doc pages and you'll see it looks fine. I would like to add CPAN-specific pod at the top of each .pd file stating something like this:
=for CPAN You are looking at the documentation for this module on CPAN, but the documentation is only properly generated when the module is compiled. Since the documentation here will likely be idiosyncratic, you should instead check L<http://pdl.sourceforge.net/PDLdocs/mode-name.html>.
Admittedly, an alternative to this problem would be to add a step in the module compilation to strip out CPAN-specific paragraphs, which wouldn't be too hard, but I'm trying to be lazy here. :)
Any suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CPAN-specific POD?
by Corion (Patriarch) on Jan 01, 2010 at 17:08 UTC | |
by pdltiger (Acolyte) on Jan 05, 2010 at 14:28 UTC | |
by JavaFan (Canon) on Feb 02, 2010 at 22:22 UTC | |
by pdltiger (Acolyte) on Feb 03, 2010 at 14:59 UTC | |
|
Re: CPAN-specific POD?
by etj (Priest) on May 29, 2022 at 22:31 UTC | |
|
Re: CPAN-specific POD?
by pdltiger (Acolyte) on Feb 03, 2010 at 15:40 UTC | |
|
Re: CPAN-specific POD?
by JavaFan (Canon) on Jan 05, 2010 at 14:50 UTC | |
by pdltiger (Acolyte) on Feb 02, 2010 at 15:46 UTC |