Difference between revisions of "API:EPrints/Test/Pod2Wiki"
Line 12: | Line 12: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 52: | Line 55: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 71: | Line 77: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 82: | Line 91: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 91: | Line 103: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 107: | Line 122: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 119: | Line 137: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 131: | Line 152: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 143: | Line 167: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 155: | Line 182: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 167: | Line 197: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
Line 179: | Line 212: | ||
<!-- Edit below this comment --> | <!-- Edit below this comment --> | ||
+ | |||
+ | <!-- Pod2Wiki= --> | ||
+ | </div> | ||
<!-- Pod2Wiki= --> | <!-- Pod2Wiki= --> | ||
</div> | </div> | ||
<!-- Pod2Wiki=_postamble_ --><!-- Edit below this comment --> | <!-- Pod2Wiki=_postamble_ --><!-- Edit below this comment --> |
Revision as of 12:58, 25 February 2010
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
NAME
EPrints::Test::Pod2Wiki - convert EPrints pod to MediaWiki
Editing Pod2Wiki Pages
Pages generated by this module have Pod2Wiki markers inserted. These markers are HTML comments that start and end every Plain Old Documentation (POD) section. For example a POD synopsis section will look like this:
<!-- Pod2Wiki=head_synopsis --> ==SYNOPSIS== use EPrints::Test::Pod2Wiki; my $p = EPrints::Test::Pod2Wiki->new( wiki_index => "http://wiki.foo.org/index.php", username => "johnd", password => "xiPi00", ); $p->update_page( "EPrints::Utils" ); <!-- Edit below this comment --> <!-- Pod2Wiki= -->
When the Wiki page is updated each Pod2Wiki section is replaced with the equivalent section content from the POD.
Comments can be made by adding them to the comment sections:
... <!-- Pod2Wiki=head_methods --> ==METHODS== Any changes here will be lost <!-- Edit below this comment --> This Wiki comment will be kept. <!-- Pod2Wiki= --> ...
Note: if a POD section is removed any Wiki content associated with that section will also be removed.
The rest of this page concerns the EPrints::Test::Pod2Wiki module.
SYNOPSIS
use EPrints::Test::Pod2Wiki; my $p = EPrints::Test::Pod2Wiki->new( wiki_index => "http://wiki.foo.org/index.php", username => "johnd", password => "xiPi00", ); $p->update_page( "EPrints::Utils" );
DESCRIPTION
This module enables the integration of EPrints POD (documentation) and MediaWiki pages.
METHODS
EPrints::Test::Pod2Wiki->new( ... )
Create a new Pod2Wiki parser. Required options:
wiki_index - URL of the MediaWiki "index.php" page username - MediaWiki username password - MediaWiki password
$ok = $pod->update_page( $package_name )
Update the MediaWiki page for $package_name.
$parser->command( ... )
Pod::Parser callback.
$parser->verbatim( ... )
Pod::Parser callback.
$parser->textblock( ... )
Pod::Parser callback.
$parser->interpolate( ... )
Pod::Parser callback. Overloaded to also escape HTML entities.
$parser->interior_sequence( ... )
Pod::Parser callback.