You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
3.0KB

  1. # no horiz rules between sections
  2. $end_section = \&FFmpeg_end_section;
  3. sub FFmpeg_end_section($$)
  4. {
  5. }
  6. $EXTRA_HEAD =
  7. '<link rel="icon" href="favicon.png" type="image/png" />
  8. ';
  9. $CSS_LINES = $ENV{"FFMPEG_CSS"} || <<EOT;
  10. <link rel="stylesheet" type="text/css" href="default.css" />
  11. EOT
  12. my $TEMPLATE_HEADER = $ENV{"FFMPEG_HEADER"} || <<EOT;
  13. <link rel="icon" href="favicon.png" type="image/png" />
  14. </head>
  15. <body>
  16. <div id="container">
  17. EOT
  18. $PRE_BODY_CLOSE = '</div></div>';
  19. $SMALL_RULE = '';
  20. $BODYTEXT = '';
  21. $print_page_foot = \&FFmpeg_print_page_foot;
  22. sub FFmpeg_print_page_foot($$)
  23. {
  24. my $fh = shift;
  25. my $program_string = defined &T2H_DEFAULT_program_string ?
  26. T2H_DEFAULT_program_string() : program_string();
  27. print $fh '<footer class="footer pagination-right">' . "\n";
  28. print $fh '<span class="label label-info">' . $program_string;
  29. print $fh "</span></footer></div>\n";
  30. }
  31. $float = \&FFmpeg_float;
  32. sub FFmpeg_float($$$$)
  33. {
  34. my $text = shift;
  35. my $float = shift;
  36. my $caption = shift;
  37. my $shortcaption = shift;
  38. my $label = '';
  39. if (exists($float->{'id'}))
  40. {
  41. $label = &$anchor($float->{'id'});
  42. }
  43. my $class = '';
  44. my $subject = '';
  45. if ($caption =~ /NOTE/)
  46. {
  47. $class = "alert alert-info";
  48. }
  49. elsif ($caption =~ /IMPORTANT/)
  50. {
  51. $class = "alert alert-warning";
  52. }
  53. return '<div class="float ' . $class . '">' . "$label\n" . $text . '</div>';
  54. }
  55. $print_page_head = \&FFmpeg_print_page_head;
  56. sub FFmpeg_print_page_head($$)
  57. {
  58. my $fh = shift;
  59. my $longtitle = "$Texi2HTML::THISDOC{'fulltitle_no_texi'}";
  60. $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
  61. my $description = $DOCUMENT_DESCRIPTION;
  62. $description = $longtitle if (!defined($description));
  63. $description = "<meta name=\"description\" content=\"$description\">" if
  64. ($description ne '');
  65. $description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
  66. my $encoding = '';
  67. $encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
  68. $longtitle =~ s/Documentation.*//g;
  69. $longtitle = "FFmpeg documentation : " . $longtitle;
  70. print $fh <<EOT;
  71. <!DOCTYPE html>
  72. <html>
  73. $Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
  74. <!--
  75. $Texi2HTML::THISDOC{program_authors}
  76. -->
  77. <head>
  78. <title>$longtitle</title>
  79. $description
  80. <meta name="keywords" content="$longtitle">
  81. <meta name="resource-type" content="document">
  82. <meta name="distribution" content="global">
  83. <meta name="Generator" content="$Texi2HTML::THISDOC{program}">
  84. $encoding
  85. $CSS_LINES
  86. $TEMPLATE_HEADER
  87. EOT
  88. }
  89. # declare encoding in header
  90. $IN_ENCODING = $ENCODING = "utf-8";
  91. # no navigation elements
  92. $SECTION_NAVIGATION = 0;
  93. # the same for texi2html 5.0
  94. $HEADERS = 0;
  95. # TOC and Chapter headings link
  96. $TOC_LINKS = 1;
  97. # print the TOC where @contents is used
  98. $INLINE_CONTENTS = 1;