[英]groc javascript documentor - arguments to document all subdirectories
[英]Ignoring tags in yuidoc javascript documentor
是否可以忽略yuidoc中的各種標簽,以使文檔構建過程消息更加有用。
我對@ author,@ date等標簽有疑問
/**
* The XYZ View ...
* These tags yuidoc result in a yuidoc warning
*
* @company <company name>
* @date Mon Aug 27 2013 22:30:50 GMT+0200 (CEST)
*
* These tags yuidoc is able to interpret
* @author Bernhard <email@foo>
* @module Welcome
* @submodule Frontend
* @class WelcomeView
* @constructor
*
*/
// Yuidoc throws warnings like
warn: (docparser): unknown tag: company, path/to/file.js:1
warn: (docparser): unknown tag: date, path/to/file.js:1:1
並且有成千上萬個文件,使得不可能找到“真實的”警告。是否有一種方法可以排除yuidoc中的標簽?
根據我所做的研究,YUIDoc沒有提供設置忽略標簽的列表的方法,也沒有提供其他方法來屏蔽這些警告。
但是,您可以執行以下操作:
編輯yuidocjs/lib/docparser.js
,並將所需的標簽添加到TAGLIST
:
TAGLIST = [ // ... "conditional", // conditional module "company", "config", // a config param (not an attribute, so no change events) // ... "contributor", // like author "date", "default", // property/attribute default value // ... ]
請注意,這些字段不會出現在文檔中,但是您似乎主要關心的是如何省略警告。 如果確實要處理標簽,則需要對DIGESTERS
列表進行更改。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.