Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前 Docco 生成的任何 HTML 页面的标题都是源代码文件的名称。我该如何改变呢?我想为我生成的代码设置一个自定义标题。
只需确保源文件的第一行中有一个标题部分,例如:
// # My Custom Title var code = require('somelib');
上面的代码,当作为 docco 的输入时,将产生一个标题为“我的自定义标题”的 HTML 页面。