百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

doxygen-bootstrapped

> 编程语言
开源

自定义 doxygen 输出,以使用 Twitter Bootstrap 框架。

396 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

自定义 doxygen 输出,以使用 Twitter Bootstrap 框架。

doxygen-bootstrapped

Customize doxygen (v1.8.9) output to use the twitter bootstrap framework (v3.3.1)

Demo

This started as work done by Stratify Labs and was extended further here. Credit

Customizing Doxygen

Doxygen provides a handful of ways to customize the output. The simplest way is to customize the HTML output.

Doxygen allows you to customize the HTML output by modifying a master HTML header, footer and stylesheet. You can then include additional stylesheets and javascript files. The following command will generate the default Doxygen files.

doxygen -w html header.html footer.html customdoxygen.css

Modifying these files alone is not enough to get good Twitter Bootstrap integration. Bootstrap requires that certain classes be applied within the HTML. For example, a Bootstrap “table” needs to have a class called “table” in order to apply the Bootstrap table formatting. We just need to augment the default HTML with these Bootstrap classes. To do this, we use the provided doxy-boot.js javascript file.

Also, you can augment doxygen’s default stylesheet with a customdoxygen.css stylesheet. This is where you would place any custom styling such as sticky footers.

How to Integrate

To integrate this into your own project tell your doxyfile to use these 4 files in the HTML section (see the example site for an example of each file):

  • HTML_HEADER=header.html
    • Adds a Bootstrap navbar
    • Wraps the content in a Bootstrap container/row
  • HTML_FOOTER=footer.html
    • Closes the extra divs opened in the header.html
  • HTML_EXTRA_STYLESHEET=customdoxygen.css
    • Adds additional styling such as a sticky footer
  • HTML_EXTRA_FILES=doxy-boot.js
    • Where the magic happens to augment the HTML with bootstrap

NOTE: The header.html file needs to include the Bootstrap css/javascript for this to work. This is where you can specify your own bootstrap compilation. These files will need to be manually added to the html directory, added as additional files in the doxyfile HTML_EXTRA_FILES section or referenced externally (see example site header.html).

NOTE: If you want to use the customdoxygen.css stylesheet from this repository, then you will need to replace the customdoxygen.css style sheet generated by the doxygen command above. If your customdoxygen.css file is in the directory when you run the doxygen command, it will be moved to customdoxygen.css.bak and you can restore it by overwriting the new version with the backup.

See the example-site directory for a minimal working example.

Todo List

  • Menu is not correctly displayed when Doxygen sidebar is enabled.

Issues· 16 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言