我有一些创建jsdoc 3模板的经验,我已经看过代码来检查你在问什么。 这是我发现的:
因此,要删除此页脚,您必须使用自定义模板或对由jsdoc 3生成的文件执行某种后处理。
对于3.3.0之前的版本,从模板中删除<footer>
将意味着复制整个默认模板并对layout.tmpl
进行更改。 目前版本为3.3.0的版本将提供基本告诉jsdoc 3使用默认模板但具有不同layout.tmpl
文件的layout.tmpl
,这将使定制模板更容易。
I have some modest experience with creating jsdoc 3 templates and I've looked at the code to check what you are asking. Here is what I found:
<footer>
is hardcoded in the default template's layout.tmpl
file. By hardcoded, I mean the element itself is not optional.
I've not seen any code in the default template's publish.js
file that would somehow remove <footer>
when processing layout.tmpl
.
So to remove this footer you'd have to use a customized template or do some sort of post-processing on the files generated by jsdoc 3.
With versions prior to 3.3.0, removing <footer>
from the template would mean copying the whole default template and making the change to layout.tmpl
. Version 3.3.0, which is currently in alpha, will provide the possibility to basically tell jsdoc 3 to use the default template but with a different layout.tmpl
file, which will make customizing templates much easier.
请发表评论