gpt4 book ai didi

javascript - 如何更改默认的 JSDoc 文本颜色?

转载 作者:行者123 更新时间:2023-11-28 04:36:50 25 4
gpt4 key购买 nike

我正在使用 JSDoc 为我的 JS 库生成文档。 JSDoc 生成的默认 HTML 内容具有灰色文本,非常难以阅读。现在,我想将文本颜色更改为黑色/蓝色。有什么办法可以改变文字颜色或背景颜色吗?

最佳答案

是的,有一种方法可以更改 JSDoc 的默认模板/样式,您可以按照 here 的描述来实现。 :

Overriding the default template's layout file

The default template uses a file named layout.tmpl to specify the header and footer for each page in the generated documentation. In particular, this file defines which CSS and JavaScript files are loaded for each page. In JSDoc 3.3.0 and later, you can specify your own layout.tmpl file to use, which allows you to load your own custom CSS and JavaScript files in addition to, or instead of, the standard files.

To use this feature, set the option templates.default.layoutFile to the path to your customized layout file. Relative paths are resolved against the path to the config.json file; the current working directory; and the JSDoc directory, in that order.

关于javascript - 如何更改默认的 JSDoc 文本颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44128301/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com