문제

I am automating documentation generation using Doxygen. How can I specify a favicon (URL icon) for the output?

도움이 되었습니까?

해결책

In doxygen one has the possibility to define his own HTML header file, best based on the default HTML header file.

To obtain the default HTML header file, syntax:

doxygen -w html headerFile footerFile styleSheetFile [configFile]

in the headerFile insert in the head part a line like:

<link rel="shortcut icon" href="$relpath^my_icon.ico" type="image/x-icon" />

Note: that the $relpath^ part is necessary especially in case of CREATE_SUBDIRS is set.

Furthermore in the configuration file (Doxyfile) you have to set:

HTML_HEADER            = headerFile
HTML_EXTRA_FILES       += my_icon.ico

Of course the standard restrictions regarding favicons still apply (regarding support by browsers etc.).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top