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.

85 lines
2.2KB

  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. <link rel="stylesheet" type="text/css" href="default.css" />
  9. ';
  10. my $FFMPEG_NAVBAR = $ENV{"FFMPEG_NAVBAR"} || '';
  11. $AFTER_BODY_OPEN =
  12. '<div id="container">' .
  13. "\n$FFMPEG_NAVBAR\n" .
  14. '<div id="body">';
  15. $PRE_BODY_CLOSE = '</div></div>';
  16. $SMALL_RULE = '';
  17. $BODYTEXT = '';
  18. $print_page_foot = \&FFmpeg_print_page_foot;
  19. sub FFmpeg_print_page_foot($$)
  20. {
  21. my $fh = shift;
  22. print $fh '<div id="footer">' . "\n";
  23. T2H_DEFAULT_print_page_foot($fh);
  24. print $fh "</div>\n";
  25. }
  26. $print_page_head = \&FFmpeg_print_page_head;
  27. sub FFmpeg_print_page_head($$)
  28. {
  29. my $fh = shift;
  30. my $longtitle = "$Texi2HTML::THISDOC{'title_no_texi'}";
  31. $longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
  32. my $description = $DOCUMENT_DESCRIPTION;
  33. $description = $longtitle if (!defined($description));
  34. $description = "<meta name=\"description\" content=\"$description\">" if
  35. ($description ne '');
  36. $description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
  37. my $encoding = '';
  38. $encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
  39. $longtitle =~ s/Documentation.*//g;
  40. $longtitle = "FFmpeg documentation : " . $longtitle;
  41. print $fh <<EOT;
  42. $DOCTYPE
  43. <html>
  44. $Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
  45. <!--
  46. $Texi2HTML::THISDOC{program_authors}
  47. -->
  48. <head>
  49. <title>$longtitle</title>
  50. $description
  51. <meta name="keywords" content="$longtitle">
  52. <meta name="resource-type" content="document">
  53. <meta name="distribution" content="global">
  54. <meta name="Generator" content="$Texi2HTML::THISDOC{program}">
  55. $encoding
  56. $CSS_LINES
  57. $EXTRA_HEAD
  58. </head>
  59. <body $BODYTEXT>
  60. $AFTER_BODY_OPEN
  61. EOT
  62. }
  63. # no navigation elements
  64. $SECTION_NAVIGATION = 0;
  65. # the same for texi2html 5.0
  66. $HEADERS = 0;
  67. # TOC and Chapter headings link
  68. $TOC_LINKS = 1;
  69. # print the TOC where @contents is used
  70. $INLINE_CONTENTS = 1;