-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
101 lines (75 loc) · 3.58 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
NAME
Module::Install::ReadmeMarkdownFromPod - create README.mkdn from POD
SYNOPSIS
# in Makefile.PL
use inc::Module::Install;
name 'Some-Module';
readme_markdown_from 'lib/Some/Module.pm';
DESCRIPTION
Module::Install::ReadmeMarkdownFromPod is a Module::Install extension
that generates a "README.mkdn" file automatically from an indicated file
containing POD whenever the author runs "Makefile.PL". This file is used
by GitHub to display nicely formatted information about a repository.
FUNCTIONS
"readme_markdown_from"
Does nothing on the user-side. On the author-side it will generate a
"README.mkdn" file using Pod::Markdown from the POD in the file
passed as a parameter.
readme_markdown_from 'lib/Some/Module.pm';
If a second parameter is set to a true value then the "README.mkdn"
will be removed at "make distclean".
readme_markdown_from 'lib/Some/Module.pm' => 'clean';
It will die unless a file name is given.
"readme_markdown_from_pod"
Like "readme_markdown_from" but assumes that "all_from" has been
called before and uses the filename stored there to generate the
"README.mkdn". It then calls "readme_markdown_from" with that
filename. If this function is given an optional boolean parameter,
that will be passed to "readme_markdown_from" as well, indicating
whether to clean up the generated "README.mkdn" file at "make
distclean" time.
"readme_from_pod"
Like "readme_markdown_from_pod", but affects the plain-text "README"
file generation done in Module::Install::ReadmeFromPod. This
function would be better placed in that module and might move there
eventually. It is given here as a convenience because if you want to
generate both "README" and "README.mkdn" you can do this here
without repeating the filename given in "all_from".
"reference_module"
A utility function that saves you from repeatedly naming a reference
module from which to extract information.
reference_module 'lib/Some/Module.pm';
is equivalent to:
all_from 'lib/Some/Module.pm';
readme_from 'lib/Some/Module.pm';
readme_markdown_from 'lib/Some/Module.pm';
It will die unless a file name is given. Note that
"reference_module" will not work with Shipit::Step::FindVersion
because that module is looking for a "version_from" or "all_from"
string in "Makefile.PL"
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests through the web interface at
<http://rt.cpan.org>.
INSTALLATION
See perlmodinstall for information and options on installing Perl
modules.
AVAILABILITY
The latest version of this module is available from the Comprehensive
Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a
CPAN site near you. Or see
<http://search.cpan.org/dist/Module-Install-ReadmeMarkdownFromPod/>.
The development version lives at
<http://github.com/hanekomu/module-install-readmemarkdownfrompod/>.
Instead of sending patches, please fork this project using the standard
git and github infrastructure.
AUTHORS
Marcel Grünauer, "<marcel@cpan.org>"
COPYRIGHT AND LICENSE
Copyright 2009 by Marcel Grünauer
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
SEE ALSO
Pod::Markdown
Module::Install
Module::Install::ReadmeFromPod