| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | |||
| 4 | package Pod::Weaver::PluginBundle::AMD; | ||
| 5 | # git description: v0.001-2-g1c145c4 | ||
| 6 | |||
| 7 | BEGIN { | ||
| 8 | $Pod::Weaver::PluginBundle::AMD::AUTHORITY = 'cpan:AMD'; | ||
| 9 | } | ||
| 10 | { | ||
| 11 | $Pod::Weaver::PluginBundle::AMD::VERSION = '4.1.0'; | ||
| 12 | } | ||
| 13 | # ABSTRACT: Document your modules like AMD does | ||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | use Pod::Weaver::Config::Assembler; | ||
| 18 | |||
| 19 | sub _exp { Pod::Weaver::Config::Assembler->expand_package($_[0]) } | ||
| 20 | |||
| 21 | use namespace::clean; | ||
| 22 | |||
| 23 | |||
| 24 | sub mvp_bundle_config { | ||
| 25 | return ( | ||
| 26 | [ '@AMD/CorePrep', _exp('@CorePrep'), {} ], | ||
| 27 | [ '@AMD/Name', _exp('Name'), {} ], | ||
| 28 | [ '@AMD/prelude', _exp('Region'), { region_name => 'prelude' } ], | ||
| 29 | |||
| 30 | [ 'SYNOPSIS', _exp('Generic'), {} ], | ||
| 31 | [ 'DESCRIPTION', _exp('Generic'), {} ], | ||
| 32 | [ 'OVERVIEW', _exp('Generic'), {} ], | ||
| 33 | |||
| 34 | [ 'ATTRIBUTES', _exp('Collect'), { command => 'attr' } ], | ||
| 35 | [ 'METHODS', _exp('Collect'), { command => 'method' } ], | ||
| 36 | [ 'FUNCTIONS', _exp('Collect'), { command => 'func' } ], | ||
| 37 | [ 'TYPES', _exp('Collect'), { command => 'type' } ], | ||
| 38 | |||
| 39 | [ '@AMD/Leftovers', _exp('Leftovers'), {} ], | ||
| 40 | |||
| 41 | [ '@AMD/postlude', _exp('Region'), { region_name => 'postlude' } ], | ||
| 42 | |||
| 43 | [ '@AMD/Authors', _exp('Authors'), {} ], | ||
| 44 | [ '@AMD/Legal', _exp('Legal'), {} ], | ||
| 45 | |||
| 46 | [ '@AMD/List', _exp('-Transformer'), { transformer => 'List' } ], | ||
| 47 | [ '@AMD/Encoding', _exp('-Encoding'), {} ], | ||
| 48 | ); | ||
| 49 | } | ||
| 50 | |||
| 51 | 1; | ||
| 52 | |||
| 53 | __END__ |