Skip to content

Commit 04b73d0

Browse files
committed
Add Doxygen YouTube embed alias
For embedding YouTube videos in the HTML documentation without creating redundant HTML blocks.
1 parent efc5d89 commit 04b73d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ TAB_SIZE = 4
261261
# with the commands \{ and \} for these it is advised to use the version @{ and
262262
# @} or use a double escape (\\{ and \\})
263263

264-
ALIASES =
264+
ALIASES = youtube_embed{1}="@htmlonly<div><div style=\"position:relative;padding-top:56.25%;\"><iframe src=\"\1\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen style=\"position:absolute;top:0;left:0;width:100%;height:100%;\"></iframe></div></div>@endhtmlonly"
265265

266266
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
267267
# only. Doxygen will then generate output that is more tailored for C. For

0 commit comments

Comments
 (0)