Dist :: Zilla:获取Readme.mkdn的安装说明

时间:2017-12-18 04:31:12

标签: perl dist-zilla

我使用Dist :: Zilla生成README.mkdn文件。我想使用Pod::Weaver::Section::Installation将安装说明注入其中。不确定是否可以这样做。可能有更好的方法来做到这一点。

这是我的Dist :: Zilla个人资料中的weaver.ini文件:

[@CorePrep]

[Name]
[Version]

[Generic / SYNOPSIS]
[Generic / DESCRIPTION]

[Collect / ATTRIBUTES]
command = attr

[Collect / METHODS]
command = method

[Generic / CONFIGURATION AND ENVIRONMENT]
[Generic / DEPENDENCIES]
[Generic / INCOMPATIBILITIES]
[Generic / BUGS AND LIMITATIONS]

[Installation]
[Authors]
[Legal]

[-Transformer]
transformer = List

1 个答案:

答案 0 :(得分:0)

OK, I thought it would use weaver.ini from my profile. Apparently, that isn't the case. I had to put the file in the root of the repo directory.