简体   繁体   中英

How do I change the title of an HTML page generated by Docco?

Currently the title of any HTML page generated by Docco will be the name of the source code file. How do I change that? I would like to set a custom title for my generated code.

Just make sure that the first line in your source file has a header section in it, for example:

//  # My Custom Title
var code = require('somelib');

The above code, when given as an input to docco, will result in an HTML page with title "My Custom Title".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM